Makefile (595B)
1CC = ../../../bin/lcc -msm83:ap -Wl-j -Wm-yS 2 3BINS = ram_fn.pocket 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%.pocket: %.o 21 $(CC) -o $@ $< 22 23clean: 24 rm -f *.o *.lst *.map *.pocket *~ *.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.pocket: ram_fn.o 31 $(CC) -Wl-g_inc_ram=0xD000 -Wl-g_inc_hiram=0xFFA0 -o $@ $< 32