2 # Makefile fuer "Rocks'n'Diamonds -- McDuffin Strikes Back"
5 PROGNAME = rocksndiamonds
11 # CC = cc # for HP-UX and others
13 GAME_DIR = -DGAME_DIR=\".\" # path of the game and its data
14 # JOYSTICK = -DNO_JOYSTICK # no joystick
15 # SOUNDS = -DNO_SOUNDS # no sounds
16 # SCORE_ENTRIES = -DONE_PER_NAME # only one score entry per name
17 SCORE_ENTRIES = -DMANY_PER_NAME # many score entries per name
19 # The XPM-Library is no longer needed to build this program,
20 # but is used to load graphics if XPM_INCLUDE_FILE is defined,
21 # because the GIF loading routines are still a bit beta.
22 # If you use the Xpm library, convert the GIF files to Xpm
23 # files (and the mask files ('*Maske.gif') to xbm files).
25 # XPM_INCLUDE_FILE = -DXPM_INCLUDE_FILE="<X11/xpm.h>"
27 CONFIG = $(GAME_DIR) $(SOUNDS) $(JOYSTICK) \
28 $(SCORE_ENTRIES) $(XPM_INCLUDE_FILE)
30 # DEBUG = -DDEBUG -g -ansi -pedantic -Wall
31 DEBUG = -DDEBUG -g -Wall
34 # SYSTEM = -Aa -D_HPUX_SOURCE -Dhpux # for HP-UX (obsolete)
35 # SYSTEM = -DSYSV -Ae # for HP-UX
36 # INCL = -I/usr/include/X11R5 # for HP-UX and others
37 # INCL = -I/usr/local/X11/include # for SunOS and others
38 # LIBS = -L/usr/lib/X11R5 -lXpm -lX11 -lm
39 # # for HP-UX and others
40 # LIBS = -L/usr/local/X11/lib -lXpm -lX11 -lm -lsocket -R/usr/local/X11/lib
41 # # for SunOS and others
43 # LIBS = -L/usr/X11R6/lib -lXpm -lX11 -lm
44 LIBS = -L/usr/X11R6/lib -lX11 -lm
46 # CFLAGS = -O2 $(CONFIG) $(SYSTEM)
47 CFLAGS = $(DEBUG) $(CONFIG) $(SYSTEM) $(INCL)
93 all: $(PROGNAME) $(SERVNAME)
96 $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $(PROGNAME)
98 $(SERVNAME): $(SERVNAME).c
99 $(CC) $(CFLAGS) $(SERVNAME).c $(LIBS) -o $(SERVNAME)
102 $(CC) $(CFLAGS) -c $*.c
105 $(RM) $(PROGNAME) $(SERVNAME) $(OBJS)
111 for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
113 ifeq (.depend,$(wildcard .depend))