Makefile (370B)
1CC = ../../../bin/lcc -Wl-m -Wl-j -Wm-yS 2 3BINS = phys.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