mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-22 04:13:07 +00:00
32 lines
879 B
Makefile
32 lines
879 B
Makefile
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)
|