forked from shinyquagsire23/SaltyNX
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
59 lines (47 loc) · 2.32 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
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro")
endif
TOPDIR ?= $(CURDIR)
all: sdcard_out/atmosphere/contents/0000000000534C56/exefs.nsp
libnx_min/nx/lib/libnx_min.a:
@cd libnx_min && make
libnx32_min/nx/lib/libnx_min.a:
@cd libnx32_min && make
saltysd_proc/saltysd_proc.nsp:
@cd saltysd_proc && make
saltysd_bootstrap/saltysd_bootstrap.elf: libnx_min/nx/lib/libnx_min.a
@cd saltysd_bootstrap && make
saltysd_bootstrap32/saltysd_bootstrap32.elf: libnx32_min/nx/lib/libnx_min.a
@cd saltysd_bootstrap32 && make --ignore-errors
saltysd_core/saltysd_core.elf: saltysd_bootstrap/saltysd_bootstrap.elf
@cd saltysd_core && make
saltysd_core32/saltysd_core32.elf: saltysd_bootstrap32/saltysd_bootstrap32.elf
@cd saltysd_core32 && make --ignore-errors
sdcard_out/atmosphere/contents/0000000000534C56/exefs.nsp: saltysd_core/saltysd_core.elf saltysd_core32/saltysd_core32.elf saltysd_proc/saltysd_proc.nsp
@mkdir -p sdcard_out/atmosphere/contents/0000000000534C56/flags
@cp $< $@
@touch sdcard_out/atmosphere/contents/0000000000534C56/flags/boot2.flag
@mkdir -p sdcard_out/SaltySD/flags/
@mkdir -p sdcard_out/SaltySD/patches/
@touch sdcard_out/SaltySD/flags/log.flag
@cp exceptions.txt sdcard_out/SaltySD/exceptions.txt
@cp toolbox.json sdcard_out/atmosphere/contents/0000000000534C56/toolbox.json
@cp saltysd_core32/saltysd_core32.elf sdcard_out/SaltySD/saltysd_core32.elf
@cp saltysd_core/saltysd_core.elf sdcard_out/SaltySD/saltysd_core.elf
@cp saltysd_bootstrap/saltysd_bootstrap.elf sdcard_out/SaltySD/saltysd_bootstrap.elf
@cp saltysd_bootstrap32/saltysd_bootstrap32_3k.elf sdcard_out/SaltySD/saltysd_bootstrap32_3k.elf
@cp saltysd_bootstrap32/saltysd_bootstrap32_5k.elf sdcard_out/SaltySD/saltysd_bootstrap32_5k.elf
@cp saltysd_proc/saltysd_proc.nsp sdcard_out/atmosphere/contents/0000000000534C56/exefs.nsp
clean:
@rm -f saltysd_proc/data/*
@rm -r -f sdcard_out
@cd libnx_min && make clean
@cd libnx32_min && make clean
@cd saltysd_core && make clean
@cd saltysd_core32 && make clean
@cd saltysd_bootstrap && make clean
@cd saltysd_bootstrap32 && make clean
@cd saltysd_proc && make clean