mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 06:19:03 +01:00
openssl example.
This commit is contained in:
parent
ed763b58cb
commit
fe8fbc063e
29
examples/openssl/Makefile
Normal file
29
examples/openssl/Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user