MissionControl/Makefile

32 lines
824 B
Makefile
Raw Normal View History

2020-07-15 16:59:16 +00:00
PROJECT_NAME := MissionControl
2020-09-08 15:07:59 +00:00
BLUETOOTH_MITM_TID := 010000000000bd00
2020-04-17 09:50:30 +00:00
2020-09-08 15:07:59 +00:00
TARGETS := bluetooth-mitm
2020-04-17 09:50:30 +00:00
all: $(TARGETS)
2020-09-08 15:07:59 +00:00
bluetooth-mitm:
2020-04-17 09:50:30 +00:00
$(MAKE) -C $@
clean:
$(MAKE) -C Atmosphere/libraries clean
2020-09-08 15:07:59 +00:00
$(MAKE) -C bluetooth-mitm clean
2020-04-17 09:50:30 +00:00
rm -rf dist
2020-07-15 16:59:16 +00:00
dist: all
2020-04-17 09:50:30 +00:00
rm -rf dist
2020-07-15 16:59:16 +00:00
2020-09-08 15:07:59 +00:00
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
2020-09-08 15:07:59 +00:00
mkdir -p dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags
touch dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags/boot2.flag
2020-07-15 16:59:16 +00:00
cp -r exefs_patches dist/atmosphere/
2020-07-15 16:59:16 +00:00
cd dist; zip -r $(PROJECT_NAME).zip ./*; cd ../;
.PHONY: all clean dist $(TARGETS)