feat: add default and clean target

This commit is contained in:
TaurusXin 2023-06-02 21:49:52 +01:00
parent 37bbc82ee0
commit b7c0a0fba8
1 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,6 @@
default:
@echo "Please choose a platform: linux, macos, win32"
linux:
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag
strip ncmdump
@ -8,4 +11,7 @@ macos:
win32:
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -Ltaglib/lib -Itaglib/include -static -O
strip ncmdump.exe
strip ncmdump.exe
clean:
rm -f ncmdump ncmdump.exe