diff options
Diffstat (limited to 'src/lib/libssl/Makefile')
| -rw-r--r-- | src/lib/libssl/Makefile | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index 04baaccb45..16d08731eb 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile | |||
| @@ -1,11 +1,56 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.19 2014/04/11 22:51:53 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.20 2016/09/03 12:42:42 beck Exp $ |
| 2 | 2 | ||
| 3 | SUBDIR=ssl man | 3 | SUBDIR= man |
| 4 | PC_FILES=openssl.pc libssl.pc | 4 | PC_FILES=openssl.pc libssl.pc |
| 5 | 5 | ||
| 6 | CLEANFILES=${PC_FILES} | 6 | CLEANFILES=${PC_FILES} |
| 7 | 7 | ||
| 8 | LIB= ssl | ||
| 9 | |||
| 10 | .include <bsd.own.mk> | ||
| 11 | CFLAGS+= -Wall -Wundef | ||
| 12 | .if ${COMPILER_VERSION:L} != "gcc3" | ||
| 13 | CFLAGS+= -Werror | ||
| 14 | .endif | ||
| 15 | CFLAGS+= -DLIBRESSL_INTERNAL | ||
| 16 | CFLAGS+= -I${.CURDIR} | ||
| 17 | |||
| 18 | LDADD+= -L${BSDOBJDIR}/lib/libcrypto/crypto -lcrypto | ||
| 19 | |||
| 20 | SRCS=\ | ||
| 21 | s3_srvr.c s3_clnt.c s3_lib.c s3_pkt.c s3_both.c \ | ||
| 22 | s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \ | ||
| 23 | t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \ | ||
| 24 | d1_meth.c d1_srvr.c d1_clnt.c d1_lib.c d1_pkt.c \ | ||
| 25 | d1_both.c d1_enc.c d1_srtp.c \ | ||
| 26 | ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \ | ||
| 27 | ssl_ciph.c ssl_stat.c ssl_rsa.c \ | ||
| 28 | ssl_asn1.c ssl_txt.c ssl_algs.c \ | ||
| 29 | bio_ssl.c ssl_err.c t1_reneg.c \ | ||
| 30 | pqueue.c | ||
| 31 | SRCS+= s3_cbc.c | ||
| 32 | SRCS+= bs_ber.c bs_cbb.c bs_cbs.c | ||
| 33 | |||
| 34 | HDRS= srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h | ||
| 35 | |||
| 36 | .PATH: ${.CURDIR} | ||
| 37 | |||
| 38 | includes: | ||
| 39 | @test -d ${DESTDIR}/usr/include/openssl || \ | ||
| 40 | mkdir ${DESTDIR}/usr/include/openssl | ||
| 41 | @cd ${.CURDIR}; for i in $(HDRS); do \ | ||
| 42 | j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \ | ||
| 43 | ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\ | ||
| 44 | ${DESTDIR}/usr/include/openssl"; \ | ||
| 45 | echo $$j; \ | ||
| 46 | eval "$$j"; \ | ||
| 47 | done; | ||
| 48 | |||
| 49 | .include <bsd.lib.mk> | ||
| 50 | |||
| 8 | beforeinstall: | 51 | beforeinstall: |
| 52 | nm -o lib${LIB}.a | egrep -w 'printf|fprintf' && \ | ||
| 53 | (echo please fix stdio usage in this library; false) || true | ||
| 9 | /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} | 54 | /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} |
| 10 | .for p in ${PC_FILES} | 55 | .for p in ${PC_FILES} |
| 11 | ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ | 56 | ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ |
