代码拉取完成,页面将自动刷新
同步操作将从 zhaolaiwang1/sm2-psi 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
BIN=bin
SRC=src
# compiler settings
CC=g++
#COMPILER_OPTIONS=-O2
COMPILER_OPTIONS=-g3 -O2 #-shared -fPIC #-mavx -maes -mpclmul -DRDTSC -DTEST=AES128
DEBUG_OPTIONS=-g3 -ggdb #-Wall -Wextra
BATCH=
ARCHITECTURE = $(shell uname -m)
ifeq (${ARCHITECTURE},x86_64)
GNU_LIB_PATH:=x86_64
else
GNU_LIB_PATH:=i386
endif
INCLUDE=-I.. -I/usr/include/glib-2.0/ -I/usr/lib/${GNU_LIB_PATH}-linux-gnu/glib-2.0/include `pkg-config --cflags glib-2.0`
LIBRARIES= -lpthread -L /usr/lib -lippcp -lglib-2.0 `pkg-config --libs glib-2.0`
CFLAGS=
# all source files and corresponding object files
SOURCES_CORE := $(shell find ${CORE} -type f -name '*.cpp' -a -not -path '*/mains/*')
OBJECTS_CORE := $(SOURCES_CORE:.cpp=.o)
# directory for PSI related sources
SOURCES_UTIL=${SRC}/util/*.cpp
OBJECTS_UTIL=${SRC}/util/*.o
SOURCE_BIGN=${SRC}/util/bigNum/*.cpp
OBJECTS_BIGN=${SRC}/util/bigNum/*.o
SOURCE_CRYPT=${SRC}/util/gmCrypto/*.cpp
OBJECTS_CRYPT=${SRC}/util/gmCrypto/*.o
# public-key-based PSI
SOURCES_DHPSI=${SRC}/ecdh-psi/*.cpp
OBJECTS_DHPSI=${SRC}/ecdh-psi/*.o
all: core demo lib
@echo "make all done."
core: ${OBJECTS_CORE}
%.o:%.cpp %.h
${CC} $< ${COMPILER_OPTIONS} ${DEBUG_OPTIONS} -c ${INCLUDE} ${LIBRARIES} ${CFLAGS} ${BATCH} -o $@
demo:
${CC} -o psi.out ${SRC}/mains/psi_demo.cpp ${OBJECTS_DHPSI} ${OBJECTS_UTIL} ${CFLAGS} ${DEBUG_OPTIONS} ${LIBRARIES} ${OBJECTS_BIGN} ${OBJECTS_CRYPT} ${INCLUDE} ${COMPILER_OPTIONS}
lib:
#${CC} -o libpsi.so ${OBJECTS_DHPSI} ${OBJECTS_UTIL} ${CFLAGS} ${DEBUG_OPTIONS} ${LIBRARIES} ${OBJECTS_BIGN} ${OBJECTS_CRYPT} ${INCLUDE} ${COMPILER_OPTIONS}
# only clean example objects, test object and binaries
clean:
rm -f *.so *.a ${OBJECTS_EXAMPLE} ${OBJECTS_TEST} *.exe ${OBJECTS_DHPSI} ${OBJECTS_UTIL} ${OBJECTS_CRYPT} ${OBJECTS_BIGN}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。