-
Notifications
You must be signed in to change notification settings - Fork 72
/
Makefile
84 lines (73 loc) · 3.48 KB
/
Makefile
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# -----------------------------------------------------------------------------
# netplay.json and playback.json also build versions of GALJ01r2.ini for NTSC-J
NETPLAY := netplay.json
PLAYBACK := playback.json
NETPLAY_INI := Output/Netplay/GALE01r2.ini
PLAYBACK_INI := Output/Playback/GALE01r2.ini
ONLINE_INI := Output/Online/online.txt
# GCT output for Nintendont
# to add a new json just create a new var with the json name
# and then add it to the CONSOLE list
CONSOLE_CORE := console_core.json
CONSOLE_CORE_PORTB := core
CONSOLE_CORE_PORTA := core_porta
CONSOLE_UCF := console_UCF.json
CONSOLE_UCF_STEALTH := console_UCF_stealth.json
CONSOLE_UCF_084 := console_UCF_084.json
CONSOLE_UCF_084_STEALTH := console_UCF_084_stealth.json
CONSOLE_MODS_STEALTH := console_mods_stealth.json
CONSOLE_MODS_TOURNAMENT := console_mods_tournament.json
CONSOLE_MODS_FRIENDLIES := console_mods_friendlies.json
CONSOLE_PAL := console_PAL.json
CONSOLE_FROZEN_PS := console_stages_stadium.json
CONSOLE_FROZEN_ALL := console_stages_all.json
CONSOLE_GAMEPLAY_LGL := console_gameplay_lgl.json
CONSOLE_GAMEPLAY_WOBBLE := console_gameplay_wobbling.json
CONSOLE_GAMEPLAY_BOTH := console_gameplay_both.json
CONSOLE_LAG_PD := console_lag_pd.json
CONSOLE_LAG_PDHALFVB := console_lag_pdhalfvb.json
CONSOLE_SCREEN_WIDE := console_screen_wide.json
CONSOLE_SCREEN_SHUTTERS := console_screen_wide_shutters.json
CONSOLE_SAFETY := console_safety.json
CONSOLE_CRASH_OUTPUT := console_crash_output.json
CONSOLE := $(CONSOLE_UCF) $(CONSOLE_UCF_STEALTH) $(CONSOLE_UCF_084) \
$(CONSOLE_UCF_084_STEALTH) $(CONSOLE_MODS_STEALTH) $(CONSOLE_MODS_TOURNAMENT) $(CONSOLE_MODS_FRIENDLIES) \
$(CONSOLE_PAL) $(CONSOLE_FROZEN_PS) $(CONSOLE_FROZEN_ALL) $(CONSOLE_GAMEPLAY_LGL) \
$(CONSOLE_GAMEPLAY_WOBBLE) $(CONSOLE_GAMEPLAY_BOTH) $(CONSOLE_LAG_PD) $(CONSOLE_LAG_PDHALFVB) \
$(CONSOLE_SCREEN_WIDE) $(CONSOLE_SCREEN_SHUTTERS) $(CONSOLE_SAFETY) ${CONSOLE_CRASH_OUTPUT}
GECKO_INJECTIONS := $(NETPLAY) $(CONSOLE_CORE) $(CONSOLE)
INI_TARGETS := $(ONLINE_INI) $(NETPLAY_INI) $(PLAYBACK_INI) \
$(CONSOLE_CORE_PORTA) $(CONSOLE_CORE_PORTB) $(CONSOLE)
.PHONY: $(INI_TARGETS) clean
all: $(INI_TARGETS)
ini: $(INI_TARGETS)
# -----------------------------------------------------------------------------
# Targets for binaries to-be-included in the Slippi Nintendont tree
# PORT B is the general use case, PORT A is for debugging
$(CONSOLE_CORE_PORTB): console_core.json
gecko build -batched -defsym "STG_EXIIndex=1" -o "Output/Console/g_core.bin" -c $<
@echo ""
$(CONSOLE_CORE_PORTA): console_core.json
gecko build -batched -defsym "STG_EXIIndex=0" -o "Output/Console/g_core_porta.bin" -c $<
@echo ""
$(CONSOLE):
gecko build -batched -c $@
@echo ""
# -----------------------------------------------------------------------------
# Targets for Dolphin's {netplay,playback} .ini configuration files
$(NETPLAY_INI): $(NETPLAY)
@gecko build -batched -defsym "STG_EXIIndex=1" -c $<
@echo ""
$(PLAYBACK_INI): $(PLAYBACK)
@gecko build -batched -defsym "STG_EXIIndex=1" -c $<
@echo ""
# -----------------------------------------------------------------------------
# Target for injection lists
list:
for json in $(GECKO_INJECTIONS); do\
gecko list -i $${json} -o Output/InjectionLists/list_$${json}; \
done
@echo ""
# -----------------------------------------------------------------------------
clean:
rm -f $(INI_TARGETS)