gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/examples/gb/sound/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 -Wl-j
8
9 BINS = sound.gb sound.duck
10 # BINS = sound.gb sound.duck sound.pocket
11
12 # GBDK_DEBUG = ON
13 ifdef GBDK_DEBUG
14 LCCFLAGS += -debug -v
15 endif
16
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 # Compile and link single file in one pass
25 %.gb: %.c
26 $(LCC) $(LCCFLAGS) -msm83:gb -o $@ $<
27
28 # Build megaduck version with -m port:plat flag
29 %.duck: %.c
30 $(LCC) $(LCCFLAGS) -msm83:duck -o $@ $<
31
32 # Build analogue pocket version with -m port:plat flag
33 %.pocket: %.c
34 $(LCC) $(LCCFLAGS) -msm83:ap -o $@ $<
35
36 clean:
37 rm -f *.o *.lst *.map *.duck *.pocket *.gb *~ *.rel *.cdb *.ihx *.lnk *.sym *.asm *.noi *.rst
38
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.