/*
 * Imakefile for cbzone
 *  Todd Mummert, CMU, January 1991
 */
SRCS =  c_main.c \
        c_move.c \
        c_graphics.c \
        c_scores.c \
        c_gpr.c \
        c_parseopts.c \
        c_draw.c \
        c_explode.c

OBJS =  c_main.o \
        c_move.o \
        c_graphics.o \
        c_scores.o \
        c_gpr.o \
        c_parseopts.o \
        c_draw.o \
        c_explode.o

HDRS =  c_config.h \
        c_structs.h \
        c_defs.h \
        c_externs.h \
        c_colors.h \
        c_includes.h \
        PatchLevel.h

ETCS =  cbzone.help \
        cbzone.motd

MISC =  Imakefile \
        Makefile.orig \
        INSTALL \
        ChangeLog \
        bitmaps

# in general, these should end in a /
# this is where the binary will go
BINDIR = /usr/objdir/bin/

# this is where the scorefile and helpfile will go
TANKDIR = /usr/objdir/bin/

DEFINES = -DTANKDIR=\"$(TANKDIR)\"

LOCAL_LIBRARIES = $(XTOOLLIB) $(XLIB) -lm

ComplexProgramTarget(cbzone)

InstallNonExec(cbzone.help,$(TANKDIR))
InstallNonExec(cbzone.motd,$(TANKDIR))

tar: cbzone.tar.Z

cbzone.tar.Z:  $(SRCS) $(HDRS) $(ETCS) $(MISC)
	rm -rf cbzone.tar cbzone.tar.Z
	tar -cf cbzone.tar $(SRCS) $(HDRS) $(ETCS) $(MISC)
	compress cbzone.tar
