mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
4b3a804990
* Update SGX build to use deterministic OpenJDK repository. * Remove unused imports. * Update Kotlin dependencies. * Update Avian so that it compiles against our OpenJDK repo. Also include sunec.jar in the Avian binary. because the Enclavlet needs it. * Embed jsse.jar within Avian to enable X.509 support.
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
.PHONY: all
|
|
all: standalone/build/standalone_sgx_verify jni/build/libuntrusted_corda_sgx.so
|
|
|
|
standalone/build:
|
|
mkdir -p standalone/build
|
|
|
|
standalone/build/Makefile: | standalone/build
|
|
cd standalone/build/ && cmake ..
|
|
|
|
.PHONY: standalone/build/standalone_sgx_verify
|
|
standalone/build/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: | 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: jni/build/libuntrusted_corda_sgx.so
|
|
jni/build/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
|