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=\"$(HOME)/.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 Make sure xpm.h can be referenced as <X11/xpm.h>

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

XCOMM Use one of the following two lines.  Motif looks a lot better,
XCOMM but Athena is free and may compile easier.

#define Use_Motif
XCOMM #define Use_Athena

#ifdef Use_Motif
XMLIB = -lXm
LOCAL_LIBRARIES = $(XPMLIBDIR) $(XMLIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
SRCS = list.c pixmaps.c widgets.c xbill.c widgets-motif.c
OBJS = list.o pixmaps.o widgets.o xbill.o widgets-motif.o
#endif

#ifdef Use_Athena
LOCAL_LIBRARIES = $(XPMLIBDIR) $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
SRCS = list.c pixmaps.c widgets.c xbill.c widgets-athena.c DrawingA.c
OBJS = list.o pixmaps.o widgets.o xbill.o widgets-athena.o DrawingA.o
#endif

DEFINES = $(XPMINC) $(XPMDEFS) $(SCORE_DEF)

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)
