git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-lib/examples/gb/dscan/Makefile

      1 # If you move this project you can change the directory
      2 # to match your GBDK root directory (ex: GBDK_HOME = "C:/GBDK/"
      3 ifndef GBDK_HOME
      4 	GBDK_HOME = ../../../
      5 endif
      6 LCC = $(GBDK_HOME)/bin/lcc -Wm-yc
      7 
      8 BINS	= dscan.gb
      9 
     10 # GBDK_DEBUG = ON
     11 ifdef GBDK_DEBUG
     12 	LCCFLAGS += -debug -v
     13 endif
     14 
     15 
     16 all:	$(BINS)
     17 
     18 compile.bat: Makefile
     19 	@echo "REM Automatically generated from Makefile" > compile.bat
     20 	@make -sn | sed y/\\//\\\\/ | sed s/mkdir\ -p\/mkdir\/ | grep -v make >> compile.bat
     21 
     22 %.o:	%.c
     23 	$(LCC) $(LCCFLAGS) -c -o $@ $<
     24 
     25 %.s:	%.c
     26 	$(LCC) $(LCCFLAGS) -S -o $@ $<
     27 
     28 %.o:	%.s
     29 	$(LCC) $(LCCFLAGS) -c -o $@ $<
     30 
     31 %.gb:	%.o
     32 	$(LCC) $(LCCFLAGS) -o $@ $<
     33 
     34 clean:
     35 	rm -f *.o *.lst *.map *.gb *.ihx *.sym *.cdb *.adb *.asm *.noi *.rst

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.