-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.targets
67 lines (50 loc) · 1.25 KB
/
Makefile.targets
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Platform specific flags for compiling (only populate if they're both present)
ifneq ($(strip $(PORT)),)
ifneq ($(strip $(PLAT)),)
CFLAGS += -m$(PORT):$(PLAT)
endif
endif
ifeq ($(RELEASE), 1)
CFLAGS += -Wf--max-allocs-per-node50000 --opt-code-speed
else
CFLAGS += -debug
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} prepare build-target RELEASE=$(RELEASE) PORT=sm83 PLAT=gb EXT=gb
gb-run:
${MAKE} run PLAT=gb EXT=gb
gbc-clean:
${MAKE} clean-target EXT=gbc
gbc:
${MAKE} build-target PORT=sm83 PLAT=gb EXT=gbc
pocket-clean:
${MAKE} clean-target EXT=pocket
pocket:
${MAKE} build-target PORT=sm83 PLAT=ap EXT=pocket
megaduck-clean:
${MAKE} clean-target EXT=duck
megaduck:
${MAKE} build-target PORT=sm83 PLAT=duck EXT=duck
sms-clean:
${MAKE} clean-target EXT=sms
sms:
${MAKE} build-target PORT=z80 PLAT=sms EXT=sms
gg-clean:
${MAKE} clean-target EXT=gg
gg:
${MAKE} build-target PORT=z80 PLAT=gg EXT=gg
msxdos-clean:
${MAKE} clean-target EXT=com
msxdos:
${MAKE} build-target PORT=z80 PLAT=msxdos EXT=com
nes-clean:
${MAKE} clean-target EXT=nes
nes:
${MAKE} prepare build-target PORT=mos6502 PLAT=nes EXT=nes