Score
0
Watch 7 Star 22 Fork 5

huazhichao / HCloudC++MulanPSL-1.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
HCloud是一个分布式可信云际计算平台。 HCloud致力于跨云环境下的可信数据融合。目前各云平台上储存了来自不同个人、企业用户的大量数据。由于安全、合规等不同问题,这些数据难以进行融合使用,极大的限制了数据所能够产生的价值。本项目利用密码学、TEE等技术,提供了一个跨云的可信计算环境,来自多个云平台的数据能够在可信环境中进行处理,从而获得数据融合之后的结果。 spread retract

Clone or download
Makefile 1.54 KB
Copy Edit Web IDE Raw Blame History
SGX_SDK ?= /opt/intel/sgxsdk
#OPENSSL_HOME ?= /opt/openssl/1.1.0i/
TEEX_SSL_HOME ?= ./deps/TEEX-SSL
PUBLIC_CHAIN_SDK_HOME ?= ./deps/PublicChainSDK
CC := gcc
CXX := g++
AR := ar
C_FLAGS := -g -Wall -I./include -I$(SGX_SDK)/include -I$(TEEX_SSL_HOME)/include -I$(PUBLIC_CHAIN_SDK_HOME)/include
#C_FLAGS += -fsanitize=address
ifneq ($(OPENSSL_HOME), )
C_FLAGS += -I$(OPENSSL_HOME)/include
endif
CPP_FLAGS := $(C_FLAGS) -std=c++11
LINK_FLAGS := -L./lib -L$(TEEX_SSL_HOME)/lib -L$(PUBLIC_CHAIN_SDK_HOME)/lib -lteex_ssl -lcurl -lpublicchain -lethrpc -lcurl -lcjson -luuid
#LINK_FLAGS += -fsanitize=address
ifneq ($(OPENSSL_HOME), )
LINK_FLAGS += -L$(OPENSSL_HOME)/lib -lcrypto
else
LINK_FLAGS += -lcrypto
endif
#LINK_FLAGS := -L../Lib -lteex_ssl -l:libcrypto.a -lcurl -lpthread -ldl
LIB_NAME := ./lib/libteex.a
TEST_C_FILES := $(wildcard tests/*.c)
TEST_C_OBJECTS := $(TEST_C_FILES:.c=.o)
TEST_CPP_FILES := $(wildcard tests/*.cpp)
TEST_CPP_OBJECTS := $(TEST_CPP_FILES:.cpp=.o)
TEST_LINK_FLAGS := -L./lib -lteex $(LINK_FLAGS)
LIB_C_FILES := $(wildcard src/*.c)
LIB_C_OBJECTS := $(LIB_C_FILES:.c=.o)
LIB_CPP_FILES := $(wildcard src/*.cpp)
LIB_CPP_OBJECTS := $(LIB_CPP_FILES:.cpp=.o)
all: $(LIB_NAME) test
libs: $(LIB_NAME)
#%.o: %.c
# $(CC) $(C_FLAGS) -c $< -o $@
%.o: %.cpp
$(CXX) $(CPP_FLAGS) -c $< -o $@
$(LIB_NAME): $(LIB_C_OBJECTS) $(LIB_CPP_OBJECTS)
$(AR) -rc $@ $^
test: $(TEST_C_OBJECTS) $(TEST_CPP_OBJECTS)
$(CXX) $^ -o $@ $(TEST_LINK_FLAGS)
clean:
rm -f $(LIB_NAME) test $(LIB_C_OBJECTS) $(LIB_CPP_OBJECTS) $(TEST_C_OBJECTS) $(TEST_CPP_OBJECTS)

Comment ( 0 )

Sign in for post a comment