92
93
rm -f raw.dmg devicename
98
cl $(VER) $(CFLAGS) /c version.c
100
!specialobj vc version
103
$(CC) $(VER) $(CFLAGS) /c version.c
105
!specialobj wce version
109
$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c
111
!specialobj cygwin version
112
# For Unix, we also need the gross MD5 hack that causes automatic
113
# version number selection in release source archives.
115
version.o: version.c version2.def
116
$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c
118
if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \
119
cat version.def > version2.def.new; \
120
elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
121
echo "-DREVISION=`svnversion .`" >version2.def.new; \
123
echo "$(VER)" >version2.def.new; \
125
if diff -q version2.def.new version2.def; then \
126
rm version2.def.new; \
128
mv version2.def.new version2.def; \
132
!specialobj gtk version
134
version.o: version.c version2.def
135
$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c
137
if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \
138
cat version.def > version2.def.new; \
139
elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
140
echo "-DREVISION=`svnversion .`" >version2.def.new; \
142
echo "$(VER)" >version2.def.new; \
144
if diff -q version2.def.new version2.def; then \
145
rm version2.def.new; \
147
mv version2.def.new version2.def; \
151
!specialobj nestedvm version
152
# For OS X, this is made more fiddly by the fact that we don't have
153
# md5sum readily available. We do, however, have `md5 -r' which
154
# generates _nearly_ the same output, but it has no check function.
156
version.ppc.o: version.c version2.def
157
$(CC) -arch ppc $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c -o $@
158
version.i386.o: version.c version2.def
159
$(CC) -arch i386 $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c -o $@
161
if test -z "$(VER)" && test -f manifest && (md5 -r `awk '{print $$2}' manifest` | diff -w manifest -); then \
162
cat version.def > version2.def.new; \
163
elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
164
echo "-DREVISION=`svnversion .`" >version2.def.new; \
166
echo "$(VER)" >version2.def.new; \
168
if diff -q version2.def.new version2.def; then \
169
rm version2.def.new; \
171
mv version2.def.new version2.def; \
175
!specialobj osx version
97
bin_PROGRAMS = $(GAMES)
177
103
# make install for Unix.