-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (52 loc) · 1.23 KB
/
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
63
##
## EPITECH PROJECT, 2021
## makefile evalexpr
## File description:
## makefile for evalxpr
##
SRC = asm.c \
src/cus_lib/my_memset.c \
src/cus_lib/cus_mal.c\
src/cus_lib/int_to_byte.c \
src/print/print_help.c \
src/print/write_cor.c \
src/print/write_types.c \
src/print/get_program_size.c \
src/parsing/fun_starts.c \
src/parsing/init_struct.c \
src/parsing/is_label.c \
src/parsing/opt_fun.c \
src/parsing/init_types.c \
src/command/getcommand.c \
src/command/getfilename.c \
src/parsing/check_types.c \
src/parsing/label_handling.c \
OBJ = $(SRC:.c=.o)
NAME = asm
CFLAGS += -Wall -Wextra
all: $(NAME)
$(NAME): ${OBJ}
make -C ./lib/c_malloc
make -C ./lib/pool
gcc -o ${NAME} ${OBJ} -L ./lib -lpool -lc_malloc
clean:
make -C ./lib/pool clean
make -C ./lib/c_malloc clean
rm -f $(OBJ)
fclean: clean
make -C ./lib/pool fclean
make -C ./lib/c_malloc fclean
rm -f ${NAME}
re: fclean all
make -C ./lib/c_malloc fclean re
make -C ./lib/pool fclean re
debug: ${OBJ}
make -C ./lib/c_malloc
make -C ./lib/pool
gcc -g -o $(NAME) $(SRC) -L ./lib -lpool -lc_malloc
# tests_run:
# @make -s -C ./lib/freeing
# @make -s -C tests
# @./unit_tests
# @make -s -C tests fclean
# @make -s -C ./lib/freeing fclean