cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

Makefile (599B)


      1CC	= ../../../bin/lcc -msm83:ap -Wl-j -Wm-yS
      2
      3# CFLAGS	=
      4
      5BINS	= colorbar.pocket
      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%.pocket:	%.o
     23	$(CC) -o $@ $<
     24
     25clean:
     26	rm -f *.o *.lst *.map *.pocket *.ihx *.sym *.cdb *.adb *.asm
     27
     28# Link file, and write 0x80 at position 0x143 in header
     29colorbar.pocket:	colorbar.o
     30	$(CC) $(CFLAGS) -Wm-yC -o colorbar.pocket colorbar.o