ncmdump/Makefile

23 lines
654 B
Makefile
Raw Normal View History

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:
2024-01-06 00:37:55 +08:00
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -std=c++17
2021-10-07 00:34:29 +08:00
strip ncmdump
macos-intel:
2024-01-06 00:37:55 +08:00
clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -std=c++17
strip ncmdump
macos-arm64:export CPATH=/opt/homebrew/include
macos-arm64:export LIBRARY_PATH=/opt/homebrew/lib
macos-arm64:
2024-01-06 00:37:55 +08:00
clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -std=c++17
2021-10-07 00:34:29 +08:00
strip ncmdump
2021-10-07 05:00:51 +08:00
win32:
2024-01-06 00:37:55 +08:00
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -Ltaglib/lib -Itaglib/include -static -O -municode -std=c++17
2023-06-03 04:49:52 +08:00
strip ncmdump.exe
clean:
rm -f ncmdump ncmdump.exe