forked from spacemeowx2/ldn_mitm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (21 loc) · 882 Bytes
/
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
KIPS := ldn_mitm
NROS := ldnmitm_config
SUBFOLDERS := Atmosphere-libs/libstratosphere $(KIPS) $(NROS)
TOPTARGETS := all clean
OUTDIR := out
SD_ROOT := $(OUTDIR)/sd
NRO_DIR := $(SD_ROOT)/switch/ldnmitm_config
TITLE_DIR := $(SD_ROOT)/atmosphere/contents/4200000000000010
$(TOPTARGETS): PACK
$(SUBFOLDERS):
$(MAKE) -C $@ $(MAKECMDGOALS)
$(KIPS): Atmosphere-libs/libstratosphere
#---------------------------------------------------------------------------------
PACK: $(SUBFOLDERS)
@[ -d $(NRO_DIR) ] || mkdir -p $(NRO_DIR)
@[ -d $(TITLE_DIR)/flags ] || mkdir -p $(TITLE_DIR)/flags
@ cp ldnmitm_config/ldnmitm_config.nro $(NRO_DIR)/ldnmitm_config.nro
@ cp ldn_mitm/ldn_mitm.nsp $(TITLE_DIR)/exefs.nsp
@ touch $(TITLE_DIR)/flags/boot2.flag
#---------------------------------------------------------------------------------
.PHONY: $(TOPTARGETS) $(SUBFOLDERS)