gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/examples/gb/sgb_border/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
8 PNG2ASSET = $(GBDK_HOME)/bin/png2asset
9
10 # GBDK_DEBUG = ON
11 ifdef GBDK_DEBUG
12 LCCFLAGS += -debug -v
13 endif
14
15
16 all:
17 $(PNG2ASSET) gb_border.png -map -bpp 4 -max_palettes 4 -pack_mode sgb -use_map_attributes -c border_data.c
18 $(LCC) $(LCCFLAGS) -Wm-ys -o border.gb border.c sgb_border.c border_data.c
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 clean:
25 rm -f border_data.c border_data.h
26 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.