XCOMM $XConsortium: Imakefile,v 1.9 91/07/16 23:06:01 gildea Exp $
/* Change BINDIR and MANDIR (uncomment them first) if you want to install
 * XBlockBuster other than the standard BINDIR and MANDIR, as defined by
 * X11, on your system.
 */

       BINDIR = /usr/games/

       MANDIR = /usr/local/man/man6

      MANSUFFIX = 6

#define StageDir /usr/games/lib/xblockbuster

#define InstallLib NO	/* Change to NO if the stages are already installed */

#ifndef StageDir
#define StageDir $(LIBDIR)/xblockbuster
#endif
CFLAGS += -Wall

STAGEDIR = StageDir

/* If your on a system V machine, add -DSYSV to DEFINES below */

        DEFINES = -DSTAGEDIR=\"$(STAGEDIR)\"
        DEPLIBS = $(DEPXLIB)
LOCAL_LIBRARIES = $(XLIB)
          SRCS1 = balls_pallet.c bricks.c deflection.c lock.c save.c score.c \
                  stage.c xblockbuster.c
          OBJS1 = balls_pallet.o bricks.o deflection.o lock.o save.o score.o \
                  stage.o xblockbuster.o
          SRCS2 = stagemm.c
          OBJS2 = stagemm.o
       PROGRAMS = xblockbuster stagemm

ComplexProgramTarget_1(xblockbuster,$(LOCAL_LIBRARIES),-lm)
SingleProgramTarget(stagemm,$(OBJS2), NullParameter, NullParameter)
InstallAppDefaults(XBlockbuster)
InstallManPage(xblockbuster, $(MANDIR))
InstallManPage(stagemm, $(MANDIR))
InstallProgram(stagemm, $(BINDIR))
/*
  There must be a better way of doing this install, other than listing
  the 40 or so files and doing a InstallMultiple.
*/
#if InstallLib
install::
	MakeDir($(STAGEDIR))
	cp -r STAGES* $(STAGEDIR)
	chmod 666 $(STAGEDIR)/STAGES*/scores
	chmod 777 $(STAGEDIR)/STAGES*/save
#endif
