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/colorbar/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 
      7 LCC = $(GBDK_HOME)/bin/lcc -Wa-l -Wl-m
      8 
      9 # GBDK_DEBUG = ON
     10 ifdef GBDK_DEBUG
     11 	LCCFLAGS += -debug -v
     12 endif
     13 
     14 # CFLAGS	=
     15 
     16 BINS	= colorbar.gb
     17 
     18 all:	$(BINS)
     19 
     20 compile.bat: Makefile
     21 	@echo "REM Automatically generated from Makefile" > compile.bat
     22 	@make -sn | sed y/\\//\\\\/ | sed s/mkdir\ -p\/mkdir\/ | grep -v make >> compile.bat
     23 
     24 %.o:	%.c
     25 	$(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $<
     26 
     27 %.o:	%.s
     28 	$(LCC) $(LCCFLAGS) $(CFLAGS) -c -o $@ $<
     29 
     30 %.s:	%.c
     31 	$(LCC) $(LCCFLAGS) $(CFLAGS) -S -o $@ $<
     32 
     33 %.gb:	%.o
     34 	$(LCC) $(LCCFLAGS) -o $@ $<
     35 
     36 clean:
     37 	rm -f *.o *.lst *.map *.gb *.ihx *.sym *.cdb *.adb *.asm *.noi *.rst
     38 
     39 # Link file, and write 0x80 at position 0x143 in header
     40 colorbar.gb:	colorbar.o
     41 	$(LCC) $(LCCFLAGS) $(CFLAGS) -Wm-yC -o colorbar.gb colorbar.o

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