-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (43 loc) · 1.54 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ler-rech <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/01/29 16:30:24 by ler-rech #+# #+# #
# Updated: 2021/03/18 17:05:56 by ler-rech ### ########.fr #
# #
# **************************************************************************** #
FLAGS = -Wall -Wextra -Werror
GCC = gcc $(FLAGS)
FILES_C = main.c \
main2.c \
main3.c \
main4.c \
main5.c \
get_next_line/*.c\
src/*.c \
parsing/*.c \
parsing/errors/*.c \
parsing/helpers/*.c \
parsing/spec_chars/*.c
FILES_O = *.o
NAME = minishell
FILE_H = libft.h
all: lib $(NAME)
lib:
make -C libft/
make bonus -C libft/
$(NAME):
@$(GCC) -o minishell $(FILES_C) libft/libft.a -ltermcap
san: fclean all
@$(GCC) -g -o minishell $(FILES_C) libft/libft.a -fsanitize=address -ltermcap
clean:
make clean -C libft/
fclean: clean
rm -rf minishell
make fclean -C libft/
norm:
@norminette *.c *.h */*.c */*.h */*/*.c */*/*.h
re: fclean all