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 # uncomment this if your system has no sound
29 # SOUNDS = -DNO_SOUNDS
31 # choose if you want to allow many global score file entries for one player
32 # default is 'MANY_PER_NAME'
33 # when installing the game in a multi user environment, choose this
34 # SCORE_ENTRIES = ONE_PER_NAME
35 # when installing the game in a single user environment, choose this
36 # SCORE_ENTRIES = MANY_PER_NAME
38 # specify path for cross-compiling (only needed for Win32 build)
39 CROSS_PATH=/usr/local/cross-tools/i386-mingw32/bin
41 #-----------------------------------------------------------------------------#
42 # you should not need to change anything below #
43 #-----------------------------------------------------------------------------#
45 .EXPORT_ALL_VARIABLES:
50 MAKE_CMD = $(MAKE) -C $(SRC_DIR)
53 @$(MAKE_CMD) TARGET=sdl
56 @$(MAKE_CMD) TARGET=x11
59 @$(MAKE_CMD) TARGET=sdl
62 @$(MAKE_CMD) PLATFORM=solaris
65 @$(MAKE_CMD) PLATFORM=msdos
68 @PATH=$(CROSS_PATH):${PATH} $(MAKE_CMD) PLATFORM=win32
74 #-----------------------------------------------------------------------------#
75 # development only stuff #
76 #-----------------------------------------------------------------------------#
79 ./Scripts/make_backup.sh src
82 ./Scripts/make_backup.sh lev
85 ./Scripts/make_backup.sh gfx
88 ./Scripts/make_dist.sh unix .
91 ./Scripts/make_dist.sh dos .
93 dist: dist-unix dist-msdos