X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2FMakefile;h=6c81021d1d52593d85be593b34749ec419741788;hb=5d50a7e10873581345ee63a5afafd43dbd45809b;hp=4c0a427baea5f9e3ab285213d2227e6449084447;hpb=fd18ece8535cd87bd72989d7d39092d55b283939;p=rocksndiamonds.git diff --git a/src/Makefile b/src/Makefile index 4c0a427b..6c81021d 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 @@ -56,15 +59,24 @@ PROGNAME = ../rocksndiamonds LIBS = -L$(XLIB_PATH) $(EXTRA_X11_LIBS) -lX11 -lm $(EXTRA_LIBS) else RM = del -PROGNAME = ..\rocks.exe +PROGNAME = ../rocks.exe LIBS = -lm -lalleg 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)