1 # =============================================================================
2 # Rocks'n'Diamonds - McDuffin Strikes Back!
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2014 by Artsoft Entertainment
7 # http://www.artsoft.org/
8 # -----------------------------------------------------------------------------
10 # =============================================================================
12 # -----------------------------------------------------------------------------
14 # -----------------------------------------------------------------------------
16 # command name of your favorite ANSI C compiler
17 # (this must be set to "cc" for some systems)
20 # command name of GNU make on your system
21 # (this must be set to "gmake" for some systems)
24 # directory for read-only game data (like graphics, sounds, levels)
25 # default is '.' to be able to run program without installation
26 # RO_GAME_DIR = /usr/games
27 # use the following setting for Debian / Ubuntu installations:
28 # RO_GAME_DIR = /usr/share/games/rocksndiamonds
30 # directory for writable game data (like highscore files)
31 # default is '.' to be able to run program without installation
32 # RW_GAME_DIR = /var/games
33 # use the following setting for Debian / Ubuntu installations:
34 # RW_GAME_DIR = /var/games/rocksndiamonds
36 # uncomment if system has no joystick include file
37 # JOYSTICK = -DNO_JOYSTICK
39 # choose if more than one global score file entry for one player is allowed
40 # (default: MANY_PER_NAME)
41 # uncomment to install game in multi-user environment
42 # SCORE_ENTRIES = ONE_PER_NAME
43 # uncomment to install game in single-user environment (default)
44 # SCORE_ENTRIES = MANY_PER_NAME
46 # path for cross-compiling (only needed for non-native Windows build)
47 CROSS_PATH_WIN32 = /usr/local/cross-tools/i386-mingw32msvc
49 # compile special edition of R'n'D instead of the normal (classic) version
50 # SPECIAL_EDITION = rnd_jue
53 # -----------------------------------------------------------------------------
54 # there should be no need to change anything below
55 # -----------------------------------------------------------------------------
57 .EXPORT_ALL_VARIABLES:
60 MAKE_CMD = $(MAKE) -C $(SRC_DIR)
65 # -----------------------------------------------------------------------------
67 # -----------------------------------------------------------------------------
70 @$(MAKE_CMD) TARGET=$(DEFAULT_TARGET)
73 @$(MAKE_CMD) TARGET=sdl
76 @$(MAKE_CMD) TARGET=sdl2
79 @$(MAKE_CMD) PLATFORM=macosx
82 @$(MAKE_CMD) PLATFORM=macosx TARGET=sdl-static
85 @$(MAKE_CMD) PLATFORM=macosx TARGET=sdl2-static
88 @$(MAKE_CMD) PLATFORM=os2
91 @PATH=$(CROSS_PATH_WIN32)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-win32
97 @$(MAKE_CMD) clean-git
100 # -----------------------------------------------------------------------------
101 # development, test, distribution build and packaging targets
102 # -----------------------------------------------------------------------------
105 @$(MAKE_CMD) auto-conf
114 @$(MAKE_CMD) valgrind
117 ./Scripts/make_enginetest.sh
119 enginetestcustom: all
120 ./Scripts/make_enginetest.sh custom
123 ./Scripts/make_enginetest.sh fast
126 ./Scripts/make_enginetest.sh new
129 ./Scripts/make_enginetest.sh leveltest
131 levelsketch_images: all
132 ./Scripts/make_levelsketch_images.sh
135 ./Scripts/make_backup.sh src tar
138 ./Scripts/make_backup.sh src scp
140 backup-all: backup backup-net-copy
143 ./Scripts/make_backup.sh lev
146 ./Scripts/make_backup.sh gfx
149 # ./Scripts/make_prerelease.sh
152 @$(MAKE) SPECIAL_EDITION=rnd_jue all
155 @$(MAKE) SPECIAL_EDITION=rnd_jue cross-win32
158 @$(MAKE_CMD) dist-clean
161 @BUILD_DIST=TRUE $(MAKE)
164 @BUILD_DIST=TRUE $(MAKE) cross-win32
167 # (this is done by "dist-package-macosx" target)
169 dist-build-macosx-ppc:
170 # (this is done by "dist-package-macosx-ppc" target)
173 ./Scripts/make_dist.sh unix .
176 ./Scripts/make_dist.sh win .
179 ./Scripts/make_dist.sh mac . $(MAKE)
181 dist-package-macosx-ppc:
182 ./Scripts/make_dist.sh mac-ppc . $(MAKE)
185 ./Scripts/make_dist.sh unix . upload
188 ./Scripts/make_dist.sh win . upload
191 ./Scripts/make_dist.sh mac . upload
193 dist-upload-macosx-ppc:
194 ./Scripts/make_dist.sh mac-ppc . upload
198 $(MAKE) dist-build-unix ; $(MAKE) dist-clean
199 $(MAKE) dist-build-win32 ; $(MAKE) dist-clean
202 $(MAKE) dist-package-unix
203 $(MAKE) dist-package-win32
204 $(MAKE) dist-package-macosx
205 $(MAKE) dist-package-macosx-ppc
208 $(MAKE) dist-upload-unix
209 $(MAKE) dist-upload-win32
210 $(MAKE) dist-upload-macosx
211 $(MAKE) dist-upload-macosx-ppc
213 dist-all: dist-build-all dist-package-all
215 upload-all: dist-upload-all
221 $(MAKE_CMD) TARGET=$(DEFAULT_TARGET) depend