ncmdump/Makefile

24 lines
730 B
Makefile
Raw Permalink Normal View History

2023-06-03 04:49:52 +08:00
default:
2024-01-06 10:25:57 +08:00
@echo "Please choose a platform: linux, macos-intel, macos-arm64, win32"
@echo "Or use 'make clean' to clean up the build files"
2023-06-03 04:49:52 +08:00
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