Makefile (380B)
1CC = ../../../bin/lcc -Wa-l -Wl-m -Wl-j -Wm-ys 2 3BINS = sgb_pong.gb 4 5all: $(BINS) 6 7compile.bat: Makefile 8 @echo "REM Automatically generated from Makefile" > compile.bat 9 @make -sn | sed y/\\//\\\\/ | grep -v make >> compile.bat 10 11# Compile and link single file in one pass 12%.gb: %.c 13 $(CC) -o $@ $< 14 15clean: 16 rm -f *.o *.lst *.map *.gb *~ *.rel *.cdb *.ihx *.lnk *.sym *.asm *.noi 17