forked from ndeadly/MissionControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (21 loc) · 879 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
30
31
32
PROJECT_NAME := MissionControl
BLUETOOTH_MITM_TID := 010000000000bd00
TARGETS := bluetooth-mitm
all: $(TARGETS)
bluetooth-mitm:
$(MAKE) -C $@
clean:
$(MAKE) -C bluetooth-mitm clean
rm -rf dist
dist: all
rm -rf dist
mkdir -p dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)
cp bluetooth-mitm/bluetooth-mitm.nsp dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/exefs.nsp
echo "btdrv" >> dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/mitm.lst
echo "btm" >> dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/mitm.lst
mkdir -p dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags
touch dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags/boot2.flag
cp bluetooth-mitm/toolbox.json dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/toolbox.json
cp -r exefs_patches dist/atmosphere/
cd dist; zip -r $(PROJECT_NAME).zip ./*; cd ../;
.PHONY: all clean dist $(TARGETS)