home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / xap / xgames / xtetris-.6 / xtetris- / xtetris-2.6 / Imakefile < prev    next >
Makefile  |  1992-10-19  |  2KB  |  49 lines

  1. /* Search for "COLOR" if you want xtetris to run on a color monitor by 
  2.    default */
  3.  
  4. #define ScoreDir $(LIBDIR)      /* Directory for the score file. */
  5. #define ScoreFile xtetris-scores/* Filename for the score file. */
  6. #define BitmapDir $(INCDIR)/bitmaps /* May need to change this to
  7.                        /usr/include/X11/bitmaps, if you get a
  8.                        message like "can't convert string
  9.                        'stripe4' to pixmap." */
  10.  
  11.         BITMAPS = stripe4 
  12.         DEFINES = -DHIGH_SCORE_TABLE=\"$(LIBDIR)/xtetris-scores\"
  13.         HEADERS = defs.h
  14.            SRCS = main.c init.c shape.c support.c notify.c window.c score.c\
  15.                   draw.c
  16.            OBJS = main.o init.o shape.o support.o notify.o window.o score.o\
  17.                   draw.o
  18. LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) -lm
  19.         DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB) 
  20.  
  21. ComplexProgramTarget(xtetris)
  22.  
  23. AllTarget(Xtetris.ad)    /* This is necessary because of a stupid bug with
  24.                 respect to the ".customization" resource.
  25.                 It does not propagate to the popup widgets,
  26.                 and so they fetch their values using a
  27.                 NULL customization.  Difficult bug to find! */
  28. AllTarget(Xtetris.c.ad)
  29. AllTarget(Xtetris.bw.ad)
  30.  
  31. InstallAppDefaults(Xtetris.c)
  32. InstallAppDefaults(Xtetris.bw)
  33. InstallAppDefaults(Xtetris)
  34.  
  35. InstallMultipleFlags($(BITMAPS),BitmapDir,-m 444)
  36. InstallMultipleFlags(ScoreFile,ScoreDir,$(SCOREFLAGS))
  37. Xtetris.c.ad: Xtetris.ad.all
  38.     xrdb -n Xtetris.ad.all -DCOLOR > Xtetris.c.ad
  39. Xtetris.bw.ad: Xtetris.ad.all
  40.     xrdb -n Xtetris.ad.all -UCOLOR > Xtetris.bw.ad
  41.  
  42. /*  IF YOU WANT COLOR TO BE THE DEFAULT, MODIFY THE LINE BELOW TO SAY 
  43.     "-DCOLOR". */
  44.  
  45. Xtetris.ad: Xtetris.ad.all
  46.     xrdb -n Xtetris.ad.all -UCOLOR > Xtetris.ad
  47. clean::
  48.     $(RM) Xtetris.c.ad Xtetris.bw.ad Xtetris.ad
  49.