-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·53 lines (44 loc) · 1.15 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
##
## EPITECH PROJECT, 2023
## MAKEFILE
## File description:
## makefile
##
NAME = mysh
TARGET = src/main.c \
src/builtins/paths_misc.c \
src/builtins/unset_env/unset_env.c \
src/builtins/set_env/set_env.c \
src/builtins/set_env/env.c \
src/builtins/set_env/env_variable_find.c\
src/builtins/cd/cd.c \
src/builtins/cd/cd_misc.c \
src/builtins/exit/exit.c \
src/toolkit/exec/exec_misc.c \
src/toolkit/exec/exec_try.c \
src/toolkit/exec/exec_bools.c \
src/toolkit/exec/signals_read.c \
src/toolkit/input/input_read.c \
src/toolkit/input/prompt_tools.c \
src/toolkit/prompt_run.c \
src/commands/and_or.c \
src/commands/pipe.c \
src/commands/redirection.c \
src/commands/redirection_tools.c \
src/commands/here_document.c \
src/commands/tree.c \
src/commands/tree_tools.c \
FLAGS = -W -Wall -Wpedantic -Wno-long-long -g -Werror
INCLUDE = -I include/
all = $(NAME)
$(NAME):
cd lib; make
gcc -o $(NAME) $(TARGET) $(INCLUDE) $(FLAGS) -L lib/ -lmy
clean:
cd lib; make clean
rm -f *#
rm -f *~
fclean: clean
cd lib; make fclean
rm -f $(NAME)
re: fclean $(NAME)