+ifeq ($(PLATFORM),cross-msdos)
+PROGBASE = rocks
+PROGNAME = ../$(PROGBASE).exe
+TARGET = allegro
+endif
+
+ifeq ($(PLATFORM),cross-win32)
+EXTRA_LDFLAGS = -lshfolder
+PROGNAME = ../$(PROGBASE).exe
+TARGET = sdl
+endif
+
+ifeq ($(TARGET),x11)
+SYS_CFLAGS = -DTARGET_X11 $(X11_INCL)
+SYS_LDFLAGS = $(X11_LIBS) -lX11
+endif
+
+ifeq ($(TARGET),sdl)
+SYS_CFLAGS = -DTARGET_SDL $(shell sdl-config --cflags)
+SYS_LDFLAGS = -lSDL_image -lSDL_mixer $(shell sdl-config --libs)
+endif
+
+ifeq ($(TARGET),allegro)
+SYS_CFLAGS = -DTARGET_ALLEGRO -I$(CROSS_PATH_MSDOS)/include
+SYS_LDFLAGS = -lalleg
+endif
+
+endif # (PLATFORM != msdos)
+
+
+ifdef RO_GAME_DIR # path to read-only game data specified
+CONFIG_RO_GAME_DIR = -DRO_GAME_DIR="\"$(RO_GAME_DIR)\""
+endif
+
+ifdef RW_GAME_DIR # path to writable game data specified
+CONFIG_RW_GAME_DIR = -DRW_GAME_DIR="\"$(RW_GAME_DIR)\""
+endif
+
+ifdef SCORE_ENTRIES # number of score entries per player specified