aboutsummaryrefslogtreecommitdiffstats
path: root/setvar.bat
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-08-13 14:14:02 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-08-13 14:14:02 +0800
commit6f89684faa0ee752e901053f7508eb05d158b2eb (patch)
tree05f7e237bc524f30d323df74dc343065382f0ac2 /setvar.bat
parentf25b779d48f3682a03a001f8ce0386eebd43de68 (diff)
downloaddexon-bls-6f89684faa0ee752e901053f7508eb05d158b2eb.tar
dexon-bls-6f89684faa0ee752e901053f7508eb05d158b2eb.tar.gz
dexon-bls-6f89684faa0ee752e901053f7508eb05d158b2eb.tar.bz2
dexon-bls-6f89684faa0ee752e901053f7508eb05d158b2eb.tar.lz
dexon-bls-6f89684faa0ee752e901053f7508eb05d158b2eb.tar.xz
dexon-bls-6f89684faa0ee752e901053f7508eb05d158b2eb.tar.zst
dexon-bls-6f89684faa0ee752e901053f7508eb05d158b2eb.zip
fix bat files for make windows binary
Diffstat (limited to 'setvar.bat')
-rwxr-xr-xsetvar.bat27
1 files changed, 5 insertions, 22 deletions
diff --git a/setvar.bat b/setvar.bat
index 4a3ed3a..4c1fbf2 100755
--- a/setvar.bat
+++ b/setvar.bat
@@ -1,24 +1,7 @@
@echo off
-set MODE=
-if /i "%1"=="lib" (
- set MODE=lib
-)
-if /i "%1"=="dll" (
- set MODE=dll
-)
-if "%MODE%"=="" (
- echo error
- echo setvar lib or dll
- goto exit
-)
+call ..\mcl\setvar.bat
set MCLBN_FP_UNIT_SIZE=6
-set CFLAGS=/MT /DNOMINMAX /Ox /DNDEBUG /W4 /Zi /EHsc /nologo
-set CFLAGS=%CFLAGS% -I ./include -I../cybozulib/include -I../cybozulib_ext/include -I../mcl/include/ -I../mcl/src -I./ -I../xbyak/
-set CFLAGS=%CFLAGS% /DMCLBN_FP_UNIT_SIZE=%MCLBN_FP_UNIT_SIZE% /DMCL_NO_AUTOLINK /DMCLBN_NO_AUTOLINK
-set LDFLAGS=/LIBPATH:../cybozulib_ext/lib /LIBPATH:./lib
-
-if %MODE%==lib (
- set CFLAGS=%CFLAGS% /DBLS_DONT_EXPORT
-)
-
-:exit
+set CFLAGS=%CFLAGS% /DMCLBN_FP_UNIT_SIZE=%MCLBN_FP_UNIT_SIZE% /I ..\mcl\include
+set LDFLAGS=%LDFLAGS% /LIBPATH:..\mcl\lib
+echo CFLAGS=%CFLAGS%
+echo LDFLAGS=%LDFLAGS% \ No newline at end of file