diff options
Diffstat (limited to 'vendor/github.com/tangerine-network/mcl/mk.bat')
-rw-r--r-- | vendor/github.com/tangerine-network/mcl/mk.bat | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/github.com/tangerine-network/mcl/mk.bat b/vendor/github.com/tangerine-network/mcl/mk.bat new file mode 100644 index 000000000..19eb84197 --- /dev/null +++ b/vendor/github.com/tangerine-network/mcl/mk.bat @@ -0,0 +1,20 @@ +@echo off +call setvar.bat +if "%1"=="-s" ( + echo use static lib + set CFLAGS=%CFLAGS% /DMCLBN_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 |