Add build scripts for default SGX build and improve cleanup

This commit is contained in:
kaleb-himes
2018-01-04 10:38:56 -07:00
parent 3f53e8d1dd
commit effb751204
3 changed files with 12 additions and 1 deletions

8
IDE/LINUX-SGX/build.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
CFLAGS="-DDEBUG_WOLFSSL"
export CFLAGS=${CFLAGS}
make -f sgx_t_static.mk HAVE_WOLFSSL_BENCHMARK=1 HAVE_WOLFSSL_TEST=1

3
IDE/LINUX-SGX/clean.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
make -f sgx_t_static.mk clean

View File

@@ -142,4 +142,4 @@ libwolfssl.sgx.static.lib.a: $(Wolfssl_C_Objects)
@echo "LINK => $@"
clean:
@rm -f wolfcrypt.* static_trusted/wolfssl_t.* libwolfssl.sgx.static.lib.a $(Wolfssl_C_Objects)
@rm -f ../../wolfcrypt/benchmark/*.o ../../wolfcrypt/test/*.o static_trusted/wolfssl_t.* libwolfssl.sgx.static.lib.a $(Wolfssl_C_Objects)