-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile.targets
More file actions
42 lines (31 loc) · 838 Bytes
/
Makefile.targets
File metadata and controls
42 lines (31 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Platform specific flags for compiling (only populate if they're both present)
ifneq ($(strip $(PORT)),)
ifneq ($(strip $(PLAT)),)
CFLAGS += -m$(PORT):$(PLAT)
endif
endif
# Called by the individual targets below to build a ROM
build-target: $(BINS)
clean-target:
rm -rf $(OBJDIR)
rm -rf $(BINDIR)
gb-clean:
${MAKE} clean-target EXT=gb
gb:
${MAKE} build-target PORT=$(GBCPU) PLAT=gb EXT=gb TYP=DMG
gbc-clean:
${MAKE} clean-target EXT=gbc
gbc:
${MAKE} build-target PORT=$(GBCPU) PLAT=gb EXT=gbc TYP=CGB
pocket-clean:
${MAKE} clean-target EXT=pocket
pocket:
${MAKE} build-target PORT=$(GBCPU) PLAT=ap EXT=pocket TYP=DMG
sms-clean:
${MAKE} clean-target EXT=sms
sms:
${MAKE} build-target PORT=z80 PLAT=sms EXT=sms TYP=SEGA
gg-clean:
${MAKE} clean-target EXT=gg
gg:
${MAKE} build-target PORT=z80 PLAT=gg EXT=gg TYP=SEGA