Makefile (568B)
1CC = ../../../bin/lcc -Wa-l -Wl-m 2 3# CFLAGS = 4 5BINS = colorbar.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%.o: %.c 14 $(CC) $(CFLAGS) -c -o $@ $< 15 16%.o: %.s 17 $(CC) $(CFLAGS) -c -o $@ $< 18 19%.s: %.c 20 $(CC) $(CFLAGS) -S -o $@ $< 21 22%.gb: %.o 23 $(CC) -o $@ $< 24 25clean: 26 rm -f *.o *.lst *.map *.gb *.ihx *.sym *.cdb *.adb *.asm 27 28# Link file, and write 0x80 at position 0x143 in header 29colorbar.gb: colorbar.o 30 $(CC) $(CFLAGS) -Wm-yC -o colorbar.gb colorbar.o