-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
475 lines (412 loc) · 14 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
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
#############################################################################
# Makefile for building: myHomework5Directory
# Generated by qmake (2.01a) (Qt 4.6.2) on: Wed Apr 25 23:31:16 2012
# Project: myHomework5Directory.pro
# Template: app
# Command: /usr/bin/qmake -unix -o Makefile myHomework5Directory.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I.
LINK = g++
LFLAGS = -Wl,-O1
LIBS = $(SUBLIBS) -L/usr/lib -lQtGui -lQtCore -lpthread
AR = ar cqs
RANLIB =
QMAKE = /usr/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
STRIP = strip
INSTALL_FILE = install -m 644 -p
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = ./
####### Files
SOURCES = bubble.cpp \
bubbleBeam.cpp \
bubbleBullet.cpp \
bubbleLightning.cpp \
bubblePoop.cpp \
game.cpp \
gameWindow.cpp \
level1.cpp \
level2.cpp \
level3.cpp \
level4.cpp \
main.cpp \
monster.cpp \
monsterBoss.cpp \
monsterBull.cpp \
monsterLaser.cpp \
monsterRobot.cpp \
monsterSkeleton.cpp \
player.cpp \
powerup.cpp \
powerupCandy.cpp \
powerupDiamonds.cpp \
powerupLife.cpp \
powerupLightning.cpp \
powerupPoison.cpp \
powerupSkates.cpp moc_game.cpp \
moc_gameWindow.cpp
OBJECTS = bubble.o \
bubbleBeam.o \
bubbleBullet.o \
bubbleLightning.o \
bubblePoop.o \
game.o \
gameWindow.o \
level1.o \
level2.o \
level3.o \
level4.o \
main.o \
monster.o \
monsterBoss.o \
monsterBull.o \
monsterLaser.o \
monsterRobot.o \
monsterSkeleton.o \
player.o \
powerup.o \
powerupCandy.o \
powerupDiamonds.o \
powerupLife.o \
powerupLightning.o \
powerupPoison.o \
powerupSkates.o \
moc_game.o \
moc_gameWindow.o
DIST = /usr/share/qt4/mkspecs/common/g++.conf \
/usr/share/qt4/mkspecs/common/unix.conf \
/usr/share/qt4/mkspecs/common/linux.conf \
/usr/share/qt4/mkspecs/qconfig.pri \
/usr/share/qt4/mkspecs/features/qt_functions.prf \
/usr/share/qt4/mkspecs/features/qt_config.prf \
/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
/usr/share/qt4/mkspecs/features/default_pre.prf \
/usr/share/qt4/mkspecs/features/release.prf \
/usr/share/qt4/mkspecs/features/default_post.prf \
/usr/share/qt4/mkspecs/features/warn_on.prf \
/usr/share/qt4/mkspecs/features/qt.prf \
/usr/share/qt4/mkspecs/features/unix/thread.prf \
/usr/share/qt4/mkspecs/features/moc.prf \
/usr/share/qt4/mkspecs/features/resources.prf \
/usr/share/qt4/mkspecs/features/uic.prf \
/usr/share/qt4/mkspecs/features/yacc.prf \
/usr/share/qt4/mkspecs/features/lex.prf \
/usr/share/qt4/mkspecs/features/include_source_dir.prf \
myHomework5Directory.pro
QMAKE_TARGET = myHomework5Directory
DESTDIR =
TARGET = myHomework5Directory
first: all
####### Implicit rules
.SUFFIXES: .o .c .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: myHomework5Directory.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
/usr/share/qt4/mkspecs/common/unix.conf \
/usr/share/qt4/mkspecs/common/linux.conf \
/usr/share/qt4/mkspecs/qconfig.pri \
/usr/share/qt4/mkspecs/features/qt_functions.prf \
/usr/share/qt4/mkspecs/features/qt_config.prf \
/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
/usr/share/qt4/mkspecs/features/default_pre.prf \
/usr/share/qt4/mkspecs/features/release.prf \
/usr/share/qt4/mkspecs/features/default_post.prf \
/usr/share/qt4/mkspecs/features/warn_on.prf \
/usr/share/qt4/mkspecs/features/qt.prf \
/usr/share/qt4/mkspecs/features/unix/thread.prf \
/usr/share/qt4/mkspecs/features/moc.prf \
/usr/share/qt4/mkspecs/features/resources.prf \
/usr/share/qt4/mkspecs/features/uic.prf \
/usr/share/qt4/mkspecs/features/yacc.prf \
/usr/share/qt4/mkspecs/features/lex.prf \
/usr/share/qt4/mkspecs/features/include_source_dir.prf \
/usr/lib/libQtGui.prl \
/usr/lib/libQtCore.prl
$(QMAKE) -unix -o Makefile myHomework5Directory.pro
/usr/share/qt4/mkspecs/common/g++.conf:
/usr/share/qt4/mkspecs/common/unix.conf:
/usr/share/qt4/mkspecs/common/linux.conf:
/usr/share/qt4/mkspecs/qconfig.pri:
/usr/share/qt4/mkspecs/features/qt_functions.prf:
/usr/share/qt4/mkspecs/features/qt_config.prf:
/usr/share/qt4/mkspecs/features/exclusive_builds.prf:
/usr/share/qt4/mkspecs/features/default_pre.prf:
/usr/share/qt4/mkspecs/features/release.prf:
/usr/share/qt4/mkspecs/features/default_post.prf:
/usr/share/qt4/mkspecs/features/warn_on.prf:
/usr/share/qt4/mkspecs/features/qt.prf:
/usr/share/qt4/mkspecs/features/unix/thread.prf:
/usr/share/qt4/mkspecs/features/moc.prf:
/usr/share/qt4/mkspecs/features/resources.prf:
/usr/share/qt4/mkspecs/features/uic.prf:
/usr/share/qt4/mkspecs/features/yacc.prf:
/usr/share/qt4/mkspecs/features/lex.prf:
/usr/share/qt4/mkspecs/features/include_source_dir.prf:
/usr/lib/libQtGui.prl:
/usr/lib/libQtCore.prl:
qmake: FORCE
@$(QMAKE) -unix -o Makefile myHomework5Directory.pro
dist:
@$(CHK_DIR_EXISTS) .tmp/myHomework5Directory1.0.0 || $(MKDIR) .tmp/myHomework5Directory1.0.0
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/myHomework5Directory1.0.0/ && $(COPY_FILE) --parents bubble.h bubbleBeam.h bubbleBullet.h bubbleLightning.h bubblePoop.h game.h gameWindow.h level1.h level2.h level3.h level4.h monster.h monsterBoss.h monsterBull.h monsterLaser.h monsterRobot.h monsterSkeleton.h player.h powerup.h powerupCandy.h powerupDiamonds.h powerupLife.h powerupLightning.h powerupPoison.h powerupSkates.h .tmp/myHomework5Directory1.0.0/ && $(COPY_FILE) --parents bubble.cpp bubbleBeam.cpp bubbleBullet.cpp bubbleLightning.cpp bubblePoop.cpp game.cpp gameWindow.cpp level1.cpp level2.cpp level3.cpp level4.cpp main.cpp monster.cpp monsterBoss.cpp monsterBull.cpp monsterLaser.cpp monsterRobot.cpp monsterSkeleton.cpp player.cpp powerup.cpp powerupCandy.cpp powerupDiamonds.cpp powerupLife.cpp powerupLightning.cpp powerupPoison.cpp powerupSkates.cpp .tmp/myHomework5Directory1.0.0/ && (cd `dirname .tmp/myHomework5Directory1.0.0` && $(TAR) myHomework5Directory1.0.0.tar myHomework5Directory1.0.0 && $(COMPRESS) myHomework5Directory1.0.0.tar) && $(MOVE) `dirname .tmp/myHomework5Directory1.0.0`/myHomework5Directory1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/myHomework5Directory1.0.0
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all: moc_game.cpp moc_gameWindow.cpp
compiler_moc_header_clean:
-$(DEL_FILE) moc_game.cpp moc_gameWindow.cpp
moc_game.cpp: player.h \
bubble.h \
monster.h \
monsterBull.h \
monsterSkeleton.h \
monsterRobot.h \
monsterLaser.h \
bubbleBeam.h \
bubblePoop.h \
bubbleBullet.h \
powerup.h \
powerupCandy.h \
powerupSkates.h \
powerupPoison.h \
powerupLightning.h \
bubbleLightning.h \
powerupDiamonds.h \
powerupLife.h \
monsterBoss.h \
level1.h \
level2.h \
level3.h \
level4.h \
game.h
/usr/bin/moc-qt4 $(DEFINES) $(INCPATH) game.h -o moc_game.cpp
moc_gameWindow.cpp: game.h \
player.h \
bubble.h \
monster.h \
monsterBull.h \
monsterSkeleton.h \
monsterRobot.h \
monsterLaser.h \
bubbleBeam.h \
bubblePoop.h \
bubbleBullet.h \
powerup.h \
powerupCandy.h \
powerupSkates.h \
powerupPoison.h \
powerupLightning.h \
bubbleLightning.h \
powerupDiamonds.h \
powerupLife.h \
monsterBoss.h \
level1.h \
level2.h \
level3.h \
level4.h \
gameWindow.h
/usr/bin/moc-qt4 $(DEFINES) $(INCPATH) gameWindow.h -o moc_gameWindow.cpp
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all:
compiler_uic_clean:
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_moc_header_clean
####### Compile
bubble.o: bubble.cpp bubble.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o bubble.o bubble.cpp
bubbleBeam.o: bubbleBeam.cpp bubbleBeam.h \
bubble.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o bubbleBeam.o bubbleBeam.cpp
bubbleBullet.o: bubbleBullet.cpp bubbleBullet.h \
bubble.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o bubbleBullet.o bubbleBullet.cpp
bubbleLightning.o: bubbleLightning.cpp bubbleLightning.h \
bubble.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o bubbleLightning.o bubbleLightning.cpp
bubblePoop.o: bubblePoop.cpp bubblePoop.h \
bubble.h \
bubbleBeam.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o bubblePoop.o bubblePoop.cpp
game.o: game.cpp game.h \
player.h \
bubble.h \
monster.h \
monsterBull.h \
monsterSkeleton.h \
monsterRobot.h \
monsterLaser.h \
bubbleBeam.h \
bubblePoop.h \
bubbleBullet.h \
powerup.h \
powerupCandy.h \
powerupSkates.h \
powerupPoison.h \
powerupLightning.h \
bubbleLightning.h \
powerupDiamonds.h \
powerupLife.h \
monsterBoss.h \
level1.h \
level2.h \
level3.h \
level4.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o game.o game.cpp
gameWindow.o: gameWindow.cpp game.h \
player.h \
bubble.h \
monster.h \
monsterBull.h \
monsterSkeleton.h \
monsterRobot.h \
monsterLaser.h \
bubbleBeam.h \
bubblePoop.h \
bubbleBullet.h \
powerup.h \
powerupCandy.h \
powerupSkates.h \
powerupPoison.h \
powerupLightning.h \
bubbleLightning.h \
powerupDiamonds.h \
powerupLife.h \
monsterBoss.h \
level1.h \
level2.h \
level3.h \
level4.h \
gameWindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o gameWindow.o gameWindow.cpp
level1.o: level1.cpp level1.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o level1.o level1.cpp
level2.o: level2.cpp level2.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o level2.o level2.cpp
level3.o: level3.cpp level3.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o level3.o level3.cpp
level4.o: level4.cpp level4.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o level4.o level4.cpp
main.o: main.cpp game.h \
player.h \
bubble.h \
monster.h \
monsterBull.h \
monsterSkeleton.h \
monsterRobot.h \
monsterLaser.h \
bubbleBeam.h \
bubblePoop.h \
bubbleBullet.h \
powerup.h \
powerupCandy.h \
powerupSkates.h \
powerupPoison.h \
powerupLightning.h \
bubbleLightning.h \
powerupDiamonds.h \
powerupLife.h \
monsterBoss.h \
level1.h \
level2.h \
level3.h \
level4.h \
gameWindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
monster.o: monster.cpp monster.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o monster.o monster.cpp
monsterBoss.o: monsterBoss.cpp monsterBoss.h \
monster.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o monsterBoss.o monsterBoss.cpp
monsterBull.o: monsterBull.cpp monsterBull.h \
monster.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o monsterBull.o monsterBull.cpp
monsterLaser.o: monsterLaser.cpp monsterLaser.h \
monster.h \
bubbleBeam.h \
bubble.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o monsterLaser.o monsterLaser.cpp
monsterRobot.o: monsterRobot.cpp monsterRobot.h \
monster.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o monsterRobot.o monsterRobot.cpp
monsterSkeleton.o: monsterSkeleton.cpp monsterSkeleton.h \
monster.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o monsterSkeleton.o monsterSkeleton.cpp
player.o: player.cpp player.h \
bubble.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o player.o player.cpp
powerup.o: powerup.cpp powerup.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o powerup.o powerup.cpp
powerupCandy.o: powerupCandy.cpp powerupCandy.h \
powerup.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o powerupCandy.o powerupCandy.cpp
powerupDiamonds.o: powerupDiamonds.cpp powerupDiamonds.h \
powerup.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o powerupDiamonds.o powerupDiamonds.cpp
powerupLife.o: powerupLife.cpp powerupLife.h \
powerup.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o powerupLife.o powerupLife.cpp
powerupLightning.o: powerupLightning.cpp powerupLightning.h \
powerup.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o powerupLightning.o powerupLightning.cpp
powerupPoison.o: powerupPoison.cpp powerupPoison.h \
powerup.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o powerupPoison.o powerupPoison.cpp
powerupSkates.o: powerupSkates.cpp powerupSkates.h \
powerup.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o powerupSkates.o powerupSkates.cpp
moc_game.o: moc_game.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_game.o moc_game.cpp
moc_gameWindow.o: moc_gameWindow.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_gameWindow.o moc_gameWindow.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE: