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