-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (49 loc) · 968 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
52
53
54
55
56
57
58
59
60
61
62
##
## EPITECH PROJECT, 2019
## makefile
## File description:
## minishell
##
NAME = mysh
SRC = src/main.c \
src/start.c \
src/simple_cmd.c \
src/my_putchar.c \
src/my_putstr.c \
src/dispatch_cmd.c \
src/check_command.c \
src/my_strlen.c \
src/cd_f.c \
src/my_split.c \
src/count_space.c \
src/env_f.c \
src/clear_space.c \
src/exe_bin.c \
src/my_strcat.c \
src/setenv_f.c \
src/unsetenv_f.c \
src/my_atoi.c \
src/check_exe.c
CC = gcc
DEFLAGS = -W -Wextra -Wall -g3
CPPFLAGS = -I./include/
CFFLAGS = tests/unit_tests.c -I./include --coverage -lcriterion
OBJ = $(SRC:.c=.o)
all : $(OBJ)
$(CC) $(DEFLAGS) -o $(NAME) $(OBJ) $(CPPFLAGS)
TU :
$(CC) -o unit_tests lib/my/*.c $(CFFLAGS)
clean :
rm -f $(OBJ)
fclean : clean
rm -f $(NAME)
rm -f *# \
rm -f src/*# \
rm -f include/*# \
rm -f *~ \
rm -f src/*~ \
rm -f include/*~ \
rm -f *.gcda \
rm -f *.gcno
re : fclean all
.PHONY : all TU clean fclean re