-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (40 loc) · 908 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
54
55
56
57
CC = g++
RM = rm -f
CPPFLAGS = -W -Wall -Wextra -Werror -std=c++14
LDFLAGS = -ldl
NAME = arcade
SRCS = core/main.cpp \
core/CoreProgram.cpp \
core/Score.cpp
LIB_SFML = lib/SFML
LIB_OPENGL = lib/OPENGL
LIB_SNAKE = games/snake
LIB_SOLARFOX = games/Solarfox
LIB_CACA = lib/lib_caca
OBJS = $(SRCS:.cpp=.o)
all:
make -C $(LIB_SNAKE)
make -C $(LIB_SOLARFOX)
make $(NAME)
graphic:
make -C $(LIB_SFML)
make -C $(LIB_CACA)
make -C $(LIB_OPENGL)
$(NAME): $(OBJS)
$(CC) -o $(NAME) $(OBJS) $(LDFLAGS)
clean:
make clean -C $(LIB_SFML)
make clean -C $(LIB_SNAKE)
make clean -C $(LIB_SOLARFOX)
make clean -C $(LIB_OPENGL)
make clean -C $(LIB_CACA)
$(RM) $(OBJS)
fclean: clean
make fclean -C $(LIB_SFML)
make fclean -C $(LIB_SNAKE)
make fclean -C $(LIB_SOLARFOX)
make fclean -C $(LIB_OPENGL)
make fclean -C $(LIB_CACA)
$(RM) $(NAME)
re: fclean all graphic
.PHONY: all clean fclean re