#undef Color			/* Undefine for black/white machines */
#define  SgidGames		/* Define if you want a secure scores file. */
/* Directory for the score file. */
#define ScoreDir $(SHAREDIR)/scores
/* Filename for the score file. */
#define ScoreFile xtetris-scores
#define BitmapDir $(INCDIR)/bitmaps /* May need to change this to
				       /usr/include/X11/bitmaps, if you get a
				       message like "can't convert string
				       'box19' to pixmap." */
#ifdef SgidGames
   SGIDFLAGS = -m 2555 -g games
   SCOREFLAGS = -m 464 -g games
#else
   SGIDFLAGS =
   SCOREFLAGS = -m 666 
#endif

        BITMAPS = stripe4 box16 box19
        DEFINES = -DHIGH_SCORE_TABLE=\"ScoreDir/ScoreFile\"

NormalProgramTarget(xtetris,\
         main.o init.o shape.o support.o notify.o window.o score.o draw.o,\
	 XawClientDepLibs,XawClientLibs,-lm)
InstallProgramWithFlags(xtetris,$(BINDIR),$(SGIDFLAGS))
InstallManPage(xtetris,$(MANDIR))
InstallAppDefaults(Xtetris)

/* A brief comment about the following line:  There is a bug in the Imakefile
   for Xmu which does not set BITMAPDIR to $(INCDIR)/bitmaps.  Instead it
   always points to /usr/include/X11/bitmaps.  If you haven't fixed this 
   problem, and you have X11R4 installed in a funny place, you may wish to 
   change the following line to use "/usr/include/X11/bitmaps" instead.  
      -- Dan Greening */

InstallMultipleFlags($(BITMAPS),BitmapDir,-m 664)
InstallMultipleFlags(ScoreFile,ScoreDir,$(SCOREFLAGS))
#ifdef Color
COLORDEF = -DCOLOR
#else
COLORDEF = -UCOLOR
#endif
Xtetris.ad: Xtetris.ad.color
	xrdb -n Xtetris.ad.color $(COLORDEF) > Xtetris.ad
clean::
	$(RM) Xtetris.ad

