2 # Makefile fuer "Rocks'n'Diamonds -- McDuffin Strikes Back"
5 PROGNAME = rocksndiamonds
10 # CC = cc # for HP-UX and others
12 GAME_DIR = -DGAME_DIR=\".\" # path of the game and its data
13 # JOYSTICK = -DNO_JOYSTICK # no joystick
14 # SOUNDS = -DNO_SOUNDS # no sounds
15 # SCORE_ENTRIES = -DONE_PER_NAME # only one score entry per name
16 SCORE_ENTRIES = -DMANY_PER_NAME # many score entries per name
18 # the XPM-Library is needed to build this program:
19 XPM_INCLUDE_FILE = -DXPM_INCLUDE_FILE="<X11/xpm.h>"
21 CONFIG = $(GAME_DIR) $(SOUNDS) $(JOYSTICK) \
22 $(SCORE_ENTRIES) $(XPM_INCLUDE_FILE)
24 # DEBUG = -DDEBUG -g -ansi -pedantic -Wall
25 # DEBUG = -DDEBUG -g -Wall
28 # SYSTEM = -Aa -D_HPUX_SOURCE -Dhpux # for HP-UX (obsolete)
29 # SYSTEM = -DSYSV -Ae # for HP-UX
30 # SYSTEM = -DSYSV # for systems without 'usleep()'
31 # INCL = -I/usr/include/X11R5 # for HP-UX and others
32 # LIBS = -lXpm -lX11 -lm
33 # LIBS = -L/usr/lib/X11R5 -lXpm -lX11 -lm # for HP-UX and others
34 LIBS = -lXpm -lXpm -lXpm -lX11 -lm # triple -lXpm; else I got an error...
36 # CFLAGS = -O2 $(CONFIG) $(SYSTEM)
37 CFLAGS = $(DEBUG) $(CONFIG) $(SYSTEM) $(INCL)
64 $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $(PROGNAME)
67 $(CC) $(CFLAGS) -c $*.c
73 for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
75 ifeq (.depend,$(wildcard .depend))