|
|
|
@ -1,5 +1,10 @@ |
|
|
|
|
@echo off |
|
|
|
|
call setvar.bat |
|
|
|
|
if "%1"=="dll" ( |
|
|
|
|
echo make dynamic library DLL |
|
|
|
|
) else ( |
|
|
|
|
echo make static library LIB |
|
|
|
|
) |
|
|
|
|
rem nasm -f win64 -D_WIN64 src\asm\low_x86-64.asm |
|
|
|
|
rem lib /OUT:lib\mcl.lib /nodefaultlib fp.obj src\asm\low_x86-64.obj |
|
|
|
|
|
|
|
|
@ -8,17 +13,22 @@ echo cl /c %CFLAGS% src\fp.cpp /Foobj\fp.obj |
|
|
|
|
echo lib /nologo /OUT:lib\mcl.lib /nodefaultlib obj\fp.obj |
|
|
|
|
lib /nologo /OUT:lib\mcl.lib /nodefaultlib obj\fp.obj |
|
|
|
|
|
|
|
|
|
echo cl /c %CFLAGS% src\bn_c256.cpp /Foobj\bn_c256.obj |
|
|
|
|
cl /c %CFLAGS% src\bn_c256.cpp /Foobj\bn_c256.obj |
|
|
|
|
echo link /nologo /DLL /OUT:bin\mclbn256.dll obj\bn_c256.obj obj\fp.obj %LDFLAGS% /implib:lib\mclbn256.lib |
|
|
|
|
link /nologo /DLL /OUT:bin\mclbn256.dll obj\bn_c256.obj obj\fp.obj %LDFLAGS% /implib:lib\mclbn256.lib |
|
|
|
|
if "%1"=="dll" ( |
|
|
|
|
echo cl /c %CFLAGS% src\she_c256.cpp /Foobj\she_c256.obj |
|
|
|
|
cl /c %CFLAGS% src\she_c256.cpp /Foobj\she_c256.obj /DMCLBN_NO_AUTOLINK |
|
|
|
|
echo link /nologo /DLL /OUT:bin\mclbn256.dll obj\she_c256.obj obj\fp.obj %LDFLAGS% /implib:lib\mclshe256.lib |
|
|
|
|
link /nologo /DLL /OUT:bin\mclbn256.dll obj\she_c256.obj obj\fp.obj %LDFLAGS% /implib:lib\mclshe256.lib |
|
|
|
|
|
|
|
|
|
echo cl /c %CFLAGS% src\bn_c384.cpp /Foobj\bn_c384.obj |
|
|
|
|
cl /c %CFLAGS% src\bn_c384.cpp /Foobj\bn_c384.obj |
|
|
|
|
cl /c %CFLAGS% src\bn_c384.cpp /Foobj\bn_c384.obj /DMCLBN_NO_AUTOLINK |
|
|
|
|
echo link /nologo /DLL /OUT:bin\mclbn384.dll obj\bn_c384.obj obj\fp.obj %LDFLAGS% /implib:lib\mclbn384.lib |
|
|
|
|
link /nologo /DLL /OUT:bin\mclbn384.dll obj\bn_c384.obj obj\fp.obj %LDFLAGS% /implib:lib\mclbn384.lib |
|
|
|
|
) else ( |
|
|
|
|
echo cl /c %CFLAGS% src\bn_c256.cpp /Foobj\bn_c256.obj |
|
|
|
|
cl /c %CFLAGS% src\bn_c256.cpp /Foobj\bn_c256.obj |
|
|
|
|
lib /nologo /OUT:lib\mclbn256.lib /nodefaultlib obj\bn_c256.obj lib\mcl.lib |
|
|
|
|
|
|
|
|
|
echo cl /c %CFLAGS% src\she_c256.cpp /Foobj\she_c256.obj |
|
|
|
|
cl /c %CFLAGS% src\she_c256.cpp /Foobj\she_c256.obj |
|
|
|
|
echo link /nologo /DLL /OUT:bin\mclbn256.dll obj\she_c256.obj obj\fp.obj %LDFLAGS% /implib:lib\mclshe256.lib |
|
|
|
|
link /nologo /DLL /OUT:bin\mclbn256.dll obj\she_c256.obj obj\fp.obj %LDFLAGS% /implib:lib\mclshe256.lib |
|
|
|
|
echo cl /c %CFLAGS% src\bn_c384.cpp /Foobj\bn_c384.obj |
|
|
|
|
cl /c %CFLAGS% src\bn_c384.cpp /Foobj\bn_c384.obj |
|
|
|
|
lib /nologo /OUT:lib\mclbn384.lib /nodefaultlib obj\bn_c384.obj lib\mcl.lib |
|
|
|
|
) |
|
|
|
|