# # MAKEFILE FOR XCHOMP # # # Add -DFRAME_DELAY=xxxxx to CFLAGS if the game runs too fast without it. # The "xxxxx" is the number of microseconds to wait between motion frames. # CFLAGS = -O CC = cc $(CFLAGS) OBJECTS = contact.o \ demo.o \ drivers.o \ main.o \ maze.o \ props.o \ resources.o \ status.o BITMAPFILES = bitmaps/demo/*.h \ bitmaps/frame/*.h \ bitmaps/fruit/*.h \ bitmaps/maze/*.h \ bitmaps/pac/*.h xchomp: $(OBJECTS) $(CC) -o xchomp $(OBJECTS) -lX11 strip xchomp contact.o: contact.c xchomp.h $(CC) -c contact.c demo.o: demo.c xchomp.h $(CC) -c demo.c drivers.o: drivers.c xchomp.h $(CC) -c drivers.c main.o: main.c xchomp.h $(CC) -c main.c maze.o: maze.c xchomp.h $(CC) -c maze.c props.o: props.c xchomp.h $(CC) -c props.c resources.o: resources.c xchomp.h bitmaps.h $(CC) -c resources.c status.o: status.c xchomp.h $(CC) -c status.c bitmaps.h: $(BITMAPFILES) cat $(BITMAPFILES) | sed '/^\#define/d' > bitmaps.h