/* this Imakefile will generate a Makefile for the 'standard' xpat */
/* i.e. using round cards, but no xpm and no sound */

/* define or undef the following options: */
#define USE_XPM
#define USE_ROUND
#undef SUN_SOUND

/* in case you use xpm, where are your libs? */
XPM_INCLUDEDIR = $(INCDIR)
XPM_LIBDIR = $(USRLIBDIR)
EXTRA_INCLUDES = -I$(XPM_INCLUDEDIR)

/* your path preferences */
BINDIR = /usr/games/bin
DOCDIR = /usr/doc/xpat
LIBDIR = /usr/games/lib/xpat
SCOREFILE = $(LIBDIR)/xpat.log
MANDIR = /usr/man/man6

/* end of user configuration */




OBJS = events.o windows.o rules.o main.o layout.o buttons.o expose.o \
  hints.o cards.o loadsave.o util.o sound.o gfx.o xpm.o markcard.o arrows.o \
  r_HM.o r_Spider.o
SRCS = events.c windows.c rules.c main.c layout.c buttons.c expose.c \
  hints.c cards.c loadsave.c util.c sound.c gfx.c xpm.c markcard.c arrows.c \
  r_HM.c r_Spider.c

/* standard assignments */
DEFS1 = -DSCOREFILE=\"$(SCOREFILE)\" -DLIBDIR=\"$(LIBDIR)\"
LIBS1 = $(XLIB)

/* modifications */
#ifdef USE_ROUND
  LIBS2 = $(XMULIB)
#else
  DEFS2 = -DNO_ROUND
#endif

#ifdef USE_XPM
  LIBS3 = -L$(XPM_LIBDIR) -lXpm
#else
  DEFS3 = -DNO_XPM
#endif

#ifdef SUN_SOUND
  DEFS4 = -DSUN_SOUND
#endif

DEFINES = $(DEFS4) $(DEFS3) $(DEFS2) $(DEFS1)
LOCAL_LIBRARIES = $(LIBS3) $(LIBS2) $(LIBS1)

ComplexProgramTarget(xpat)
