-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
81 lines (66 loc) · 1.61 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
CC=g++
CFLAGS= -I.
LIBS=-lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system -lpugixml
# all:
# $(CC) $(CFLAGS) $(LIBS) src/*/*pp
# sfml:
# sudo apt-get install libsfml-dev
# ├── engine
# │ ├── audio
# │ ├── menu
# ├── game
# │ ├── music_player
# │ ├── pltfmr
# │ ├── show_cards
# │ └── snake_game
# ├── graphics
# │ ├── animations
# │ └── ui
# ├── model
# ├── previous_game
# ├── test
# │ ├── menu
# │ └── tools
# └── tools
# %.o: %.cpp %.hpp
# $(CC) $(CFLAGS) -c $?
%.o: %.cpp %.hpp
echo -e '\033[93m'Building '\033[95m'$@'\033[m' from '\033[96m'$? '\033[m'
$(CC) $(CFLAGS) -c $?
all: model tools pipeline graphics engine test
# $(CC) $(CFLAGS) $(LIBS) main.cpp
$(CC) $(CFLAGS) *.o model/*.hpp $(LIBS) main.cpp
model: model/drawable.o
engine: engine/timer.o \
pipeline \
engine/settings.o \
engine/scene.o \
engine/audio/sound.o \
engine/menu/menu.o \
tools \
graphics
$(CC) $(CFLAGS) -c engine/engine.*pp
pipeline: tools/xml_document.o \
game/music_player/music_player.o \
game/show_cards/show_cards.o \
game/snake_game/snake_game.o
$(CC) $(CFLAGS) -c engine/pipeline.*pp
graphics: ui
$(CC) $(CFLAGS) -c graphics/*pp
ui:
$(CC) $(CFLAGS) -c graphics/ui/*pp
tools: tools/xml_document.o \
tools/color.o \
tools/strmanip.o
test: test/test.o \
test/test_time.o \
test/test_xml.o \
test/snake_tests.o \
test/menu/test_menu.o \
test/tools/test_strmanip.o
echo 1
clean:
find -name "*.o" | xargs rm
find -name "*.gch" | xargs rm
objs:
find -name "*.o"