rnd-20001125-3-src
[rocksndiamonds.git] / Makefile
1 #=============================================================================#
2 # Makefile for Rocks'n'Diamonds                                               #
3 # (c) 1995-2000 Holger Schemel, info@artsoft.org                              #
4 #=============================================================================#
5
6 #-----------------------------------------------------------------------------#
7 # configuration section                                                       #
8 #-----------------------------------------------------------------------------#
9
10 # specify your favorite ANSI C compiler
11 CC = gcc
12
13 # specify path to X11 on your system
14 # if undefined, use system defaults (works with Linux/gcc/libc5)
15 X11_PATH = /usr/X11
16
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
20
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
24
25 # uncomment this if your system has no joystick include file
26 # JOYSTICK = -DNO_JOYSTICK
27
28 # uncomment this if your system has no sound
29 # SOUNDS = -DNO_SOUNDS
30
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
37
38 # specify path for cross-compiling (only needed for Win32 build)
39 CROSS_PATH=/usr/local/cross-tools/i386-mingw32/bin
40
41 #-----------------------------------------------------------------------------#
42 # you should not need to change anything below                                #
43 #-----------------------------------------------------------------------------#
44
45 .EXPORT_ALL_VARIABLES:
46
47 MAKE = make
48
49 SRC_DIR = src
50 MAKE_CMD = $(MAKE) -C $(SRC_DIR)
51
52 all:
53         @$(MAKE_CMD) TARGET=sdl
54
55 x11:
56         @$(MAKE_CMD) TARGET=x11
57
58 sdl:
59         @$(MAKE_CMD) TARGET=sdl
60
61 solaris:
62         @$(MAKE_CMD) PLATFORM=solaris
63
64 msdos:
65         @$(MAKE_CMD) PLATFORM=msdos
66
67 win32:
68         @PATH=$(CROSS_PATH):${PATH} $(MAKE_CMD) PLATFORM=win32
69
70 clean:
71         @$(MAKE_CMD) clean
72
73
74 #-----------------------------------------------------------------------------#
75 # development only stuff                                                      #
76 #-----------------------------------------------------------------------------#
77
78 backup:
79         ./Scripts/make_backup.sh src
80
81 backup_lev:
82         ./Scripts/make_backup.sh lev
83
84 backup_gfx:
85         ./Scripts/make_backup.sh gfx
86
87 dist-unix:
88         ./Scripts/make_dist.sh unix .
89
90 dist-msdos:
91         ./Scripts/make_dist.sh dos .
92
93 dist: dist-unix dist-msdos
94
95 depend dep:
96         $(MAKE_CMD) depend