rnd-20000917-1-src
[rocksndiamonds.git] / Makefile
1 #=============================================================================#
2 # Makefile for Rocks'n'Diamonds 1.4.0                                         #
3 # (c) 1995-1999 Holger Schemel, aeglos@valinor.owl.de                         #
4 #=============================================================================#
5
6 #-----------------------------------------------------------------------------#
7 # configuration section                                                       #
8 #-----------------------------------------------------------------------------#
9
10 # specify your favorite ANSI C compiler
11 CC = gcc
12
13 # explicitely choose your platform, if defaults doesn't work right
14 # needed for SUN/Solaris; Linux and DOS work fine with auto detection
15 # PLATFORM = solaris
16 # PLATFORM = unix
17 # PLATFORM = dos
18 # PLATFORM = windows
19
20 # specify path to X11 on your system
21 # if undefined, use system defaults (works with Linux/gcc/libc5)
22 X11_PATH = /usr/X11
23
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
27
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
31
32 # uncomment this if your system has no joystick include file
33 # JOYSTICK = -DNO_JOYSTICK
34
35 # uncomment this if your system has no sound
36 # SOUNDS = -DNO_SOUNDS
37
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
44
45 # specify path for cross-compiling (only needed for Windows build)
46 CROSS_PATH=/usr/local/cross-tools/i386-mingw32/bin
47
48 #-----------------------------------------------------------------------------#
49 # you should not need to change anything below                                #
50 #-----------------------------------------------------------------------------#
51
52 .EXPORT_ALL_VARIABLES:
53
54 MAKE = make
55
56 SRC_DIR = src
57 MAKE_CMD = $(MAKE) -C $(SRC_DIR)
58
59 all:
60         @$(MAKE_CMD) TARGET=sdl
61
62 x11:
63         @$(MAKE_CMD) TARGET=x11
64
65 sdl:
66         @$(MAKE_CMD) TARGET=sdl
67
68 sdl_old:
69         @$(MAKE_CMD) TARGET=sdl USE_SDL_OLD_LIBS=true
70
71 solaris:
72         @$(MAKE_CMD) PLATFORM=solaris
73
74 windows:
75         @PATH=$(CROSS_PATH):${PATH} $(MAKE_CMD) PLATFORM=windows
76
77 clean:
78         @$(MAKE_CMD) clean
79
80
81 #-----------------------------------------------------------------------------#
82 # development only stuff                                                      #
83 #-----------------------------------------------------------------------------#
84
85 backup:
86         ./Scripts/make_backup.sh src
87
88 backup_lev:
89         ./Scripts/make_backup.sh lev
90
91 backup_gfx:
92         ./Scripts/make_backup.sh gfx
93
94 dist-unix:
95         ./Scripts/make_dist.sh unix .
96
97 dist-dos:
98         ./Scripts/make_dist.sh dos .
99
100 dist: dist-unix dist-dos
101
102 depend dep:
103         $(MAKE_CMD) depend