dev
MITSUNARI Shigeo 9 years ago
parent bc354e6ddb
commit b1849c8fd1
  1. 2
      common.mk
  2. 7
      java/Makefile

@ -54,5 +54,5 @@ CFLAGS+=$(CFLAGS_OPT)
endif
LDFLAGS+=-lgmp -lgmpxx -lcrypto $(BIT_OPT)
CFLAGS += -DMCL_USE_LLVM
CFLAGS += -DMCL_USE_LLVM -fPIC

@ -7,9 +7,10 @@ else
#JAVA_INC=-I/usr/lib/jvm/java-7-openjdk-amd64/include
LIB_SUF=so
CFLAGS+=-z noexecstack
LIB+=-lrt
LDFLAGS+=-lrt
endif
CFLAGS+= -shared -fPIC $(JAVA_INC) -Wno-strict-aliasing
CFLAGS+= -shared $(JAVA_INC) -I ../include -I ../../xbyak -I ../../cybozulib/include -Wno-strict-aliasing
LDFLAGS+=../lib/libmcl.a
PACKAGE_NAME=com.herumi.mcl
PACKAGE_DIR=$(subst .,/,$(PACKAGE_NAME))
@ -22,7 +23,7 @@ mcl_if_wrap.cxx: mcl_if.i mcl_if.hpp
swig -java -package $(PACKAGE_NAME) -outdir $(PACKAGE_DIR) -c++ -Wall mcl_if.i
$(TARGET): mcl_if_wrap.cxx
$(PRE)$(CXX) $< -o $@ $(CFLAGS) $(LDFLAGS) ../src/fp.cpp ../src/$(CPU).s -I ../include -I ../../xbyak -I ../../cybozulib/include
$(PRE)$(CXX) $< -o $@ $(CFLAGS) $(LDFLAGS) ../lib/libmcl.a
%.class: %.java

Loading…
Cancel
Save