cscg22-gearboy

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

Makefile (394B)


      1CC	= ../../../bin/lcc -Wa-l -Wl-m
      2
      3BINS	= gb-dtmf.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%.s:	%.c
     12	$(CC) -S -o $@ $<
     13
     14%.o:	%.c
     15	$(CC) -c -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 *.ihx *.sym *.cdb *.adb *.asm