2023-06-03 04:49:52 +08:00
|
|
|
default:
|
|
|
|
@echo "Please choose a platform: linux, macos, win32"
|
|
|
|
|
2021-10-07 00:34:29 +08:00
|
|
|
linux:
|
|
|
|
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag
|
|
|
|
strip ncmdump
|
|
|
|
|
2023-10-04 17:02:06 +08:00
|
|
|
macos-intel:
|
|
|
|
clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag
|
|
|
|
strip ncmdump
|
|
|
|
|
|
|
|
macos-arm64:export CPATH=/opt/homebrew/include
|
|
|
|
macos-arm64:export LIBRARY_PATH=/opt/homebrew/lib
|
|
|
|
macos-arm64:
|
2021-10-07 05:00:51 +08:00
|
|
|
clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag
|
2021-10-07 00:34:29 +08:00
|
|
|
strip ncmdump
|
2021-10-07 05:00:51 +08:00
|
|
|
|
|
|
|
win32:
|
|
|
|
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -Ltaglib/lib -Itaglib/include -static -O
|
2023-06-03 04:49:52 +08:00
|
|
|
strip ncmdump.exe
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ncmdump ncmdump.exe
|