1 #=============================================================================#
2 # Makefile for Rocks'n'Diamonds #
3 # (c) 1995-2000 Holger Schemel, info@artsoft.org #
4 #=============================================================================#
6 #-----------------------------------------------------------------------------#
7 # configuration section #
8 #-----------------------------------------------------------------------------#
10 # specify your favorite ANSI C compiler
13 # specify path to X11 on your system
14 # if undefined, use system defaults (works with Linux/gcc/libc5)
17 # specify directory for read-only game data (like graphics, sounds, levels)
18 # default is '.', so you can play without installing game data somewhere
19 # RO_GAME_DIR = /usr/games
21 # specify directory for writable game data (like highscore files)
22 # default is '.', so you can play without installing game data somewhere
23 # RW_GAME_DIR = /var/games
25 # uncomment this if your system has no joystick include file
26 # JOYSTICK = -DNO_JOYSTICK
28 # choose if you want to allow many global score file entries for one player
29 # default is 'MANY_PER_NAME'
30 # when installing the game in a multi user environment, choose this
31 # SCORE_ENTRIES = ONE_PER_NAME
32 # when installing the game in a single user environment, choose this
33 # SCORE_ENTRIES = MANY_PER_NAME
35 # specify paths for cross-compiling (only needed for MS-DOS and Win32 build)
36 CROSS_PATH_MSDOS=/usr/local/cross-msdos/i386-msdosdjgpp
37 CROSS_PATH_WIN32=/usr/local/cross-tools/i386-mingw32msvc
39 #-----------------------------------------------------------------------------#
40 # you should not need to change anything below #
41 #-----------------------------------------------------------------------------#
43 .EXPORT_ALL_VARIABLES:
48 MAKE_CMD = $(MAKE) -C $(SRC_DIR)
51 @$(MAKE_CMD) TARGET=x11
54 @$(MAKE_CMD) TARGET=x11
57 @$(MAKE_CMD) TARGET=sdl
60 @$(MAKE_CMD) PLATFORM=solaris TARGET=x11
63 @$(MAKE_CMD) PLATFORM=solaris TARGET=sdl
66 @$(MAKE_CMD) PLATFORM=msdos
69 @PATH=$(CROSS_PATH_MSDOS)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-msdos
72 @PATH=$(CROSS_PATH_WIN32)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-win32
78 #-----------------------------------------------------------------------------#
79 # development only stuff #
80 #-----------------------------------------------------------------------------#
83 @$(MAKE_CMD) TARGET=x11 && ./rocksndiamonds --verbose
86 ./Scripts/make_backup.sh src
89 ./Scripts/make_backup.sh lev
92 ./Scripts/make_backup.sh gfx
95 ./Scripts/make_dist.sh unix .
98 ./Scripts/make_dist.sh dos .
101 ./Scripts/make_dist.sh win .
104 @$(MAKE_CMD) dist-clean
108 @BUILD_DIST=TRUE $(MAKE) x11 ; $(MAKE) dist-clean
109 @BUILD_DIST=TRUE $(MAKE) cross-win32 ; $(MAKE) dist-clean
110 @BUILD_DIST=TRUE $(MAKE) cross-msdos ; $(MAKE) dist-clean
112 dist-all: dist-build-all dist-unix dist-msdos dist-win32