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: linux:
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag
strip ncmdump strip ncmdump
@ -9,3 +12,6 @@ macos:
win32: win32:
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -Ltaglib/lib -Itaglib/include -static -O 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