# makefile for building Shawn's Speed Hack entry OBJ = badguys bullets explode hiscore main message player sound title view .PHONY: clean zip run8 run16 run32 runlo runhi # gcc (Linux and djgpp) version # ----------------------------- CFLAGS := -O3 -ffast-math OBJS := $(addsuffix .o,$(OBJ)) speed: $(OBJS) gcc -o speed $(OBJS) $(shell allegro-config --libs) %.o: %.c speed.h gcc $(CFLAGS) -o $@ -c $< # generic stuff # ------------- clean: rm -rvf speed speed.exe speed.zip speed.rec *.o *.obj core zip: clean cd ..; zip -9 -r speed.zip speed/; mv speed.zip speed run8: speed speed 640 480 8 run16: speed speed 640 480 16 run32: speed speed 640 480 32 runlo: speed speed 320 200 8 runhi: speed speed 1024 768 16