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

      1 SHELL := /bin/bash
      2 
      3 # If you move this project you can change the directory
      4 # to match your GBDK root directory (ex: GBDK_HOME = "C:/GBDK/"
      5 ifndef GBDK_HOME
      6 	GBDK_HOME = ../../../
      7 endif
      8 
      9 LCC	= $(GBDK_HOME)/bin/lcc
     10 
     11 BINS	= hram.gb
     12 
     13 all:	$(BINS)
     14 
     15 compile.bat:	Makefile
     16 	@echo "REM Automatically generated from Makefile" > compile.bat
     17 	@make -sn | sed y/\\//\\\\/ | sed s/mkdir\ -p\/mkdir\/ | grep -v make >> compile.bat
     18 
     19 $(BINS):
     20 	$(LCC) -c -o hram_data.o hram_data.c
     21 	$(LCC) -c -o hram.o hram.c
     22 	$(LCC) -Wa-l -Wl-m -Wl-j -o $(BINS) hram.o hram_data.o
     23 
     24 clean:
     25 	rm -f *.o *.lst *.map *.gb *~ *.rel *.cdb *.ihx *.lnk *.sym *.asm *.noi *.rst
     26 

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