1# Imakefile for XSpringies 2 3SRCS = xdisp.c misc.c keypress.c widget.c obj.c file.c phys.c 4OBJS = xdisp.o misc.o keypress.o widget.o obj.o file.o phys.o 5 6DEPLIBS = 7LOCAL_LIBRARIES = $(XLIB) 8SYS_LIBRARIES = -lm 9 10# Because the X consortium people are dip-heads 11MKDIRHIER = BourneShell `which mkdirhier` 12 13# Destination directory for xspringies demo files, executable and manpage 14# (Change this to where you want files installed) 15DDIR = /usr/games/ 16 17XSPDIR = $(DDIR)lib/xspringies 18BINDIR = $(DDIR)bin 19MANDIR = $(DDIR)man/manx 20 21# Set compression of xsp files 22COMPR = "gzip -f" 23UNCOMPR = "gunzip -c" 24COMPREXT = ".gz" 25COMPRFLAGS = -DCOMPRESS=\"$(COMPR)\" -DUNCOMPRESS=\"$(UNCOMPR)\" -DCOMPR_EXT=\"$(COMPREXT)\" 26 27DEFINES = -DDEF_PATH=\"$(XSPDIR)/\" $(COMPRFLAGS) 28 29MakeDirectories(install, $(XSPDIR)) 30MakeDirectories(install, $(BINDIR)) 31MakeDirectories(install, $(MANDIR)) 32 33ComplexProgramTarget(xspringies) 34 35install:: install.man install.lib 36 37# I hate imake 38XSPLIB = lib/ 39 40install.lib: 41 /bin/cp $(XSPLIB)* $(XSPDIR) 42# Compress lib files 43 gzip $(XSPDIR)\/* 44