-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 861 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
##
## EPITECH PROJECT, 2020
## makefile
## File description:
## makefile of infinadd
##
NAME = my_runner
SRC = src/principal_functions/main.c \
src/principal_functions/my_runner.c \
src/support_functions/init_game_var.c \
src/support_functions/init_images.c \
src/principal_functions/game_setup.c \
src/principal_functions/read_file.c \
src/principal_functions/move_sprites.c \
src/support_functions/my_int_to_str.c \
OBJ = $(SRC:.c=.o)
CFLAGS += -I./include/ -l csfml-graphics -l csfml-system -l csfml-audio -g3
LDLIBS = -L./lib/ -lmy
all: $(NAME)
$(NAME): make_lib $(OBJ)
$(CC) $(OBJ) -o $(NAME) $(CFLAGS) $(LDLIBS)
make_lib:
$(MAKE) -C lib/my
clean:
rm -f $(OBJ)
$(MAKE) clean -C lib/my/
fclean: clean
rm -f $(NAME)
$(MAKE) fclean -C lib/my
run_tests:
re: fclean all
$(MAKE) re -C lib/my