rnd-20010101-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 # choose if you want to allow many global score file entries for one player
29 # default is 'MANY_PER_NAME'
30 # when installing the game in a multi user environment, choose this
31 # SCORE_ENTRIES = ONE_PER_NAME
32 # when installing the game in a single user environment, choose this
33 # SCORE_ENTRIES = MANY_PER_NAME
34
35 # specify paths for cross-compiling (only needed for MS-DOS and Win32 build)
36 CROSS_PATH_MSDOS=/usr/local/cross-msdos/i386-msdosdjgpp
37 CROSS_PATH_WIN32=/usr/local/cross-tools/i386-mingw32msvc
38
39 #-----------------------------------------------------------------------------#
40 # you should not need to change anything below                                #
41 #-----------------------------------------------------------------------------#
42
43 .EXPORT_ALL_VARIABLES:
44
45 MAKE = make
46
47 SRC_DIR = src
48 MAKE_CMD = $(MAKE) -C $(SRC_DIR)
49
50 all:
51         @$(MAKE_CMD) TARGET=x11
52
53 x11:
54         @$(MAKE_CMD) TARGET=x11
55
56 sdl:
57         @$(MAKE_CMD) TARGET=sdl
58
59 solaris:
60         @$(MAKE_CMD) PLATFORM=solaris
61
62 msdos:
63         @$(MAKE_CMD) PLATFORM=msdos
64
65 cross-msdos:
66         @PATH=$(CROSS_PATH_MSDOS)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-msdos
67
68 cross-win32:
69         @PATH=$(CROSS_PATH_WIN32)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-win32
70
71 clean:
72         @$(MAKE_CMD) clean
73
74
75 #-----------------------------------------------------------------------------#
76 # development only stuff                                                      #
77 #-----------------------------------------------------------------------------#
78
79 backup:
80         ./Scripts/make_backup.sh src
81
82 backup_lev:
83         ./Scripts/make_backup.sh lev
84
85 backup_gfx:
86         ./Scripts/make_backup.sh gfx
87
88 dist-unix:
89         ./Scripts/make_dist.sh unix .
90
91 dist-msdos:
92         ./Scripts/make_dist.sh dos .
93
94 dist-win32:
95         ./Scripts/make_dist.sh win .
96
97 dist-clean:
98         @$(MAKE_CMD) dist-clean
99
100 dist: dist-unix dist-msdos dist-win32
101
102 depend dep:
103         $(MAKE_CMD) depend