| 6cd0a332 |
sago007 |
2008-11-13 20:02 |
1 |
GAMEDIR=../../Game/ |
| 78d03b38 |
sago007 |
2008-11-13 19:56 |
2 |
|
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
3 |
BINARY=$(GAMEDIR)blockattack |
| 78d03b38 |
sago007 |
2008-11-13 19:56 |
4 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
5 |
ifndef CC |
| 6cd0a332 |
sago007 |
2008-11-13 20:02 |
6 |
CC=gcc |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
7 |
endif |
| 78d03b38 |
sago007 |
2008-11-13 19:56 |
8 |
|
| 605138b3 |
sago007 |
2012-04-14 15:12 |
9 |
#ifndef CPP |
| 6cd0a332 |
sago007 |
2008-11-13 20:02 |
10 |
CPP=g++ |
| 605138b3 |
sago007 |
2012-04-14 15:12 |
11 |
#endif |
| 78d03b38 |
sago007 |
2008-11-13 19:56 |
12 |
|
| 6cd0a332 |
sago007 |
2008-11-13 20:02 |
13 |
BASE_CFLAGS=-c $(shell sdl-config --cflags) |
| 78d03b38 |
sago007 |
2008-11-13 19:56 |
14 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
15 |
ifndef BUILDDIR |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
16 |
BUILDDIR=build |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
17 |
endif |
| 6cd0a332 |
sago007 |
2008-11-13 20:02 |
18 |
|
| 925b7e58 |
sago007 |
2011-04-25 16:35 |
19 |
BASE_LIBS=$(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lSDL_ttf |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
20 |
|
| e3e0644e |
sago007 |
2008-09-25 14:00 |
21 |
#For developement only |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
22 |
ifndef DEBUG |
| aca2f4b0 |
sago007 |
2009-05-10 18:11 |
23 |
DEBUG=1 |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
24 |
endif |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
25 |
|
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
26 |
ifndef NETWORK |
| e1290bdf |
sago007 |
2010-10-25 19:56 |
27 |
NETWORK=1 |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
28 |
endif |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
29 |
|
| e3e0644e |
sago007 |
2008-09-25 14:00 |
30 |
#Compile with debug information or optimized. |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
31 |
ifeq ($(DEBUG),1) |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
32 |
BASE_CFLAGS += -g -DDEBUG=1 |
| a039f5c4 |
sago007 |
2008-09-19 23:12 |
33 |
else |
| a039f5c4 |
sago007 |
2008-09-19 23:12 |
34 |
BASE_CFLAGS += -O4 |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
35 |
endif |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
36 |
|
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
37 |
ifeq ($(NETWORK),1) |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
38 |
BASE_CFLAGS += -DNETWORK=1 |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
39 |
BASE_LIBS += -lenet |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
40 |
else |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
41 |
BASE_CFLAGS += -DNETWORK=0 |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
42 |
endif |
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
43 |
|
| a039f5c4 |
sago007 |
2008-09-19 23:12 |
44 |
BASE_LIBS += -lphysfs |
| a039f5c4 |
sago007 |
2008-09-19 23:12 |
45 |
|
| 605138b3 |
sago007 |
2012-04-14 15:12 |
46 |
$(BINARY): $(BUILDDIR)/main.o $(BUILDDIR)/highscore.o $(BUILDDIR)/ReadKeyboard.o $(BUILDDIR)/joypad.o $(BUILDDIR)/listFiles.o $(BUILDDIR)/replay.o $(BUILDDIR)/common.o $(BUILDDIR)/stats.o $(BUILDDIR)/CppSdlException.o $(BUILDDIR)/CppSdlImageHolder.o $(BUILDDIR)/nfont.o $(BUILDDIR)/MenuSystem.o $(BUILDDIR)/menudef.o |
| 26ddb424 |
sago007 |
2011-06-09 20:06 |
47 |
$(CPP) -O -o $(BINARY) $(BUILDDIR)/main.o $(BUILDDIR)/highscore.o $(BUILDDIR)/ReadKeyboard.o $(BUILDDIR)/joypad.o $(BUILDDIR)/listFiles.o $(BUILDDIR)/replay.o $(BUILDDIR)/common.o $(BUILDDIR)/stats.o $(BUILDDIR)/CppSdlException.o $(BUILDDIR)/CppSdlImageHolder.o $(BUILDDIR)/nfont.o $(BUILDDIR)/MenuSystem.o $(BUILDDIR)/menudef.o $(BASE_LIBS) |
| 91886cae |
sago007 |
2008-09-12 16:28 |
48 |
#-lphysfs |
| f62f552d |
sago007 |
2008-08-29 14:34 |
49 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
50 |
$(BUILDDIR)/main.o: main.cpp mainVars.hpp common.h |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
51 |
$(CPP) $(BASE_CFLAGS) main.cpp -o $(BUILDDIR)/main.o |
| f62f552d |
sago007 |
2008-08-29 14:34 |
52 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
53 |
$(BUILDDIR)/blockgame.o: BlockGame.hpp BlockGame.cpp |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
54 |
$(CPP) $(BASE_CFLAGS) BlockGame.cpp -o $(BUILDDIR)/blockgame.o |
| 17916a2e |
sago007 |
2010-11-07 11:26 |
55 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
56 |
$(BUILDDIR)/highscore.o: highscore.h highscore.cpp |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
57 |
$(CPP) $(BASE_CFLAGS) highscore.cpp -o $(BUILDDIR)/highscore.o |
| f62f552d |
sago007 |
2008-08-29 14:34 |
58 |
|
| f62f552d |
sago007 |
2008-08-29 14:34 |
59 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
60 |
$(BUILDDIR)/ReadKeyboard.o: ReadKeyboard.h ReadKeyboard.cpp |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
61 |
$(CPP) $(BASE_CFLAGS) ReadKeyboard.cpp -o $(BUILDDIR)/ReadKeyboard.o |
| f62f552d |
sago007 |
2008-08-29 14:34 |
62 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
63 |
$(BUILDDIR)/joypad.o: joypad.h joypad.cpp |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
64 |
$(CPP) $(BASE_CFLAGS) joypad.cpp -o $(BUILDDIR)/joypad.o |
| f62f552d |
sago007 |
2008-08-29 14:34 |
65 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
66 |
$(BUILDDIR)/listFiles.o: listFiles.h listFiles.cpp |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
67 |
$(CPP) $(BASE_CFLAGS) listFiles.cpp -o $(BUILDDIR)/listFiles.o |
| f62f552d |
sago007 |
2008-08-29 14:34 |
68 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
69 |
$(BUILDDIR)/replay.o: replay.h replay.cpp |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
70 |
$(CPP) $(BASE_CFLAGS) replay.cpp -o $(BUILDDIR)/replay.o |
| f62f552d |
sago007 |
2008-08-29 14:34 |
71 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
72 |
$(BUILDDIR)/stats.o: stats.h stats.cc |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
73 |
$(CPP) $(BASE_CFLAGS) stats.cc -o $(BUILDDIR)/stats.o |
| f62f552d |
sago007 |
2008-08-29 14:34 |
74 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
75 |
$(BUILDDIR)/common.o: common.h common.cc |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
76 |
$(CPP) $(BASE_CFLAGS) common.cc -o $(BUILDDIR)/common.o |
| f62f552d |
sago007 |
2008-08-29 14:34 |
77 |
|
| 925b7e58 |
sago007 |
2011-04-25 16:35 |
78 |
$(BUILDDIR)/nfont.o: Libs/NFont.h Libs/NFont.cpp |
| 925b7e58 |
sago007 |
2011-04-25 16:35 |
79 |
$(CPP) $(BASE_CFLAGS) Libs/NFont.cpp -o $(BUILDDIR)/nfont.o |
| 925b7e58 |
sago007 |
2011-04-25 16:35 |
80 |
|
| 26ddb424 |
sago007 |
2011-06-09 20:06 |
81 |
$(BUILDDIR)/menudef.o: menudef.cpp |
| 26ddb424 |
sago007 |
2011-06-09 20:06 |
82 |
$(CPP) $(BASE_CFLAGS) menudef.cpp -o $(BUILDDIR)/menudef.o |
| 26ddb424 |
sago007 |
2011-06-09 20:06 |
83 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
84 |
#$(BUILDDIR)/uploadReplay.o: uploadReplay.cc uploadReplay.h |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
85 |
# $(CPP) $(BASE_CFLAGS) uploadReplay.cc -o $(BUILDDIR)/uploadReplay.o |
| f62f552d |
sago007 |
2008-08-29 14:34 |
86 |
|
| b7590374 |
sago007 |
2011-05-19 16:15 |
87 |
$(BUILDDIR)/MenuSystem.o: MenuSystem.cc MenuSystem.h |
| b7590374 |
sago007 |
2011-05-19 16:15 |
88 |
$(CPP) $(BASE_CFLAGS) MenuSystem.cc -o $(BUILDDIR)/MenuSystem.o |
| 78d03b38 |
sago007 |
2008-11-13 19:56 |
89 |
|
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
90 |
#$(BUILDDIR)/ttfont.o: ttfont.h ttfont.cc |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
91 |
# $(CPP) $(BASE_CFLAGS) ttfont.cc -o $(BUILDDIR)/ttfont.o |
| 78d03b38 |
sago007 |
2008-11-13 19:56 |
92 |
|
| 605138b3 |
sago007 |
2012-04-14 15:12 |
93 |
$(BUILDDIR)/CppSdlImageHolder.o: CppSdlImageHolder.hpp CppSdlImageHolder.cpp |
| 605138b3 |
sago007 |
2012-04-14 15:12 |
94 |
$(CPP) $(BASE_CFLAGS) -o $(BUILDDIR)/CppSdlImageHolder.o CppSdlImageHolder.cpp |
| 605138b3 |
sago007 |
2012-04-14 15:12 |
95 |
|
| 605138b3 |
sago007 |
2012-04-14 15:12 |
96 |
$(BUILDDIR)/CppSdlException.o: CppSdlException.hpp CppSdlException.cpp |
| 605138b3 |
sago007 |
2012-04-14 15:12 |
97 |
$(CPP) $(BASE_CFLAGS) -o $(BUILDDIR)/CppSdlException.o CppSdlException.cpp |
| 605138b3 |
sago007 |
2012-04-14 15:12 |
98 |
|
| 78d03b38 |
sago007 |
2008-11-13 19:56 |
99 |
|
| 2f30c381 |
sago007 |
2008-09-14 13:08 |
100 |
run: $(BINARY) |
| f62f552d |
sago007 |
2008-08-29 14:34 |
101 |
|
| f62f552d |
sago007 |
2008-08-29 14:34 |
102 |
clean: |
| 8d488d32 |
sago007 |
2011-04-17 13:02 |
103 |
rm $(BUILDDIR)/*o |
|
|
1970-01-01 00:00 |
104 |
|