2020-07-15 18:59:16 +02:00
|
|
|
PROJECT_NAME := MissionControl
|
2020-09-08 17:07:59 +02:00
|
|
|
BLUETOOTH_MITM_TID := 010000000000bd00
|
2020-04-17 11:50:30 +02:00
|
|
|
|
2020-09-08 17:07:59 +02:00
|
|
|
TARGETS := bluetooth-mitm
|
2020-04-17 11:50:30 +02:00
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
2020-09-08 17:07:59 +02:00
|
|
|
bluetooth-mitm:
|
2020-04-17 11:50:30 +02:00
|
|
|
$(MAKE) -C $@
|
|
|
|
|
|
|
|
clean:
|
2020-07-25 10:59:38 +02:00
|
|
|
$(MAKE) -C Atmosphere/libraries clean
|
2020-09-08 17:07:59 +02:00
|
|
|
$(MAKE) -C bluetooth-mitm clean
|
2020-04-17 11:50:30 +02:00
|
|
|
rm -rf dist
|
|
|
|
|
2020-07-15 18:59:16 +02:00
|
|
|
dist: all
|
2020-04-17 11:50:30 +02:00
|
|
|
rm -rf dist
|
2020-07-15 18:59:16 +02:00
|
|
|
|
2020-09-08 17:07:59 +02:00
|
|
|
mkdir -p dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)
|
|
|
|
cp bluetooth-mitm/bluetooth-mitm.nsp dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/exefs.nsp
|
2020-09-11 20:19:05 +02:00
|
|
|
echo "btdrv" >> dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/mitm.lst
|
|
|
|
echo "btm" >> dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/mitm.lst
|
2020-09-07 21:46:35 +02:00
|
|
|
|
2020-09-08 17:07:59 +02:00
|
|
|
mkdir -p dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags
|
|
|
|
touch dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags/boot2.flag
|
2020-07-15 18:59:16 +02:00
|
|
|
|
|
|
|
cp -r exefs_patches dist/atmosphere/
|
2020-07-25 10:59:38 +02:00
|
|
|
|
2020-07-15 18:59:16 +02:00
|
|
|
cd dist; zip -r $(PROJECT_NAME).zip ./*; cd ../;
|
|
|
|
|
|
|
|
.PHONY: all clean dist $(TARGETS)
|