1 #=============================================================================#
2 # Makefile for Rocks'n'Diamonds 1.4.0 #
3 # (c) 1995-1999 Holger Schemel, aeglos@valinor.owl.de #
4 #=============================================================================#
6 #-----------------------------------------------------------------------------#
7 # configuration section #
8 #-----------------------------------------------------------------------------#
10 # specify your favorite ANSI C compiler
13 # explicitely choose your platform, if defaults doesn't work right
14 # needed for SUN/Solaris; Linux and DOS work fine with auto detection
20 # specify path to X11 on your system
21 # if undefined, use system defaults (works with Linux/gcc/libc5)
24 # specify directory for read-only game data (like graphics, sounds, levels)
25 # default is '.', so you can play without installing game data somewhere
26 # RO_GAME_DIR = /usr/games
28 # specify directory for writable game data (like highscore files)
29 # default is '.', so you can play without installing game data somewhere
30 # RW_GAME_DIR = /var/games
32 # uncomment this if your system has no joystick include file
33 # JOYSTICK = -DNO_JOYSTICK
35 # uncomment this if your system has no sound
36 # SOUNDS = -DNO_SOUNDS
38 # choose if you want to allow many global score file entries for one player
39 # default is 'MANY_PER_NAME'
40 # when installing the game in a multi user environment, choose this
41 # SCORE_ENTRIES = ONE_PER_NAME
42 # when installing the game in a single user environment, choose this
43 # SCORE_ENTRIES = MANY_PER_NAME
45 # specify path for cross-compiling (only needed for Windows build)
46 CROSS_PATH=/usr/local/cross-tools/i386-mingw32/bin
48 #-----------------------------------------------------------------------------#
49 # you should not need to change anything below #
50 #-----------------------------------------------------------------------------#
52 .EXPORT_ALL_VARIABLES:
57 MAKE_CMD = $(MAKE) -C $(SRC_DIR)
60 @$(MAKE_CMD) TARGET=sdl
63 @$(MAKE_CMD) TARGET=x11
66 @$(MAKE_CMD) TARGET=sdl
69 @$(MAKE_CMD) TARGET=sdl USE_SDL_OLD_LIBS=true
72 @$(MAKE_CMD) PLATFORM=solaris
75 @PATH=$(CROSS_PATH):${PATH} $(MAKE_CMD) PLATFORM=windows
81 #-----------------------------------------------------------------------------#
82 # development only stuff #
83 #-----------------------------------------------------------------------------#
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 .
100 dist: dist-unix dist-dos