-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 817 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
##
## EPITECH PROJECT, 2021
## MAKEFILE
## File description:
## wtf?
##
CORE_SRC = src/core/main.cpp \
src/core/Core.cpp \
src/core/loader/LdLoader.cpp\
src/shared/ArcadeError.cpp\
src/shared/csv.cpp \
src/shared/mapParser.cpp \
src/shared/gfxParser.cpp
CORE_NAME = arcade
CFLAGS = -Wall -Wextra -fno-gnu-unique -ldl -I./src/shared/ -g3
all: core games graphicals
core:
g++ $(CORE_SRC) $(CFLAGS) -o $(CORE_NAME)
games:
make -C ./src/games/nibbler --no-print-directory
make -C ./src/games/pacman --no-print-directory
graphicals:
make -C ./src/graphic/ncurses --no-print-directory
make -C ./src/graphic/sfml --no-print-directory
make -C ./src/graphic/sdl2 --no-print-directory
clean:
rm -rf;
fclean: clean;
rm -rf $(CORE_NAME);
re: fclean
@make $(NAME) --no-print-directory
.PHONY: all clean