diff options
Diffstat (limited to 'vendor/github.com/dexon-foundation/bls/mk.bat')
-rw-r--r-- | vendor/github.com/dexon-foundation/bls/mk.bat | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/dexon-foundation/bls/mk.bat b/vendor/github.com/dexon-foundation/bls/mk.bat new file mode 100644 index 000000000..c5dfac91a --- /dev/null +++ b/vendor/github.com/dexon-foundation/bls/mk.bat @@ -0,0 +1,19 @@ +@echo off +if "%1"=="-s" ( + echo use static lib + set CFLAGS=%CFLAGS% /DMCLBN_NO_AUTOLINK /DBLS_DONT_EXPORT +) else if "%1"=="-d" ( + echo use dynamic lib +) else ( + echo "mk (-s|-d) <source file>" + goto exit +) +set SRC=%2 +set EXE=%SRC:.cpp=.exe% +set EXE=%EXE:.c=.exe% +set EXE=%EXE:test\=bin\% +set EXE=%EXE:sample\=bin\% +echo cl %CFLAGS% %2 /Fe:%EXE% /link %LDFLAGS% +cl %CFLAGS% %2 /Fe:%EXE% /link %LDFLAGS% + +:exit |