CC = gcc

XCOMM The location of the scores file: note that xbill will be
XCOMM installed setgid daemon to allow it to write to the scores file
XCOMM if a system score file is used.

SCORE_DEF = -DSCORE_FILE=\"/var/games/xbill/scores\"
XCOMM SCORE_DEF = -DSCORE_FILE=\"./.xbill-scores\"

XCOMM If you do not have libXpm installed in the standard place, 
XCOMM uncomment the second define below and insert the correct paths.
XCOMM XPM_INSTALLED determines whether to use "X11/xpm.h" or "xpm.h"

 XPMDEFS = -DXPM_INSTALLED
XCOMM XPMINC = -I<xpm include dir>
XCOMM XPMLIBDIR = -L<xpm lib dir>
 XPMLIB = -lXpm

XCOMM If you get errors about Motif not installed or undefined symbols,
XCOMM uncomment this.
 XMLIB = -lXm
XCOMM XMLIB =  /usr/lib/libXm.a

 LOCAL_LIBRARIES = $(XPMLIBDIR) $(XMLIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
 DEFINES = $(XPMINC) $(XPMDEFS) $(SCORE_DEF)

 SRCS = list.c pixmaps.c widgets.c xbill.c

 OBJS = list.o pixmaps.o widgets.o xbill.o

AllTarget(xbill)

depend:: $(SRCS)

ComplexProgramTarget(xbill)
MakeDirectories(install,/var/games/xbill)
InstallMultipleFlags(xbill,$(BINDIR),-s -g daemon -m 2755)
InstallMultipleFlags(scores,/var/games/xbill,-g daemon -m 664)
