gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/examples/cross-platform/platformer_template/Makefile.targets
1
2 # Platform specific flags for compiling (only populate if they're both present)
3 ifneq ($(strip $(PORT)),)
4 ifneq ($(strip $(PLAT)),)
5 CFLAGS += -m$(PORT):$(PLAT)
6 endif
7 endif
8
9 # Called by the individual targets below to build a ROM
10 build-target: png2asset $(BINS)
11
12 clean-target:
13 rm -rf $(OBJDIR)
14 rm -rf $(DISTDIR)
15 rm -rf $(GENDIR)
16
17 gb-clean:
18 ${MAKE} clean-target EXT=gb
19 gb:
20 ${MAKE} build-target PORT=sm83 PLAT=gb EXT=gb SPRITES=gbapduck
21
22
23 gbc-clean:
24 ${MAKE} clean-target EXT=gbc
25 gbc:
26 ${MAKE} build-target PORT=sm83 PLAT=gb EXT=gbc SPRITES=gbc
27
28
29 pocket-clean:
30 ${MAKE} clean-target EXT=pocket
31 pocket:
32 ${MAKE} build-target PORT=sm83 PLAT=ap EXT=pocket SPRITES=gbapduck
33
34
35 megaduck-clean:
36 ${MAKE} clean-target EXT=duck
37 megaduck:
38 ${MAKE} build-target PORT=sm83 PLAT=duck EXT=duck SPRITES=gbapduck
39
40
41 sms-clean:
42 ${MAKE} clean-target EXT=sms
43 sms:
44 ${MAKE} build-target PORT=z80 PLAT=sms EXT=sms SPRITES=ggsms
45
46
47 gg-clean:
48 ${MAKE} clean-target EXT=gg
49 gg:
50 ${MAKE} build-target PORT=z80 PLAT=gg EXT=gg SPRITES=ggsms
51
52
53 nes-clean:
54 ${MAKE} clean-target EXT=nes
55 nes:
56 ${MAKE} build-target PORT=mos6502 PLAT=nes EXT=nes SPRITES=nes
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.