/* 
   if you have "vroot.h" and need it for window managers like
   swm, or tvtwm, uncomment this
/*

/* VROOT=-DINCLUDE_VROOT */

/* if you have xpm, add the lib/include directory here like so */
/* the "HAS_XPM" is important to include */
/* if not, then comment out XPM_STATS and XPM_LSTATS */
XPMINCDIR = -I/usr/include/X11
/* XPMLIBDIR = -L../xpm */
XPM_STATS = -DHAS_XPM $(XPMINCDIR) 
XPM_LSTATS = $(XPMLIBDIR) -lXpm

/* if you have gd, add the lib/include directory here like so */
/* the "HAS_GD" is important to include */
/* if not, then comment out GD_STATS */
GDINCDIR = -I../gd1.2
GDLIBDIR = -L../gd1.2
GD_STATS = -DHAS_GD $(GDINCDIR)
GD_LSTATS = $(GDLIBDIR) -lgd -lm

/* comment this if you don't want the tartans permanently loaded in */
/* as fallbacks.  I was worried this would make a fairly large application */
/* but it turns out the difference is minimal compared to the size of */
/* the X libraries involved, and actually made performance faster by */
/* saving the file load -- if you use this flag, you don't need to install */
/* the XTartan.ad file */
FALLBACKS_FLAG = -DINCLUDE_FALLBACKS

STD_INCLUDES = $(XPM_STATS) $(GD_STATS) $(FALLBACKS_FLAG)
LOCAL_LIBRARIES = $(XPM_LSTATS) $(GD_LSTATS) 
/* otherwise comment them out */

  SYS_LIBRARIES = -lXt -lX11
           OBJS = XTartan.o gifsupp.o actions.o color.o draw.o main.o misc.o setrootbg.o stipple.o tartan.o
           SRCS = XTartan.c gifsupp.c actions.c color.c draw.c main.c misc.c setrootbg.c stipple.c tartan.c

ComplexProgramTarget(xtartan)
