-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·52 lines (43 loc) · 1.09 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
##
## EPITECH PROJECT, 2021
## my_runner
## File description:
## Tsu
##
NAME = 42sh
SRC = src/core/minishell.c \
src/core/error_exit.c \
src/init/init_env.c \
src/init/main_init.c \
src/init/init_command.c \
src/input/ask_input.c \
src/input/get_commands.c \
src/core/shell_loop.c \
src/free/free_command.c \
src/free/free_all.c \
src/free/free_env.c \
src/commands/command_handling.c \
src/commands/check_builtin.c \
src/commands/check_redir.c \
src/commands/execute.c \
src/commands/try_cmd.c \
src/commands/check_pipe.c \
src/commands/path_handling.c \
src/commands/builtins/env/print_env.c \
src/commands/pipe_handling.c \
src/commands/builtins/env/get_env.c \
src/commands/builtins/exit/exit_cmd.c \
src/commands/builtins/cd/cd_cmd.c \
src/commands/builtins/env/set_env.c \
src/commands/builtins/env/unset_env.c \
INCLUDE = -I include/
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME):
cd lib/my && make re -s
gcc -g $(INCLUDE) $(SRC) -o $(NAME) -L ./lib/my/ -lmy
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all