Makefile (580B)
1CC = ../../../bin/lcc -Wa-l -Wl-m -Wl-j 2 3BINS = ram_fn.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%.o: %.c 12 $(CC) -c -o $@ $< 13 14%.s: %.c 15 $(CC) -S -o $@ $< 16 17%.o: %.s 18 $(CC) -c -o $@ $< 19 20%.gb: %.o 21 $(CC) -o $@ $< 22 23clean: 24 rm -f *.o *.lst *.map *.gb *~ *.rel *.cdb *.ihx *.lnk *.sym *.asm *.noi 25 26 27ram_fn.o: ram_fn.c 28 $(CC) -D_inc_ram=0xD000 -D_inc_hiram=0xFFA0 -c -o $@ $< 29 30ram_fn.gb: ram_fn.o 31 $(CC) -Wl-g_inc_ram=0xD000 -Wl-g_inc_hiram=0xFFA0 -o $@ ram_fn.o 32