-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (35 loc) · 748 Bytes
/
Makefile
File metadata and controls
51 lines (35 loc) · 748 Bytes
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
##
## EPITECH PROJECT, 2022
## Makefile
## File description:
## s
##
CC = gcc
SRC = src/main.c \
src/set_up.c \
src/display.c \
src/event.c
OBJ = $(SRC:.c=.o)
TEMP = *.gcda *.gcno *.gch
NAME = my_neural_network
LFLAGS = -lcsfml-graphics -lcsfml-window \
-lcsfml-system -lcsfml-audio -L lib/my/ -lmy -lm
CFLAGS = -Wall -Wextra
CPPFLAGS = -I ./include
all: $(NAME)
$(NAME): $(OBJ)
make -C lib/my/
$(CC) -o $(NAME) $(OBJ) $(LFLAGS)
unit_tests: fclean libmy.a
$(CC) tests/units_tests.c libmy.a -lcriterion --coverage
tests_run: unit_tests
./a.out
clean:
make clean -C lib/my/
$(RM) $(OBJ)
$(RM) $(TEMP)
fclean: clean
make fclean -C lib/my
$(RM) $(NAME)
re: fclean all
.PHONY = clean fclean re all