rnd-20001127-1-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 paths for cross-compiling (only needed for MS-DOS and Win32 build)
39 CROSS_PATH_MSDOS=/usr/local/cross-msdos/i386-msdosdjgpp
40 CROSS_PATH_WIN32=/usr/local/cross-tools/i386-mingw32msvc
41
42 #-----------------------------------------------------------------------------#
43 # you should not need to change anything below                                #
44 #-----------------------------------------------------------------------------#
45
46 .EXPORT_ALL_VARIABLES:
47
48 MAKE = make
49
50 SRC_DIR = src
51 MAKE_CMD = $(MAKE) -C $(SRC_DIR)
52
53 all:
54         @$(MAKE_CMD) TARGET=sdl
55
56 x11:
57         @$(MAKE_CMD) TARGET=x11
58
59 sdl:
60         @$(MAKE_CMD) TARGET=sdl
61
62 solaris:
63         @$(MAKE_CMD) PLATFORM=solaris
64
65 msdos:
66         @$(MAKE_CMD) PLATFORM=msdos
67
68 cross-msdos:
69         @PATH=$(CROSS_PATH_MSDOS)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-msdos
70
71 cross-win32:
72         @PATH=$(CROSS_PATH_WIN32)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-win32
73
74 clean:
75         @$(MAKE_CMD) clean
76
77
78 #-----------------------------------------------------------------------------#
79 # development only stuff                                                      #
80 #-----------------------------------------------------------------------------#
81
82 backup:
83         ./Scripts/make_backup.sh src
84
85 backup_lev:
86         ./Scripts/make_backup.sh lev
87
88 backup_gfx:
89         ./Scripts/make_backup.sh gfx
90
91 dist-unix:
92         ./Scripts/make_dist.sh unix .
93
94 dist-msdos:
95         ./Scripts/make_dist.sh dos .
96
97 dist: dist-unix dist-msdos
98
99 depend dep:
100         $(MAKE_CMD) depend