-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (35 loc) · 915 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
##
## EPITECH PROJECT, 2023
## MAKEFILE
## File description:
## makefile
##
NAME = mysh
TARGET = src/main.c \
src/builtins/builtin_misc.c \
src/builtins/unset_env.c \
src/builtins/set_env.c \
src/builtins/cd.c \
src/builtins/cd_misc.c \
src/builtins/env.c \
src/builtins/exit.c \
src/toolkit_parsing/parse_arguments.c \
src/toolkit_parsing/prompt_check.c \
src/toolkit_parsing/define_binary.c \
src/toolkit_parsing/execute_binary.c \
src/toolkit_parsing/misc_tools.c \
src/toolkit_parsing/prompt_wait.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)