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/gbtype/Makefile

      1 #
      2 # Simple Makefile that compiles all .c and .s files in the same folder
      3 #
      4 
      5 # If you move this project you can change the directory 
      6 # to match your GBDK root directory (ex: GBDK_HOME = "C:/GBDK/"
      7 ifndef GBDK_HOME
      8 	GBDK_HOME = ../../../
      9 endif
     10 
     11 LCC = $(GBDK_HOME)/bin/lcc 
     12 
     13 # Flag to enable optional Super Game Boy support in the ROM Cartridge header
     14 LCCFLAGS =  -Wm-ys
     15 
     16 # GBDK_DEBUG = ON
     17 ifdef GBDK_DEBUG
     18 	LCCFLAGS += -debug -v
     19 endif
     20 
     21 
     22 # You can set the name of the .gb ROM file here
     23 PROJECTNAME    = gbtype
     24 
     25 BINS	    = $(PROJECTNAME).gb
     26 CSOURCES   := $(wildcard *.c)
     27 ASMSOURCES := $(wildcard *.s)
     28 
     29 all:	$(BINS)
     30 
     31 compile.bat: Makefile
     32 	@echo "REM Automatically generated from Makefile" > compile.bat
     33 	@make -sn | sed y/\\//\\\\/ | sed s/mkdir\ \-p/mkdir/ | grep -v make >> compile.bat
     34 
     35 # Compile and link all source files in a single call to LCC
     36 $(BINS):	$(CSOURCES) $(ASMSOURCES)
     37 	$(LCC) $(LCCFLAGS) -o $@ $(CSOURCES) $(ASMSOURCES)
     38 
     39 clean:
     40 	rm -f *.o *.lst *.map *.gb *.ihx *.sym *.cdb *.adb *.asm *.noi *.rst *.rst
     41 

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