-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (40 loc) · 843 Bytes
/
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
##
## EPITECH PROJECT, 2020
## PSU_minishell1_2019
## File description:
## Makefile
##
SRC = src/parsing/init.c \
src/parsing/tool.c \
src/parsing/erase_space.c \
src/parsing/split.c \
src/utility/utility1.c \
src/utility/utility2.c \
src/utility/utility3.c \
src/bin_exec.c \
src/bin_exec_2.c \
src/cmd_exec.c \
src/dir_change.c \
src/dir_change_2.c \
src/dir_change_3.c \
src/env_gestion.c \
src/env_gestion2.c \
src/env_gestion_2.c \
src/env_modif.c \
src/my_echo.c \
src/write_error.c \
src/main.c \
OBJ = $(SRC:.c=.o)
NAME = 42sh
CPPFLAGS= -I./include
all : $(NAME)
$(NAME) : $(OBJ)
gcc -o $(NAME) $(OBJ)
debug : CFLAGS += -g
debug : re
clean :
rm -f $(OBJ)
fclean : clean
rm -f $(NAME)
re : fclean all
.PHONY : all clean fclean re