-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 827 Bytes
/
Makefile
File metadata and controls
46 lines (37 loc) · 827 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
##
## EPITECH PROJECT, 2021
## vlib
## File description:
## unit tests makefile
##
CPPFLAGS += -Wall -Wextra -I . -Wno-type-limits
CFLAGS += -fprofile-arcs -ftest-coverage
LDFLAGS += -lcriterion -lgcov
RM = rm -rf
CC = gcc
SRC = vector_emplace.c \
vector_emplace_back.c \
vector_front.c \
vector_back.c \
vector_foreach.c \
vector_reversed_foreach.c \
vector_emplace_elem.c \
vector_clear.c \
vector_empty.c \
vector_pop.c \
vector_pop_back.c \
vector_pop_elem.c \
vector_find.c
SRC_C = $(addprefix tests/, $(SRC))
OBJ = $(SRC_C:.c=.o)
NAME = unit_tests
tests_run: $(OBJ)
$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)
./unit_tests
clean:
$(RM) tests/*.gcno
$(RM) tests/*.gcda
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean tests_run