a portable and fast pairing-based cryptography library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
mcl/mk.bat

20 lines
412 B

@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