aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/github.com/dexon-foundation/bls/mk.bat
blob: c5dfac91a287841d1f098cead470b8f549b4bf6f (plain) (tree)


















                                                           
@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