-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (40 loc) · 850 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
##
## EPITECH PROJECT, 2019
## makefile
## File description:
## my_printf
##
NAME = my_runner
SRC = src/main.c \
src/error_handling.c \
src/my_putchar.c \
src/my_putstr.c \
src/display_h.c \
src/runner.c \
src/function_struct.c \
src/jump.c \
src/sprite_create.c \
src/music.c \
src/score.c \
src/my_revstr.c
CC = gcc
DEFLAGS = -W -Wextra -Wall -g3
CPPFLAGS = -lcsfml-graphics -lcsfml-window -lcsfml-audio -lm -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 include/*~ \
rm -f src/*~ \
rm -f *.gcda \
rm -f *.gcno
re : fclean all
.PHONY : all TU clean fclean re