-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
122 lines (91 loc) · 6.15 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
CC=g++
FLAGS=-Wall -std=c++0x -O0 -g -fpermissive
LIBS=-lrt -lSDL2 -lSDL2_image -lSDL2_net -lSDL2_mixer -lpthread -lSDL2_ttf
BINDIR=bin
OBJDIR=obj
SRCDIR=src
BIN_DEFAULT=$(BINDIR)/CutThePower
OBJ_DEFAULT=$(OBJDIR)/Gameplay/collision_system.o $(OBJDIR)/Gameplay/powerups.o $(OBJDIR)/Gameplay/movement_system.o $(OBJDIR)/Graphics/render_system.o $(OBJDIR)/Graphics/animation_system.o $(OBJDIR)/Graphics/map.o $(OBJDIR)/Graphics/fog_of_war_system.o $(OBJDIR)/Input/keyinputsystem.o $(OBJDIR)/Input/mouseinputsystem.o $(OBJDIR)/Input/menu.o $(OBJDIR)/main.o $(OBJDIR)/sound.o $(OBJDIR)/world.o $(OBJDIR)/triggered.o $(OBJDIR)/Graphics/text.o $(OBJDIR)/Network/GameplayCommunication.o $(OBJDIR)/Network/ServerCommunication.o $(OBJDIR)/Network/PipeUtils.o $(OBJDIR)/Network/NetworkRouter.o $(OBJDIR)/Network/ClientUpdateSystem.o $(OBJDIR)/Network/SendSystem.o $(OBJDIR)/Network/packet_min_utils.o $(OBJDIR)/Input/chat.o $(OBJDIR)/Graphics/cutscene_system.o
CutThePower: $(OBJ_DEFAULT)
test -d $(BINDIR) || mkdir -p $(BINDIR)
$(CC) $(FLAGS) -o $(BINDIR)/CutThePower $(OBJ_DEFAULT) $(LIBS)
run: CutThePower
$(BINDIR)/CutThePower
clean:
rm -f $(OBJ_DEFAULT) $(BIN_DEFAULT)
debug: $(OBJ_DEFAULT)
test -d $(BINDIR) || mkdir -p $(BINDIR)
$(CC) $(FLAGS) -g -o $(BINDIR)/CutThePower $(OBJ_DEFAULT) $(LIBS)
gdb $(BINDIR)/CutThePower
$(OBJDIR)/Network/packet_min_utils.o: $(SRCDIR)/Network/packet_min_utils.c
test -d $(OBJDIR)/Network || mkdir -p $(OBJDIR)/Network
$(CC) $(FLAGS) -c -o $(OBJDIR)/Network/packet_min_utils.o $(SRCDIR)/Network/packet_min_utils.c
$(OBJDIR)/Gameplay/powerups.o: $(SRCDIR)/Gameplay/powerups.cpp
test -d $(OBJDIR)/Gameplay || mkdir -p $(OBJDIR)/Gameplay
$(CC) $(FLAGS) -c -o $(OBJDIR)/Gameplay/powerups.o $(SRCDIR)/Gameplay/powerups.cpp
$(OBJDIR)/Gameplay/collision_system.o: $(SRCDIR)/Gameplay/collision_system.cpp
test -d $(OBJDIR)/Gameplay || mkdir -p $(OBJDIR)/Gameplay
$(CC) $(FLAGS) -c -o $(OBJDIR)/Gameplay/collision_system.o $(SRCDIR)/Gameplay/collision_system.cpp
$(OBJDIR)/Gameplay/movement_system.o: $(SRCDIR)/Gameplay/movement_system.cpp
test -d $(OBJDIR)/Gameplay || mkdir -p $(OBJDIR)/Gameplay
$(CC) $(FLAGS) -c -o $(OBJDIR)/Gameplay/movement_system.o $(SRCDIR)/Gameplay/movement_system.cpp
$(OBJDIR)/Graphics/render_system.o: $(SRCDIR)/Graphics/render_system.cpp
test -d $(OBJDIR)/Graphics || mkdir -p $(OBJDIR)/Graphics
$(CC) $(FLAGS) -c -o $(OBJDIR)/Graphics/render_system.o $(SRCDIR)/Graphics/render_system.cpp
$(OBJDIR)/Graphics/animation_system.o: $(SRCDIR)/Graphics/animation_system.cpp
test -d $(OBJDIR)/Graphics || mkdir -p $(OBJDIR)/Graphics
$(CC) $(FLAGS) -c -o $(OBJDIR)/Graphics/animation_system.o $(SRCDIR)/Graphics/animation_system.cpp
$(OBJDIR)/Graphics/text.o: $(SRCDIR)/Graphics/text.cpp
test -d $(OBJDIR)/Graphics || mkdir -p $(OBJDIR)/Graphics
$(CC) $(FLAGS) -c -o $(OBJDIR)/Graphics/text.o $(SRCDIR)/Graphics/text.cpp
$(OBJDIR)/Graphics/cutscene_system.o: $(SRCDIR)/Graphics/cutscene_system.cpp
test -d $(OBJDIR)/Graphics || mkdir -p $(OBJDIR)/Graphics
$(CC) $(FLAGS) -c -o $(OBJDIR)/Graphics/cutscene_system.o $(SRCDIR)/Graphics/cutscene_system.cpp
$(OBJDIR)/Graphics/map.o: $(SRCDIR)/Graphics/map.cpp
test -d $(OBJDIR)/Graphics || mkdir -p $(OBJDIR)/Graphics
$(CC) $(FLAGS) -c -o $(OBJDIR)/Graphics/map.o $(SRCDIR)/Graphics/map.cpp
$(OBJDIR)/Graphics/fog_of_war_system.o: $(SRCDIR)/Graphics/fog_of_war_system.cpp
test -d $(OBJDIR)/Graphics || mkdir -p $(OBJDIR)/Graphics
$(CC) $(FLAGS) -c -o $(OBJDIR)/Graphics/fog_of_war_system.o $(SRCDIR)/Graphics/fog_of_war_system.cpp
$(OBJDIR)/Input/keyinputsystem.o: $(SRCDIR)/Input/keyinputsystem.cpp
test -d $(OBJDIR)/Input || mkdir -p $(OBJDIR)/Input
$(CC) $(FLAGS) -c -o $(OBJDIR)/Input/keyinputsystem.o $(SRCDIR)/Input/keyinputsystem.cpp
$(OBJDIR)/Input/mouseinputsystem.o: $(SRCDIR)/Input/mouseinputsystem.cpp
test -d $(OBJDIR)/Input || mkdir -p $(OBJDIR)/Input
$(CC) $(FLAGS) -c -o $(OBJDIR)/Input/mouseinputsystem.o $(SRCDIR)/Input/mouseinputsystem.cpp
$(OBJDIR)/Input/menu.o: $(SRCDIR)/Input/menu.cpp
test -d $(OBJDIR)/Input || mkdir -p $(OBJDIR)/Input
$(CC) $(FLAGS) -c -o $(OBJDIR)/Input/menu.o $(SRCDIR)/Input/menu.cpp
$(OBJDIR)/Input/chat.o: $(SRCDIR)/Input/chat.cpp
test -d $(OBJDIR)/Input || mkdir -p $(OBJDIR)/Input
$(CC) $(FLAGS) -c -o $(OBJDIR)/Input/chat.o $(SRCDIR)/Input/chat.cpp
$(OBJDIR)/main.o: $(SRCDIR)/main.cpp
test -d $(OBJDIR) || mkdir -p $(OBJDIR)
$(CC) $(FLAGS) -c -o $(OBJDIR)/main.o $(SRCDIR)/main.cpp
$(OBJDIR)/triggered.o: $(SRCDIR)/triggered.cpp
test -d $(OBJDIR) || mkdir -p $(OBJDIR)
$(CC) $(FLAGS) -c -o $(OBJDIR)/triggered.o $(SRCDIR)/triggered.cpp
$(OBJDIR)/sound.o: $(SRCDIR)/sound.cpp
test -d $(OBJDIR) || mkdir -p $(OBJDIR)
$(CC) $(FLAGS) -c -o $(OBJDIR)/sound.o $(SRCDIR)/sound.cpp
$(OBJDIR)/Network/GameplayCommunication.o: $(SRCDIR)/Network/GameplayCommunication.cpp
test -d $(OBJDIR)/Network || mkdir -p $(OBJDIR)/Network
$(CC) $(FLAGS) -c -o $(OBJDIR)/Network/GameplayCommunication.o $(SRCDIR)/Network/GameplayCommunication.cpp
$(OBJDIR)/Network/ServerCommunication.o: $(SRCDIR)/Network/ServerCommunication.cpp
test -d $(OBJDIR)/Network || mkdir -p $(OBJDIR)/Network
$(CC) $(FLAGS) -c -o $(OBJDIR)/Network/ServerCommunication.o $(SRCDIR)/Network/ServerCommunication.cpp
$(OBJDIR)/Network/PipeUtils.o: $(SRCDIR)/Network/PipeUtils.cpp
test -d $(OBJDIR)/Network || mkdir -p $(OBJDIR)/Network
$(CC) $(FLAGS) -c -o $(OBJDIR)/Network/PipeUtils.o $(SRCDIR)/Network/PipeUtils.cpp
$(OBJDIR)/Network/NetworkRouter.o: $(SRCDIR)/Network/NetworkRouter.cpp
test -d $(OBJDIR)/Network || mkdir -p $(OBJDIR)/Network
$(CC) $(FLAGS) -c -o $(OBJDIR)/Network/NetworkRouter.o $(SRCDIR)/Network/NetworkRouter.cpp
$(OBJDIR)/Network/ClientUpdateSystem.o: $(SRCDIR)/Network/ClientUpdateSystem.cpp
test -d $(OBJDIR)/Network || mkdir -p $(OBJDIR)/Network
$(CC) $(FLAGS) -c -o $(OBJDIR)/Network/ClientUpdateSystem.o $(SRCDIR)/Network/ClientUpdateSystem.cpp
$(OBJDIR)/Network/SendSystem.o: $(SRCDIR)/Network/SendSystem.cpp
test -d $(OBJDIR)/Network || mkdir -p $(OBJDIR)/Network
$(CC) $(FLAGS) -c -o $(OBJDIR)/Network/SendSystem.o $(SRCDIR)/Network/SendSystem.cpp
$(OBJDIR)/world.o: $(SRCDIR)/world.cpp
test -d $(OBJDIR) || mkdir -p $(OBJDIR)
$(CC) $(FLAGS) -c -o $(OBJDIR)/world.o $(SRCDIR)/world.cpp