openssl example.

This commit is contained in:
Ian A. Mason 2019-07-30 14:42:30 -07:00
parent ed763b58cb
commit fe8fbc063e

29
examples/openssl/Makefile Normal file
View File

@ -0,0 +1,29 @@
OPENSSL=openssl-1.1.1c
SRC="https://www.openssl.org/source/${OPENSSL}.tar.gz"
all: libcrypto.bca libssl.bca
${OPENSSL}.tar.gz:
wget ${SRC}
${OPENSSL}.tar: ${OPENSSL}.tar.gz
gunzip -k ${OPENSSL}.tar.gz
${OPENSSL}: ${OPENSSL}.tar
tar xvf ${OPENSSL}.tar
openssl: ${OPENSSL}
cd ${OPENSSL}; CC=gclang ./config no-asm no-shared; make
libcrypto.bca: openssl
get-bc -o libcrypto.bc -m -b ${OPENSSL}/libcrypto.a
libssl.bca: openssl
get-bc -o libssl.bc -m -b ${OPENSSL}/libssl.a
clean:
rm -f *.bc *.llvm.manifest
make -C ${OPENSSL} clean
spotless: clean
rm -rf ${OPENSSL} ${OPENSSL}.tar.gz ${OPENSSL}.tar