corda/sgx-jvm/jvm-enclave/Makefile
Chris Rankin 2652dfce3f
Support for creating and joining Java threads within SGX Avian. (#123)
* Add threading support to SGX Avian.
* Handle contract verification exceptions using uncaught exception handler.
* Indent uniformly to 4 spaces.
* Add comments for some of the uses of SGX synchronisation primitives.
2018-03-06 15:45:44 +00:00

34 lines
1.2 KiB
Makefile

.PHONY: all
all: standalone_sgx_verify libuntrusted_corda_sgx.so
standalone/build:
mkdir -p standalone/build
standalone/build/Makefile: | standalone/build
cd standalone/build/ && cmake ..
.PHONY: standalone_sgx_verify
standalone_sgx_verify: standalone/build/Makefile ../../verify-enclave/build/libs/corda-enclavelet.jar
$(MAKE) -C $(<D) VERBOSE=1
jni/build:
mkdir -p jni/build
jni/build/Makefile: ../../verify-enclave/build/native/include/jni_sgx_api.h | jni/build
cd jni/build/ && cmake ..
../../verify-enclave/build/libs/corda-enclavelet.jar: $(shell find ../../*/src -name "*.kt")
cd ../.. && ./gradlew verify-enclave:jar
../../verify-enclave/build/native/include/jni_sgx_api.h: ../../verify-enclave/src/main/kotlin/com/r3/enclaves/txverify/NativeSgxApi.kt
cd ../.. && ./gradlew verify-enclave:generateNativeSgxHeaders
.PHONY: libuntrusted_corda_sgx.so
libuntrusted_corda_sgx.so: jni/build/Makefile ../../verify-enclave/build/native/include/jni_sgx_api.h ../../verify-enclave/build/libs/corda-enclavelet.jar
$(MAKE) -C $(<D) VERBOSE=1
.PHONY: clean
clean:
$(RM) -r {standalone,common,enclave,jni}/build
../../gradlew --project-dir=../.. verify-enclave:clean