|
@@ -5,7 +5,7 @@ PYTHON_LDFLAGS = -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lu
|
|
|
CXX_FLAGS = -Wall -O2 -std=c++11 -fpic -fdata-sections -ffunction-sections
|
|
|
|
|
|
LD = ${CXX} -v
|
|
|
-LD_FLAGS = -Wall ${PYTHON_LDFLAGS}
|
|
|
+LD_FLAGS = -Wall #${PYTHON_LDFLAGS}
|
|
|
|
|
|
all_non_sgx_obj := $(system_obj) $(protobuf_obj) #$(patsubst %.cpp,%.o,$(all_non_sgx_cpp)}
|
|
|
|
|
@@ -17,14 +17,13 @@ protobuf_obj := $(patsubst %.cpp,%.o,$(wildcard Protobuf*))
|
|
|
system_obj := $(patsubst %.cpp,%.o,$(wildcard system*))
|
|
|
OBJECTS := systemMain.o systemSealerWrapper.o SgxSealer.o ProtobufLAInitiator.o SgxProtobufLAInitiator.o SgxProtobufLAInitiator_Transforms.o ProtobufLAMessages.pb.o crypto.o
|
|
|
|
|
|
-SGX_SDK := /opt/intel/sgxsdk
|
|
|
SGX_COMMON_CFLAGS := -m64
|
|
|
SGX_LIBRARY_PATH := $(SGX_SDK)/lib64
|
|
|
+SgxC_Library_Name := sgx_tstdc
|
|
|
Trts_Library_Name := sgx_trts
|
|
|
Service_Library_Name := sgx_tservice
|
|
|
Crypto_Library_Name := sgx_tcrypto
|
|
|
SGX_INCLUDE_PATHS := -I$(SGX_SDK)/include -I$(SGX_SDK)/include/tlibc -I$(SGX_SDK)/include/libcxx
|
|
|
-Openssl_Path := /home/m2mazmud/plain-openssl
|
|
|
|
|
|
Uae_Library_Name := sgx_uae_service
|
|
|
|
|
@@ -47,10 +46,10 @@ ProtobufAutogenerated/%.o: ProtobufAutogenerated/%.cpp
|
|
|
#-I/usr/lib/jvm/java-8-openjdk-amd64/include/ -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux/
|
|
|
|
|
|
crypto.o: crypto.cpp
|
|
|
- ${CXX} -I${Openssl_Path}/include ${CXX_FLAGS} -c $^ -o $@
|
|
|
+ ${CXX} ${CXX_FLAGS} -c $^ -o $@
|
|
|
|
|
|
verifier: systemMain.o DeploymentStageLogic.o LAInitiator/LA.o LAInitiator/Transforms.o PostLA/PostLAMessaging.o ProtobufAutogenerated/ProtobufLAMessages.pb.o ProtobufMessageRW.o crypto.o
|
|
|
- ${CXX} -Wl,--no-undefined systemMain.o DeploymentStageLogic.o LAInitiator/LA.o LAInitiator/Transforms.o PostLA/PostLAMessaging.o ProtobufAutogenerated/ProtobufLAMessages.pb.o ProtobufMessageRW.o crypto.o -L${Openssl_Path}/lib -lcrypto -lssl -L./ -l$(Service_Library_Name) -l$(Crypto_Library_Name) -L/home/m2mazmud/linux-sgx-trts-modified/build/linux -lsgx_tstdc -lsgx_trts ${LD_FLAGS} -lprotobuf -o $@
|
|
|
+ ${CXX} systemMain.o DeploymentStageLogic.o LAInitiator/LA.o LAInitiator/Transforms.o PostLA/PostLAMessaging.o ProtobufAutogenerated/ProtobufLAMessages.pb.o ProtobufMessageRW.o crypto.o -Wl,--no-undefined ${LD_FLAGS} -lcrypto -lssl -L$(SGX_LIBRARY_PATH) -l$(Service_Library_Name) -l$(Crypto_Library_Name) -l$(Trts_Library_Name) -l$(SgxC_Library_Name) -lprotobuf -o $@
|
|
|
#-L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljvm
|
|
|
#-L~/linux-sgx-trts-modified/build/linux -lsgx_tstdc -lsgx_trts ${LD_FLAGS} -o $@
|
|
|
|