-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (47 loc) · 837 Bytes
/
Makefile
File metadata and controls
56 lines (47 loc) · 837 Bytes
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
NAME = minishell
SRC = main.c \
term.c \
term_inits.c \
term_del_insert.c \
term_commands.c \
envs.c \
parser.c \
parser_redirection.c \
tokens.c \
inits.c \
utils.c \
utils2.c \
utils3.c \
utils4.c \
utils_lib.c \
utils_lib2.c \
utils_lib3.c \
memory.c \
executor.c \
executor_pipe.c \
executor_run.c \
signal.c \
builtin_pwd.c \
builtin_echo.c \
builtin_cd.c \
builtin_unset.c \
builtin_export.c \
builtin_env.c \
builtin_exit.c \
ft_split.c \
DIR_SRC = srcs/
SRCS = $(addprefix $(DIR_SRC), $(SRC))
OBJS = $(SRCS:c=o)
FLAGS = -O3 -Wall -Wextra -Werror -fsanitize=address
all: $(NAME)
$(NAME): $(OBJS)
gcc $(FLAGS) -o $(NAME) $(OBJS) -ltermcap
%.o: %.c
gcc $(FLAGS) -c $< -o $@
clean:
rm -rf $(OBJS)
fclean: clean
rm -rf $(NAME)
re: fclean all
norm:
norminette .