cscg22-gearboy

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

Makefile (449B)


      1CC	= ../../../bin/lcc -Wa-l -Wl-m -Wl-j
      2
      3BINS	= samptest.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# Compile and link single file in one pass
     12%.o:	%.s
     13	$(CC) -c -o $@ $<
     14
     15%.o:	%.c
     16	$(CC) -c -o $@ $<
     17
     18%.gb:	%.o sample.o
     19	$(CC) -o $@ $< sample.o
     20
     21clean:
     22	rm -f *.o *.lst *.map *.gb *~ *.rel *.cdb *.ihx *.lnk *.sym *.asm *.noi
     23