X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=Makefile;h=2ea6579c876669d96f1c4c85e04d36b94b5f4c88;hb=a8b2caa1d373c84c1b3fc2f615370c2a319051ca;hp=3e80fafdb06b61c2b2bce6eb92d065fda7deb568;hpb=d4c11da68a7271553ca5591adfae54fd3b45011f;p=rocksndiamonds.git diff --git a/Makefile b/Makefile index 3e80fafd..2ea6579c 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ #=============================================================================# -# Makefile for Rocks'n'Diamonds 1.2 # -# (c) 1995-98 Holger Schemel, aeglos@valinor.owl.de # +# Makefile for Rocks'n'Diamonds # +# (c) 1995-2000 Holger Schemel, info@artsoft.org # #=============================================================================# #-----------------------------------------------------------------------------# @@ -10,19 +10,17 @@ # specify your favorite ANSI C compiler CC = gcc -# explicitely choose your platform, if defaults doesn't work right -# needed for SUN/Solaris; Linux and DOS work fine with auto detection -# PLATFORM = solaris -# PLATFORM = unix -# PLATFORM = dos - # specify path to X11 on your system -# if undefined, use system defaults (works fine with Linux/gcc) -# X11_PATH = /usr/X11 +# if undefined, use system defaults (works with Linux/gcc/libc5) +X11_PATH = /usr/X11 + +# specify directory for read-only game data (like graphics, sounds, levels) +# default is '.', so you can play without installing game data somewhere +# RO_GAME_DIR = /usr/games -# specify path to install game data (graphics, sounds, levels, scores) +# specify directory for writable game data (like highscore files) # default is '.', so you can play without installing game data somewhere -# GAME_DIR = /usr/local/games +# RW_GAME_DIR = /var/games # uncomment this if your system has no joystick include file # JOYSTICK = -DNO_JOYSTICK @@ -37,6 +35,9 @@ CC = gcc # when installing the game in a single user environment, choose this # SCORE_ENTRIES = MANY_PER_NAME +# specify path for cross-compiling (only needed for Win32 build) +CROSS_PATH=/usr/local/cross-tools/i386-mingw32/bin + #-----------------------------------------------------------------------------# # you should not need to change anything below # #-----------------------------------------------------------------------------# @@ -46,14 +47,50 @@ CC = gcc MAKE = make SRC_DIR = src -MAKE_CMD = @$(MAKE) -C $(SRC_DIR) - +MAKE_CMD = $(MAKE) -C $(SRC_DIR) all: - $(MAKE_CMD) + @$(MAKE_CMD) TARGET=sdl + +x11: + @$(MAKE_CMD) TARGET=x11 + +sdl: + @$(MAKE_CMD) TARGET=sdl solaris: - $(MAKE_CMD) PLATFORM=solaris + @$(MAKE_CMD) PLATFORM=solaris + +msdos: + @$(MAKE_CMD) PLATFORM=msdos + +win32: + @PATH=$(CROSS_PATH):${PATH} $(MAKE_CMD) PLATFORM=win32 clean: - $(MAKE_CMD) clean + @$(MAKE_CMD) clean + + +#-----------------------------------------------------------------------------# +# development only stuff # +#-----------------------------------------------------------------------------# + +backup: + ./Scripts/make_backup.sh src + +backup_lev: + ./Scripts/make_backup.sh lev + +backup_gfx: + ./Scripts/make_backup.sh gfx + +dist-unix: + ./Scripts/make_dist.sh unix . + +dist-msdos: + ./Scripts/make_dist.sh dos . + +dist: dist-unix dist-msdos + +depend dep: + $(MAKE_CMD) depend