gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/examples/gb/space/Makefile
1
2 ifndef GBDK_HOME
3 GBDK_HOME = ../../../
4 endif
5
6 LCC = $(GBDK_HOME)/bin/lcc -Wl-m -Wl-w -Wl-j -Wm-yS
7
8 BINS = space.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 # Compile and link single file in one pass
23 %.gb: %.s
24 $(LCC) $(LCCFLAGS) -o $@ $<
25
26 clean:
27 rm -f *.o *.lst *.map *.gb *~ *.rel *.cdb *.ihx *.lnk *.sym *.asm *.noi *.rst
28
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.