ROBChain/kexploit/Makefile

32 lines
947 B
Makefile
Raw Normal View History

wiiuhaxx_common_path := ../wiiuhaxx_common/wiiu_browserhax_common.php
wiiuhaxx_common_cfg := wiiuhaxx_common_cfg.php
pymsc_asm_py := ../pymsc/asm.py
PYTHON := python3
ifeq (, $(shell which python3))
# if no python3 alias, fall back to `python` and hope it's py3
PYTHON := python
endif
all: clean exploit.mscsb
2019-01-18 21:09:44 +01:00
clean:
2019-01-18 22:06:49 +01:00
rm -f exploit.mscsb payload.s main.s
2019-01-18 21:09:44 +01:00
exploit.mscsb: $(pymsc_asm_py) payload.s Scripts main.s
$(PYTHON) ../pymsc/asm.py
2019-01-18 21:09:44 +01:00
payload.s: payload.bin
$(PYTHON) generate_payload.py
2019-01-18 21:09:44 +01:00
main.s: rop_setup.s $(wiiuhaxx_common_cfg) $(wiiuhaxx_common_path)
php generatepayload.php > main.s
2019-02-13 17:54:06 +01:00
$(pymsc_asm_py):
if [ -a $(pymsc_asm_py) ]; then $(error missing $(pymsc_asm_py) (git clone recursive)); fi;
$(wiiuhaxx_common_path):
if [ -a $(wiiuhaxx_common_path) ]; then $(error missing $(wiiuhaxx_common_path)); fi;
2019-01-18 22:06:49 +01:00
$(wiiuhaxx_common_cfg):
2019-02-13 17:54:06 +01:00
if [ -a $(wiiuhaxx_common_cfg) ]; then $(error missing $(wiiuhaxx_common_cfg)); fi;