d1bc33a88cd5de0f12740b02e3587fd2313db003
[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
19 # specify path to X11 on your system
20 # if undefined, use system defaults (works with Linux/gcc/libc5)
21 # X11_PATH = /usr/X11
22
23 # specify directory for read-only game data (like graphics, sounds, levels)
24 # default is '.', so you can play without installing game data somewhere
25 # RO_GAME_DIR = /usr/games
26
27 # specify directory for writable game data (like highscore files)
28 # default is '.', so you can play without installing game data somewhere
29 # RW_GAME_DIR = /var/games
30
31 # uncomment this if your system has no joystick include file
32 # JOYSTICK = -DNO_JOYSTICK
33
34 # uncomment this if your system has no sound
35 # SOUNDS = -DNO_SOUNDS
36
37 # choose if you want to allow many global score file entries for one player
38 # default is 'MANY_PER_NAME'
39 # when installing the game in a multi user environment, choose this
40 # SCORE_ENTRIES = ONE_PER_NAME
41 # when installing the game in a single user environment, choose this
42 # SCORE_ENTRIES = MANY_PER_NAME
43
44 #-----------------------------------------------------------------------------#
45 # you should not need to change anything below                                #
46 #-----------------------------------------------------------------------------#
47
48 .EXPORT_ALL_VARIABLES:
49
50 MAKE = make
51
52 SRC_DIR = src
53 MAKE_CMD = @$(MAKE) -C $(SRC_DIR)
54
55 all:
56         $(MAKE_CMD)
57
58 solaris:
59         $(MAKE_CMD) PLATFORM=solaris
60
61 clean:
62         $(MAKE_CMD) clean
63
64
65 #-----------------------------------------------------------------------------#
66 # development only stuff                                                      #
67 #-----------------------------------------------------------------------------#
68
69 backup:
70         ./Scripts/make_backup.sh src
71
72 backup_lev:
73         ./Scripts/make_backup.sh lev
74
75 backup_gfx:
76         ./Scripts/make_backup.sh gfx
77
78 dist-unix:
79         ./Scripts/make_dist.sh unix .
80
81 dist-dos:
82         ./Scripts/make_dist.sh dos .
83
84 dist: dist-unix dist-dos
85
86 depend:
87         $(MAKE_CMD) depend