dce@sony.com (David Elliott) (10/16/89)
When I got xchomp, I used imake to create a working Makefile. Imagine
my surprise when the results didn't work at all (bitmap.h wasn't
created). The following is an Imakefile that, though not completely
correct, works fine. If someone can improve this and point out any
errors I've made, it would help.
--- cut here ---
INCLUDES = -I$(TOP) -I$(TOP)/X11
LOCAL_LIBRARIES = $(XLIB)
SRCS= contact.c demo.c drivers.c main.c maze.c props.c resources.c status.c
OBJS= contact.o demo.o drivers.o main.o maze.o props.o resources.o status.o
HDRS= xchomp.h bitmaps.h
BITMAPFILES= \
bitmaps/fruit/ff1.h bitmaps/fruit/fapple.h bitmaps/fruit/fcherry.h \
bitmaps/fruit/fclock.h bitmaps/fruit/ff2.h bitmaps/fruit/ff3.h \
bitmaps/fruit/ff4.h bitmaps/fruit/ff5.h bitmaps/fruit/ff6.h \
bitmaps/fruit/ff7.h bitmaps/fruit/ff8.h bitmaps/fruit/ff9.h \
bitmaps/fruit/fgrape.h bitmaps/fruit/fwater.h bitmaps/fruit/fbell.h \
bitmaps/fruit/fg1.h bitmaps/fruit/fg2.h bitmaps/fruit/fg3.h \
bitmaps/fruit/fg4.h bitmaps/fruit/fkey.h bitmaps/fruit/fstraw.h \
bitmaps/fruit/fxlogo.h bitmaps/maze/m1.h bitmaps/maze/m2.h \
bitmaps/maze/m3.h bitmaps/maze/m4.h bitmaps/maze/m5.h \
bitmaps/maze/m6.h bitmaps/maze/m7.h bitmaps/maze/m8.h \
bitmaps/maze/ma.h bitmaps/maze/mb.h bitmaps/maze/mc.h \
bitmaps/maze/md.h bitmaps/maze/mdot.h bitmaps/maze/mdown.h \
bitmaps/maze/me.h bitmaps/maze/mempty.h bitmaps/maze/mg.h \
bitmaps/maze/mhorz.h bitmaps/maze/mj.h bitmaps/maze/mleft.h \
bitmaps/maze/mm.h bitmaps/maze/mn.h bitmaps/maze/mo.h \
bitmaps/maze/mpower.h bitmaps/maze/mq.h bitmaps/maze/mright.h \
bitmaps/maze/ms.h bitmaps/maze/mt.h bitmaps/maze/mu.h \
bitmaps/maze/mup.h bitmaps/maze/mvert.h bitmaps/maze/mw.h \
bitmaps/maze/mx.h bitmaps/maze/my.h bitmaps/maze/mz.h \
bitmaps/pac/pacd1.h bitmaps/pac/pacd2.h bitmaps/pac/pacd3.h \
bitmaps/pac/pacl1.h bitmaps/pac/pacl2.h bitmaps/pac/pacl3.h \
bitmaps/pac/pacl4.h bitmaps/pac/pacr1.h bitmaps/pac/pacr2.h \
bitmaps/pac/pacr3.h bitmaps/pac/pacsmall.h bitmaps/pac/pacu1.h \
bitmaps/pac/pacu2.h bitmaps/pac/pacu3.h bitmaps/pac/pdie10.h \
bitmaps/pac/pdie4.h bitmaps/pac/pdie5.h bitmaps/pac/pdie6.h \
bitmaps/pac/pdie7.h bitmaps/pac/pdie8.h bitmaps/pac/pdie9.h \
bitmaps/demo/bigc.h bitmaps/demo/bigh.h bitmaps/demo/bigm.h \
bitmaps/demo/bigo.h bitmaps/demo/bigp.h bitmaps/demo/icon.h \
bitmaps/frame/eye.h bitmaps/frame/frame1.h bitmaps/frame/frame2.h \
bitmaps/frame/frame3.h bitmaps/frame/grey1.h bitmaps/frame/grey2.h \
bitmaps/frame/grey3.h
INSTALLFLAGS = $(INSTKMEMFLAGS)
all: xchomp
SingleProgramTarget(xchomp,$(OBJS),,$(LOCAL_LIBRARIES))
bitmaps.h: $(BITMAPFILES)
cat $(BITMAPFILES) | sed '/^\#define/d' > bitmaps.h
$(OBJS): $(HDRS)
...David Elliott
...dce@sony.com | ...!{uunet,mips}!sonyusa!dce