aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-12-10 09:06:26 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-12-10 17:32:34 +0800
commit08c1906ecf95ea18663593df94aadec538dbb715 (patch)
tree6e81840d080ae8635ae42ee8dff7445f2edf17c4
parenta12b591baf15ca71f868fe68eb5f15830e93247a (diff)
downloaddexon-bls-08c1906ecf95ea18663593df94aadec538dbb715.tar
dexon-bls-08c1906ecf95ea18663593df94aadec538dbb715.tar.gz
dexon-bls-08c1906ecf95ea18663593df94aadec538dbb715.tar.bz2
dexon-bls-08c1906ecf95ea18663593df94aadec538dbb715.tar.lz
dexon-bls-08c1906ecf95ea18663593df94aadec538dbb715.tar.xz
dexon-bls-08c1906ecf95ea18663593df94aadec538dbb715.tar.zst
dexon-bls-08c1906ecf95ea18663593df94aadec538dbb715.zip
fix include path
-rw-r--r--Makefile2
-rwxr-xr-xsetvar.bat2
-rw-r--r--src/bls_c_impl.hpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9c2b208..8b4aa3e 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ SRC_SRC=bls_c256.cpp bls_c384.cpp bls_c384_256.cpp
TEST_SRC=bls256_test.cpp bls384_test.cpp bls384_256_test.cpp bls_c256_test.cpp bls_c384_test.cpp bls_c384_256_test.cpp
SAMPLE_SRC=bls256_smpl.cpp bls384_smpl.cpp
-CFLAGS+=-I$(MCL_DIR)/include -I./
+CFLAGS+=-I$(MCL_DIR)/include -I./ -I$(MCL_DIR)/src
ifneq ($(MCL_MAX_BIT_SIZE),)
CFLAGS+=-DMCL_MAX_BIT_SIZE=$(MCL_MAX_BIT_SIZE)
endif
diff --git a/setvar.bat b/setvar.bat
index b45af24..5f1e75b 100755
--- a/setvar.bat
+++ b/setvar.bat
@@ -1,6 +1,6 @@
@echo off
call ..\mcl\setvar.bat
-set CFLAGS=%CFLAGS% /I ..\mcl\include /I .\
+set CFLAGS=%CFLAGS% /I ..\mcl\include /I .\ /I../mcl/src
set LDFLAGS=%LDFLAGS% /LIBPATH:..\mcl\lib
echo CFLAGS=%CFLAGS%
echo LDFLAGS=%LDFLAGS% \ No newline at end of file
diff --git a/src/bls_c_impl.hpp b/src/bls_c_impl.hpp
index 91ecad8..dc4c998 100644
--- a/src/bls_c_impl.hpp
+++ b/src/bls_c_impl.hpp
@@ -4,7 +4,7 @@
#include <bls/bls.h>
#if 1
-#include "../mcl/src/bn_c_impl.hpp"
+#include "bn_c_impl.hpp"
#else
#if MCLBN_FP_UNIT_SIZE == 4 && MCLBN_FR_UNIT_SIZE == 4
#include <mcl/bn256.hpp>