/**/#ident	"@(#)r4xtetris:Imakefile	1.10"
/**/#	Copyright (c) 1990, 1991, 1992, 1993, 1994 Novell, Inc. All Rights Reserved.
/**/#	Copyright (c) 1993 Novell, Inc. All Rights Reserved.
/**/#	  All Rights Reserved

/**/#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Novell Inc.
/**/#	The copyright notice above does not evidence any
/**/#	actual or intended publication of such source code.


/* Search for "COLOR" if you want xtetris to run on a color monitor by 
   default */

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

        BITMAPS = stripe4 box16 box19
        DEFINES = -DHIGH_SCORE_TABLE=\"$(XWINLIBDIR)/xtetris-scores\"
        HEADERS = defs.h
           SRCS = main.c init.c shape.c support.c notify.c window.c score.c\
                  draw.c
           OBJS = main.o init.o shape.o support.o notify.o window.o score.o\
                  draw.o
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) -lm
        DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB) 

ComplexProgramTarget(xtetris)

AllTarget(Xtetris.ad)	/* This is necessary because of a stupid bug with
				respect to the ".customization" resource.
				It does not propagate to the popup widgets,
				and so they fetch their values using a
				NULL customization.  Difficult bug to find! */
AllTarget(Xtetris.c.ad)
AllTarget(Xtetris.bw.ad)

InstallAppDefaults(Xtetris.c)
InstallAppDefaults(Xtetris.bw)
InstallAppDefaults(Xtetris)

InstallMultipleFlags($(BITMAPS),BitmapDir,-m 444)
InstallMultipleFlags(ScoreFile,ScoreDir,$(SCOREFLAGS))
/*  IF YOU WANT COLOR TO BE THE DEFAULT, MODIFY THE LINE BELOW TO SAY 
    "-DCOLOR". */
Xtetris.ad: Xtetris.ad.all
	$(CC) -E Xtetris.ad.all -DCOLOR | $(SED) -e '/^#/d' > Xtetris.ad
Xtetris.c.ad: Xtetris.ad.all
	$(CC) -E Xtetris.ad.all -DCOLOR | $(SED) -e '/^#/d' > Xtetris.c.ad
Xtetris.bw.ad: Xtetris.ad.all
	$(CC) -E Xtetris.ad.all -UCOLOR | $(SED) -e '/^#/d' > Xtetris.bw.ad

clean::
	$(RM) Xtetris.c.ad Xtetris.bw.ad Xtetris.ad
