2017-02-21 14:00:49 +00:00
|
|
|
.PHONY: all
|
2017-08-11 15:03:21 +00:00
|
|
|
all: standalone_sgx_verify libuntrusted_corda_sgx.so
|
2017-02-21 14:00:49 +00:00
|
|
|
|
|
|
|
standalone/build:
|
|
|
|
mkdir -p standalone/build
|
|
|
|
|
|
|
|
standalone/build/Makefile: | standalone/build
|
|
|
|
cd standalone/build/ && cmake ..
|
|
|
|
|
2017-08-11 15:03:21 +00:00
|
|
|
.PHONY: standalone_sgx_verify
|
|
|
|
standalone_sgx_verify: standalone/build/Makefile ../../verify-enclave/build/libs/corda-enclavelet.jar
|
2017-02-21 14:00:49 +00:00
|
|
|
$(MAKE) -C $(<D) VERBOSE=1
|
|
|
|
|
|
|
|
jni/build:
|
|
|
|
mkdir -p jni/build
|
|
|
|
|
2017-08-11 15:03:21 +00:00
|
|
|
jni/build/Makefile: ../../verify-enclave/build/native/include/jni_sgx_api.h | jni/build
|
2017-02-21 14:00:49 +00:00
|
|
|
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
|
|
|
|
|
2017-08-11 15:03:21 +00:00
|
|
|
.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
|
2017-02-21 14:00:49 +00:00
|
|
|
$(MAKE) -C $(<D) VERBOSE=1
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2017-07-19 12:29:47 +00:00
|
|
|
$(RM) -r {standalone,common,enclave,jni}/build
|