-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (41 loc) · 828 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
##
## EPITECH PROJECT, 2019
## makefile
## File description:
## 103cipher
##
NAME = 103cipher
SRC = src/main.c \
src/display_help.c \
src/error_handling.c \
src/make_key.c \
src/make_password.c \
src/my_strlen.c \
src/display.c \
src/architect.c \
src/make_emptymatrix.c \
src/encryt_decryt.c \
src/reverse.c \
src/split.c \
src/trans_msg.c
CC = gcc
DEFLAGS = -W -Wextra -Wall -g3 -lm
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 *~
rm -f src/*~
rm -f include/*~
rm -f *.gcda
rm -f *.gcno
re : fclean all
.PHONY : all TU clean fclean re