MissionControl/Makefile

31 lines
702 B
Makefile
Raw Normal View History

2020-07-15 16:59:16 +00:00
PROJECT_NAME := MissionControl
BTDRVMITM_TID := 010000000000bd00
2020-04-17 09:50:30 +00:00
TARGETS := btdrv-mitm
2020-04-17 09:50:30 +00:00
all: $(TARGETS)
2020-07-15 16:59:16 +00:00
btdrv-mitm:
2020-04-17 09:50:30 +00:00
$(MAKE) -C $@
clean:
$(MAKE) -C Atmosphere/libraries clean
2020-07-15 16:59:16 +00:00
$(MAKE) -C btdrv-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
mkdir -p dist/atmosphere/contents/$(BTDRVMITM_TID)
cp btdrv-mitm/btdrv-mitm.nsp dist/atmosphere/contents/$(BTDRVMITM_TID)/exefs.nsp
echo "btdrv" > dist/atmosphere/contents/$(BTDRVMITM_TID)/mitm.lst
mkdir -p dist/atmosphere/contents/$(BTDRVMITM_TID)/flags
touch dist/atmosphere/contents/$(BTDRVMITM_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)