X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2FMakefile;h=fb7dd26ac40e84ae95e8ce7ea723e86f58d29090;hb=0c27626bae90cb1eeea4939de0130a49b9aac507;hp=4c0a427baea5f9e3ab285213d2227e6449084447;hpb=fd18ece8535cd87bd72989d7d39092d55b283939;p=rocksndiamonds.git diff --git a/src/Makefile b/src/Makefile index 4c0a427b..fb7dd26a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -16,8 +16,11 @@ CC = gcc # specify X11 library path on your system XLIB_PATH = /usr/X11/lib -# change this to the directory where you want to install game data like levels -GAME_DIR = . +# choose directory for read-only game data (like graphics, sounds, levels) +# RO_GAME_DIR = /usr/games + +# choose directory for writable game data (like highscore files) +# RW_GAME_DIR = /var/games # uncomment this if your system has no joystick include file # JOYSTICK = -DNO_JOYSTICK @@ -62,9 +65,18 @@ endif CPP = $(CC) -E -CONFIG_GAME_DIR = -DGAME_DIR="\"$(GAME_DIR)\"" +ifdef RO_GAME_DIR +CONFIG_RO_GAME_DIR = -DRO_GAME_DIR="\"$(RO_GAME_DIR)\"" +endif + +ifdef RW_GAME_DIR +CONFIG_RW_GAME_DIR = -DRW_GAME_DIR="\"$(RW_GAME_DIR)\"" +endif + CONFIG_SCORE_ENTRIES = -D$(SCORE_ENTRIES) +CONFIG_GAME_DIR = $(CONFIG_RO_GAME_DIR) $(CONFIG_RW_GAME_DIR) + CONFIG = $(CONFIG_GAME_DIR) $(SOUNDS) $(JOYSTICK) \ $(CONFIG_SCORE_ENTRIES) $(XPM_INCLUDE_FILE)