OpenSSL: Eliminate some options from CFLAGS.
[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
fc468453 4OSSLVERSION= 0.9.8m
a7e8bf1a 5LCRYPTO_SRC= ${.CURDIR}/../../../crypto/openssl
a561f9ff 6LCRYPTO_DOC= ${LCRYPTO_SRC}/doc
984263bc
MD
7
8CFLAGS+= -DTERMIOS -DANSI_SOURCE
9CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto \
10 -I${LCRYPTO_SRC}/crypto/engine -I${.OBJDIR}
11
984263bc
MD
12.if ${MACHINE_ARCH} == "i386"
13CFLAGS+= -DL_ENDIAN
984263bc
MD
14.endif
15
984263bc
MD
16MANDIR= ${SHAREDIR}/openssl/man/man
17
18.if defined(LIB)
19_docs= ${LIB}
984263bc
MD
20_sec= 3
21.else
22_docs= apps
984263bc
MD
23_sec= 1
24.endif
25
26man-update:
27.for manpage in ${MAN}
28 @(sec=${manpage:E}; \
29 pod=${manpage:R}.pod; \
30 cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \
65b98162 31 pod2man --section=$$sec --release="${OSSLVERSION}" --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