-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
395 lines (385 loc) · 16.7 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
CXX=g++
CFLAGS=-std=c++17 -Wall -pedantic -lSDL2 -lSDL2_image -O3
OBJS=./obj/main.o ./obj/tank.o ./obj/tile_crate.o ./obj/dummy_io_device.o ./obj/sdl_io_device.o ./obj/io_device.o ./obj/world.o ./obj/texture_pack.o ./obj/game_object.o ./obj/entity.o ./obj/tile_bricks.o ./obj/i_physical.o ./obj/tile_air.o ./obj/tile_steel.o ./obj/tile.o ./obj/point_2d.o ./obj/i_directional.o ./obj/tank_game.o ./obj/projectile.o ./obj/explosion.o ./obj/i_damageable.o ./obj/game_context.o ./obj/ai_tank.o ./obj/entity_ammo.o ./obj/entity_bonus.o ./obj/entity_max_health.o ./obj/entity_speed.o ./obj/entity_repair.o
all: compile doc
compile: hlavaadr
hlavaadr: $(OBJS)
$(CXX) $(CFLAGS) -o $@ $^ -lstdc++fs
run: compile
./hlavaadr $(ARGS)
doc: ./src/*.hpp ./src/GameObjects/*.hpp ./src/*.cpp ./src/GameObjects/*.cpp
doxygen doxyConfig
clean:
rm -rf ./obj ./doc hlavaadr
./obj/%.o: ./src/%.cpp
mkdir -p obj
$(CXX) $(CFLAGS) -c $< -o$@
./obj/%.o: ./src/GameObjects/%.cpp
mkdir -p obj
$(CXX) $(CFLAGS) -c $< -o$@
#GENERATED BY g++ -MM , then fixed
dummy_io_device.o: src/dummy_io_device.cpp src/dummy_io_device.hpp \
src/io_device.hpp src/world.hpp src/tile.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp src/e_textures.hpp \
src/entity.hpp src/GameObjects/tank.hpp src/entity.hpp \
src/i_directional.hpp src/point_2d.hpp \
src/e_direction.hpp src/game_context.hpp \
src/i_damageable.hpp src/tank_game.hpp
dummy_io_device.o: src/dummy_io_device.hpp src/io_device.hpp \
src/world.hpp src/tile.hpp src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp src/entity.hpp \
src/GameObjects/tank.hpp src/entity.hpp \
src/i_directional.hpp src/point_2d.hpp \
src/e_direction.hpp src/game_context.hpp \
src/i_damageable.hpp
e_direction.o: src/e_direction.hpp
entity_bonus.o: src/entity_bonus.cpp src/entity_bonus.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/world.hpp src/tile.hpp src/GameObjects/tank.hpp \
src/entity.hpp src/i_directional.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/game_context.hpp src/i_damageable.hpp \
src/GameObjects/entity_ammo.hpp src/entity_bonus.hpp \
src/GameObjects/entity_max_health.hpp src/GameObjects/entity_speed.hpp \
src/GameObjects/entity_repair.hpp
entity_bonus.o: src/entity_bonus.hpp src/entity.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp src/e_textures.hpp
entity.o: src/entity.cpp src/entity.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp src/e_textures.hpp
entity.o: src/entity.hpp src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp
e_textures.o: src/e_textures.hpp
game_context.o: src/game_context.cpp src/game_context.hpp \
src/tank_game.hpp src/io_device.hpp src/world.hpp src/tile.hpp \
src/game_object.hpp src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp src/e_textures.hpp \
src/entity.hpp src/GameObjects/tank.hpp src/entity.hpp \
src/i_directional.hpp src/point_2d.hpp \
src/e_direction.hpp src/game_context.hpp \
src/i_damageable.hpp
game_context.o: src/game_context.hpp
game_object.o: src/game_object.cpp src/game_object.hpp \
src/game_context.hpp
game_object.o: src/game_object.hpp src/game_context.hpp
i_damageable.o: src/i_damageable.cpp src/i_damageable.hpp \
src/game_context.hpp
i_damageable.o: src/i_damageable.hpp src/game_context.hpp
i_directional.o: src/i_directional.cpp src/i_directional.hpp \
src/point_2d.hpp src/e_direction.hpp src/game_context.hpp
i_directional.o: src/i_directional.hpp src/point_2d.hpp \
src/e_direction.hpp src/game_context.hpp
io_device.o: src/io_device.cpp src/io_device.hpp src/world.hpp \
src/tile.hpp src/game_object.hpp src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/entity.hpp src/GameObjects/tank.hpp \
src/entity.hpp src/i_directional.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/game_context.hpp src/i_damageable.hpp
io_device.o: src/io_device.hpp src/world.hpp src/tile.hpp \
src/game_object.hpp src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/entity.hpp src/GameObjects/tank.hpp \
src/entity.hpp src/i_directional.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/game_context.hpp src/i_damageable.hpp
i_physical.o: src/i_physical.cpp src/i_physical.hpp src/game_object.hpp \
src/game_context.hpp src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp src/world.hpp src/tile.hpp \
src/entity.hpp src/GameObjects/tank.hpp src/entity.hpp \
src/i_directional.hpp src/point_2d.hpp \
src/e_direction.hpp src/game_context.hpp \
src/i_damageable.hpp
i_physical.o: src/i_physical.hpp src/game_object.hpp src/game_context.hpp \
src/point_2d.hpp src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp
main.o: src/main.cpp src/tank_game.hpp src/io_device.hpp src/world.hpp \
src/tile.hpp src/game_object.hpp src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/entity.hpp src/GameObjects/tank.hpp \
src/entity.hpp src/i_directional.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/game_context.hpp src/i_damageable.hpp \
src/sdl_io_device.hpp src/dummy_io_device.hpp
point_2d.o: src/point_2d.cpp src/point_2d.hpp src/e_direction.hpp
point_2d.o: src/point_2d.hpp src/e_direction.hpp
sdl_io_device.o: src/sdl_io_device.cpp src/sdl_io_device.hpp \
src/io_device.hpp src/world.hpp src/tile.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp src/e_textures.hpp \
src/entity.hpp src/GameObjects/tank.hpp src/entity.hpp \
src/i_directional.hpp src/point_2d.hpp \
src/e_direction.hpp src/game_context.hpp \
src/i_damageable.hpp
sdl_io_device.o: src/sdl_io_device.hpp src/io_device.hpp src/world.hpp \
src/tile.hpp src/game_object.hpp src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/entity.hpp src/GameObjects/tank.hpp \
src/entity.hpp src/i_directional.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/game_context.hpp src/i_damageable.hpp
tank_game.o: src/tank_game.cpp src/tank_game.hpp src/io_device.hpp \
src/world.hpp src/tile.hpp src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp src/entity.hpp \
src/GameObjects/tank.hpp src/entity.hpp \
src/i_directional.hpp src/point_2d.hpp \
src/e_direction.hpp src/game_context.hpp \
src/i_damageable.hpp
tank_game.o: src/tank_game.hpp src/io_device.hpp src/world.hpp \
src/tile.hpp src/game_object.hpp src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/entity.hpp src/GameObjects/tank.hpp \
src/entity.hpp src/i_directional.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/game_context.hpp src/i_damageable.hpp
texture_pack.o: src/texture_pack.cpp src/texture_pack.hpp \
src/e_textures.hpp
texture_pack.o: src/texture_pack.hpp src/e_textures.hpp
tile.o: src/tile.cpp src/tile.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp src/e_textures.hpp
tile.o: src/tile.hpp src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp
world.o: src/world.cpp src/world.hpp src/tile.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp src/e_textures.hpp \
src/entity.hpp src/GameObjects/tank.hpp src/entity.hpp \
src/i_directional.hpp src/point_2d.hpp \
src/e_direction.hpp src/game_context.hpp \
src/i_damageable.hpp src/GameObjects/tile_air.hpp \
src/tile.hpp src/GameObjects/tile_steel.hpp \
src/GameObjects/tile_bricks.hpp src/GameObjects/tile_crate.hpp \
src/GameObjects/ai_tank.hpp src/GameObjects/tank.hpp src/tank_game.hpp \
src/io_device.hpp
world.o: src/world.hpp src/tile.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp src/e_textures.hpp \
src/entity.hpp src/GameObjects/tank.hpp src/entity.hpp \
src/i_directional.hpp src/point_2d.hpp \
src/e_direction.hpp src/game_context.hpp \
src/i_damageable.hpp
ai_tank.o: src/GameObjects/ai_tank.cpp src/GameObjects/ai_tank.hpp \
src/GameObjects/tank.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/i_directional.hpp \
src/i_damageable.hpp src/tank_game.hpp \
src/io_device.hpp src/world.hpp \
src/tile.hpp src/entity.hpp \
src/GameObjects/tank.hpp \
src/entity_bonus.hpp src/GameObjects/projectile.hpp \
src/GameObjects/tile_crate.hpp src/tile.hpp \
src/GameObjects/tile_bricks.hpp
ai_tank.o: src/GameObjects/ai_tank.hpp src/GameObjects/tank.hpp \
src/entity.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp \
src/i_directional.hpp src/i_damageable.hpp
entity_ammo.o: src/GameObjects/entity_ammo.cpp \
src/GameObjects/entity_ammo.hpp src/entity_bonus.hpp \
src/entity.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp \
src/world.hpp src/tile.hpp \
src/GameObjects/tank.hpp \
src/entity.hpp \
src/i_directional.hpp \
src/point_2d.hpp \
src/e_direction.hpp \
src/game_context.hpp \
src/i_damageable.hpp
entity_ammo.o: src/GameObjects/entity_ammo.hpp \
src/entity_bonus.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp
entity_max_health.o: src/GameObjects/entity_max_health.cpp \
src/GameObjects/entity_max_health.hpp \
src/entity_bonus.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/world.hpp \
src/tile.hpp src/GameObjects/tank.hpp \
src/entity.hpp \
src/i_directional.hpp \
src/point_2d.hpp \
src/e_direction.hpp \
src/game_context.hpp \
src/i_damageable.hpp
entity_max_health.o: src/GameObjects/entity_max_health.hpp \
src/entity_bonus.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp
entity_repair.o: src/GameObjects/entity_repair.cpp \
src/GameObjects/entity_repair.hpp src/entity_bonus.hpp \
src/entity.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp \
src/world.hpp src/tile.hpp \
src/GameObjects/tank.hpp \
src/entity.hpp \
src/i_directional.hpp \
src/point_2d.hpp \
src/e_direction.hpp \
src/game_context.hpp \
src/i_damageable.hpp
entity_repair.o: src/GameObjects/entity_repair.hpp \
src/entity_bonus.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp
entity_speed.o: src/GameObjects/entity_speed.cpp \
src/GameObjects/entity_speed.hpp src/entity_bonus.hpp \
src/entity.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp \
src/world.hpp src/tile.hpp \
src/GameObjects/tank.hpp \
src/entity.hpp \
src/i_directional.hpp \
src/point_2d.hpp \
src/e_direction.hpp \
src/game_context.hpp \
src/i_damageable.hpp
entity_speed.o: src/GameObjects/entity_speed.hpp \
src/entity_bonus.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp
explosion.o: src/GameObjects/explosion.cpp src/GameObjects/explosion.hpp \
src/entity.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp \
src/i_damageable.hpp src/world.hpp \
src/tile.hpp src/entity.hpp \
src/GameObjects/tank.hpp \
src/entity.hpp \
src/i_directional.hpp \
src/point_2d.hpp \
src/e_direction.hpp \
src/game_context.hpp \
src/i_damageable.hpp
explosion.o: src/GameObjects/explosion.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp
projectile.o: src/GameObjects/projectile.cpp \
src/GameObjects/projectile.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/i_directional.hpp \
src/GameObjects/explosion.hpp src/tank_game.hpp \
src/io_device.hpp src/world.hpp \
src/tile.hpp src/entity.hpp \
src/GameObjects/tank.hpp \
src/entity.hpp \
src/i_directional.hpp \
src/i_damageable.hpp \
src/game_context.hpp \
src/game_context.hpp
projectile.o: src/GameObjects/projectile.hpp \
src/entity.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp \
src/i_directional.hpp
tank.o: src/GameObjects/tank.cpp src/GameObjects/tank.hpp \
src/entity.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp \
src/i_directional.hpp src/i_damageable.hpp \
src/tank_game.hpp src/io_device.hpp \
src/world.hpp src/tile.hpp \
src/entity.hpp src/GameObjects/tank.hpp \
src/world.hpp src/game_context.hpp \
src/GameObjects/projectile.hpp src/GameObjects/explosion.hpp
tank.o: src/GameObjects/tank.hpp src/entity.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/i_directional.hpp \
src/i_damageable.hpp
tile_air.o: src/GameObjects/tile_air.cpp src/GameObjects/tile_air.hpp \
src/tile.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp
tile_air.o: src/GameObjects/tile_air.hpp src/tile.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp
tile_bricks.o: src/GameObjects/tile_bricks.cpp \
src/GameObjects/tile_bricks.hpp src/tile.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/i_damageable.hpp \
src/GameObjects/tile_air.hpp src/world.hpp \
src/tile.hpp src/entity.hpp \
src/GameObjects/tank.hpp \
src/entity.hpp \
src/i_directional.hpp \
src/point_2d.hpp \
src/e_direction.hpp \
src/game_context.hpp \
src/i_damageable.hpp
tile_bricks.o: src/GameObjects/tile_bricks.hpp \
src/tile.hpp src/game_object.hpp \
src/game_context.hpp src/i_physical.hpp \
src/point_2d.hpp src/e_direction.hpp \
src/texture_pack.hpp src/e_textures.hpp \
src/i_damageable.hpp
tile_crate.o: src/GameObjects/tile_crate.cpp \
src/GameObjects/tile_crate.hpp src/tile.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/i_damageable.hpp \
src/GameObjects/tile_air.hpp src/entity_bonus.hpp \
src/entity.hpp src/world.hpp \
src/tile.hpp src/GameObjects/tank.hpp \
src/entity.hpp \
src/i_directional.hpp \
src/point_2d.hpp \
src/e_direction.hpp \
src/game_context.hpp \
src/i_damageable.hpp
tile_crate.o: src/GameObjects/tile_crate.hpp src/tile.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp src/i_damageable.hpp
tile_steel.o: src/GameObjects/tile_steel.cpp \
src/GameObjects/tile_steel.hpp src/tile.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp
tile_steel.o: src/GameObjects/tile_steel.hpp src/tile.hpp \
src/game_object.hpp src/game_context.hpp \
src/i_physical.hpp src/point_2d.hpp \
src/e_direction.hpp src/texture_pack.hpp \
src/e_textures.hpp