1 # =============================================================================
2 # Rocks'n'Diamonds - McDuffin Strikes Back!
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2015 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 # (this directory is usually the game's installation directory)
26 # default is '.' to be able to run program without installation
28 # use the following setting for Debian / Ubuntu installations:
29 # RO_GAME_DIR = /usr/share/games/rocksndiamonds
31 # directory for writable game data (like highscore files)
32 # (if no "scores" directory exists, scores are saved in user data directory)
33 # default is '.' to be able to run program without installation
35 # use the following setting for Debian / Ubuntu installations:
36 # RW_GAME_DIR = /var/games/rocksndiamonds
38 # uncomment if system has no joystick include file
39 # JOYSTICK = -DNO_JOYSTICK
41 # path for cross-compiling (only needed for non-native Windows build)
42 CROSS_PATH_WIN32 = /usr/local/cross-tools/i386-mingw32msvc
45 # -----------------------------------------------------------------------------
46 # there should be no need to change anything below
47 # -----------------------------------------------------------------------------
49 .EXPORT_ALL_VARIABLES:
52 MAKE_CMD = $(MAKE) -C $(SRC_DIR)
55 # -----------------------------------------------------------------------------
57 # -----------------------------------------------------------------------------
63 @$(MAKE_CMD) TARGET=sdl
66 @$(MAKE_CMD) TARGET=sdl2
69 @$(MAKE_CMD) PLATFORM=macosx
72 @PATH=$(CROSS_PATH_WIN32)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-win32
78 @$(MAKE_CMD) clean-git
81 # -----------------------------------------------------------------------------
82 # development, test, distribution build and packaging targets
83 # -----------------------------------------------------------------------------
86 @$(MAKE_CMD) auto-conf
98 ./Scripts/make_enginetest.sh
100 enginetestcustom: all
101 ./Scripts/make_enginetest.sh custom
104 ./Scripts/make_enginetest.sh fast
107 ./Scripts/make_enginetest.sh new
110 ./Scripts/make_enginetest.sh leveltest
112 levelsketch_images: all
113 ./Scripts/make_levelsketch_images.sh
116 @$(MAKE_CMD) dist-clean
119 @BUILD_DIST=TRUE $(MAKE)
122 @BUILD_DIST=TRUE $(MAKE) cross-win32
125 @BUILD_DIST=TRUE $(MAKE)
128 ./Scripts/make_dist.sh package unix
131 ./Scripts/make_dist.sh package win
134 ./Scripts/make_dist.sh package mac
137 ./Scripts/make_dist.sh upload unix
140 ./Scripts/make_dist.sh upload win
143 ./Scripts/make_dist.sh upload mac
146 $(MAKE) dist-package-unix
147 $(MAKE) dist-package-win32
148 $(MAKE) dist-package-macosx
151 $(MAKE) dist-upload-unix
152 $(MAKE) dist-upload-win32
153 $(MAKE) dist-upload-macosx
155 package-all: dist-package-all
157 upload-all: dist-upload-all