-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (62 loc) · 1.42 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
##
## Makefile for 42sh in /home/limone_m/rendu/PSU_2013_42sh
##
## Made by Maxime Limone
## Login <[email protected]>
## Started on Mon May 5 14:54:13 2014 Maxime Limone
## Last update Fri May 23 19:39:55 2014 Kevin Gay
##
SRC = Operator/pipe_simple.c \
Operator/dotcom.c \
Operator/db_pipe.c \
Operator/and_simple.c \
Operator/and_and.c \
Operator/left_chevron.c \
Operator/right_chevron.c \
Operator/db_left.c \
Operator/db_right.c \
Shell/free_stuff.c \
Shell/shell.c \
Shell/env.c \
Shell/clean_str.c \
Shell/path.c \
Shell/dollar.c \
Shell/parsing.c \
Shell/parsing_tree.c \
Shell/parsing_check.c \
Shell/execve.c\
Builtins/find.c \
Builtins/cd.c \
Builtins/built_in.c \
Builtins/unsetenv.c \
Builtins/setenv.c \
Builtins/pwd.c \
Builtins/old_pwd.c \
Builtins/my_errno.c \
Prompt/get_stuff.c \
Prompt/ps1.c \
Prompt/ascii.c \
Prompt/date.c \
Tree/tree.c \
SRC/epur_str.c \
SRC/my_putstr.c \
SRC/my_strcat.c \
SRC/my_strncpy.c \
SRC/my_strcmp.c \
SRC/my_free.c \
SRC/str_to_wordtab.c \
SRC/my_malloc_pwd.c \
SRC/my_show_tab.c \
SRC/main.c
NAME = 42sh
CC = cc
OBJ = $(SRC:.c=.o)
CFLAGS = -g -IInclude -Wall
all: $(NAME)
$(NAME): $(OBJ)
$(CC) $(CFLAGS) -o $(NAME) $(OBJ) -lncurses
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all