File: Makefile.all

package info (click to toggle)
between 6%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,532 kB
  • sloc: cpp: 28,110; php: 718; ansic: 638; objc: 245; sh: 236; makefile: 97; perl: 67
file content (184 lines) | stat: -rw-r--r-- 3,721 bytes parent folder | download | duplicates (3)
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
#
# Modification History
#
# 2006-June-27    Jason Rohrer
# Created.  Copied from Transcend.
#


##
# The portion of game7 Makefiles common to all platforms.
#
# Should not be made manually---used by game7/configure to build Makefiles.
##




ROOT_PATH = ../..


MUSIC_PLAYER_SOURCE = musicPlayer.cpp \
Timbre.cpp \
Envelope.cpp \
common.cpp \
playMusic.cpp


LAYER_SOURCE = \
game.cpp \
common.cpp \
Sprite.cpp \
GameObject.cpp \
World.cpp \
Block.cpp \
BlockGrid.cpp \
TargetBlock.cpp \
BuilderTargetBlock.cpp \
WebRequest.cpp \
Client.cpp \
BlendedBlock.cpp \
GridTransition.cpp \
NightBackground.cpp \
Player.cpp \
Star.cpp \
Cloud.cpp \
musicPlayer.cpp \
Timbre.cpp \
Envelope.cpp \


LAYER_OBJECTS = ${LAYER_SOURCE:.cpp=.o}
MUSIC_PLAYER_OBJECTS = ${MUSIC_PLAYER_SOURCE:.cpp=.o} 



GAME_GRAPHICS = \
graphics/tile.tga \
graphics/player.tga \
graphics/blockBase.tga \
graphics/blockNoise.tga \
graphics/selector.tga \
graphics/blockBuilder.tga \
graphics/blockBuilderTarget.tga \
graphics/builderHint.tga \
graphics/target.tga \
graphics/font.tga \
graphics/nightTile.tga \
graphics/nightTileVertical.tga \
graphics/nightTileCorner.tga \
graphics/bed.tga \
graphics/nightWindow.tga \
graphics/star.tga \
graphics/morningTile.tga \
graphics/morningTileVertical.tga \
graphics/morningTileCorner.tga \
graphics/alarmStand.tga \
graphics/morningWindow.tga \
graphics/backHint.tga \
graphics/nextHint.tga \
graphics/insertHint.tga \
graphics/upHint.tga \
graphics/downHint.tga \
graphics/clouds.tga \
music/music.tga \




NEEDED_MINOR_GEMS_OBJECTS = \
 ${SCREEN_GL_SDL_O} \
 ${SINGLE_TEXTURE_GL_O} \
 ${TYPE_IO_O} \
 ${STRING_UTILS_O} \
 ${STRING_BUFFER_OUTPUT_STREAM_O} \
 ${PATH_O} \
 ${TIME_O} \
 ${THREAD_O} \
 ${MUTEX_LOCK_O} \
 ${APP_LOG_O} \
 ${PRINT_LOG_O} \
 ${LOG_O} \
 ${PRINT_UTILS_O} \
 ${TRANSLATION_MANAGER_O} \
 ${SOCKET_O} \
 ${HOST_ADDRESS_O} \
 ${SOCKET_CLIENT_O} \
 ${NETWORK_FUNCTION_LOCKS_O} \
 ${LOOKUP_THREAD_O} \
 ${SETTINGS_MANAGER_O} \
 ${FINISHED_SIGNAL_THREAD_O} \
 ${SHA1_O} \
 ${ENCODING_UTILS_O} \
 


TEST_SOURCE = 
TEST_OBJECTS = ${TEST_SOURCE:.cpp=.o}



DEPENDENCY_FILE = Makefile.dependencies


# targets

all: Between ${GAME_GRAPHICS}
clean:
	rm -f ${DEPENDENCY_FILE} ${LAYER_OBJECTS} ${TEST_OBJECTS} ${NEEDED_MINOR_GEMS_OBJECTS} Between ${GAME_GRAPHICS}




Between: ${LAYER_OBJECTS} ${NEEDED_MINOR_GEMS_OBJECTS}
	${EXE_LINK} -o Between ${LAYER_OBJECTS} ${NEEDED_MINOR_GEMS_OBJECTS} ${PLATFORM_LINK_FLAGS} 

# add this on Unix to support JPEG video frame output
# -ljpeg ${ROOT_PATH}/minorGems/graphics/converters/unix/JPEGImageConverterUnix.cpp

playMusic: ${MUSIC_PLAYER_OBJECTS} ${NEEDED_MINOR_GEMS_OBJECTS} music/music.tga
	${EXE_LINK} -o playMusic ${MUSIC_PLAYER_OBJECTS} ${NEEDED_MINOR_GEMS_OBJECTS} ${PLATFORM_LINK_FLAGS} 




# sed command for fixing up the dependencies generated by g++
# g++ (pre-3.0) leaves the path off of the .o target
# look for a .o file at the beginning of a line (in other words, one
# without a path), and replace it with the full-path version.
# This should be compatible with g++ 3.0, since we only replace .o names
# that occur at the beginning of a line (using the "^" modifier)

GAME_7_SED_FIX_COMMAND = sed ' \
'





# build the dependency file
${DEPENDENCY_FILE}: ${LAYER_SOURCE} ${TEST_SOURCE}
	rm -f ${DEPENDENCY_FILE}
	${COMPILE} -MM ${LAYER_SOURCE} ${TEST_SOURCE} >> ${DEPENDENCY_FILE}.temp
	cat ${DEPENDENCY_FILE}.temp | ${GAME_7_SED_FIX_COMMAND} >> ${DEPENDENCY_FILE}
	rm -f ${DEPENDENCY_FILE}.temp

include ${DEPENDENCY_FILE}




# 
# Generic:
#
# Map all png files into .tga files
#
# $@   represents the name.tga file
# $<   represents the name.png file
#
graphics/%.tga: %.png
	convert $< $@
music/%.tga: %.png
	convert $< $@