aboutsummaryrefslogtreecommitdiffstats
path: root/mkdll.bat
diff options
context:
space:
mode:
Diffstat (limited to 'mkdll.bat')
-rwxr-xr-xmkdll.bat12
1 files changed, 8 insertions, 4 deletions
diff --git a/mkdll.bat b/mkdll.bat
index 73c50ba..17e934f 100755
--- a/mkdll.bat
+++ b/mkdll.bat
@@ -1,4 +1,8 @@
-@echo off
-call setvar.bat
-echo make bls256.dll
-cl /LD src\bls_c.cpp ..\mcl\src\fp.cpp -Iinclude -I../mcl -I../xbyak -I../mcl/include -I../cybozulib/include -I../cybozulib_ext/include /MT /W4 /DMCLBN_FP_UNIT_SIZE=4 /Ox /EHsc /DNOMINMAX /DNDEBUG /DMCL_NO_AUTOLINK /link /out:bin\bls256.dll /implib:lib\bls256.lib /LIBPATH:..\cybozulib_ext\lib
+rem @echo off
+
+call setvar.bat dll
+echo make bls384.dll
+cl /c %CFLAGS% /DBLS_NO_AUTOLINK /Foobj/bls_c.obj src/bls_c.cpp
+cl /c %CFLAGS% /DBLS_NO_AUTOLINK /Foobj/fp.obj ../mcl/src/fp.cpp
+lib /OUT:lib/bls384.lib /nodefaultlib obj/bls_c.obj obj/fp.obj %LDFLAGS%
+cl /LD /MT obj/bls_c.obj obj/fp.obj %CFLAGS% /link /out:bin/bls384.dll %LDFLAGS%