Merge branch 'vendor/OPENSSL' into HEAD
[dragonfly.git] / secure / lib / libcrypto / Makefile.inc
CommitLineData
984263bc 1# $FreeBSD: src/secure/lib/libcrypto/Makefile.inc,v 1.7.2.11 2003/02/20 15:07:32 nectar Exp $
18ed9402 2# $DragonFly: src/secure/lib/libcrypto/Makefile.inc,v 1.18 2008/09/27 21:04:45 pavalos Exp $
984263bc 3
b28f31b7
PA
4OSSLVERSION= 1.0.0b
5OSSLDATE= 2010-11-16
a7e8bf1a 6LCRYPTO_SRC= ${.CURDIR}/../../../crypto/openssl
a561f9ff 7LCRYPTO_DOC= ${LCRYPTO_SRC}/doc
984263bc 8
64099218 9CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS
66699045 10CFLAGS+= -DOPENSSL_THREADS
984263bc 11CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto \
2d149594 12 -I${LCRYPTO_SRC}/crypto/asn1 -I${LCRYPTO_SRC}/crypto/evp \
984263bc
MD
13 -I${LCRYPTO_SRC}/crypto/engine -I${.OBJDIR}
14
984263bc
MD
15MANDIR= ${SHAREDIR}/openssl/man/man
16
17.if defined(LIB)
18_docs= ${LIB}
984263bc
MD
19_sec= 3
20.else
21_docs= apps
984263bc
MD
22_sec= 1
23.endif
24
25man-update:
26.for manpage in ${MAN}
27 @(sec=${manpage:E}; \
28 pod=${manpage:R}.pod; \
29 cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \
db232015
PA
30 pod2man --section=$$sec --release="${OSSLVERSION}" \
31 --date="${OSSLDATE}" --center="OpenSSL" \
984263bc
MD
32 $$pod > ${.CURDIR}/man/${manpage}; \
33 rm $$pod; \
34 ${ECHO} ${manpage})
35.endfor
36
37man-makefile-update:
38 rm -f ${.CURDIR}/Makefile.man
984263bc
MD
39 echo '# DO NOT EDIT: generated from man-makefile-update target' >> \
40 ${.CURDIR}/Makefile.man
41 for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \
42 fn=`basename $$i .pod`; \
a561f9ff
SS
43 sec=`perl ${LCRYPTO_SRC}/util/extract-section.pl < $$i`; \
44 sec=$${sec:-${_sec}}; \
45 ${ECHO} "MAN+= $$fn.$$sec" >> ${.CURDIR}/Makefile.man; \
984263bc 46 perl ${LCRYPTO_SRC}/util/extract-names.pl < $$i | \
a561f9ff
SS
47 sed -Ee "/^$$fn\$$/d;s/^(.*)/MLINKS+= $$fn.$$sec \1.$$sec/" >> \
48 ${.CURDIR}/Makefile.man; \
984263bc 49 done