Update files for OpenSSL-1.0.0f import.
[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
e3261593
PA
4OSSLVERSION= 1.0.0f
5OSSLDATE= 2012-01-04
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
aa1f3630
PA
11CFLAGS+= -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM \
12 -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM
13.if ${MACHINE_ARCH} == "i386"
14CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS -DRMD160_ASM
15.endif
984263bc 16CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto \
2d149594 17 -I${LCRYPTO_SRC}/crypto/asn1 -I${LCRYPTO_SRC}/crypto/evp \
984263bc
MD
18 -I${LCRYPTO_SRC}/crypto/engine -I${.OBJDIR}
19
984263bc
MD
20MANDIR= ${SHAREDIR}/openssl/man/man
21
22.if defined(LIB)
23_docs= ${LIB}
984263bc
MD
24_sec= 3
25.else
26_docs= apps
984263bc
MD
27_sec= 1
28.endif
29
30man-update:
31.for manpage in ${MAN}
32 @(sec=${manpage:E}; \
33 pod=${manpage:R}.pod; \
34 cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \
db232015
PA
35 pod2man --section=$$sec --release="${OSSLVERSION}" \
36 --date="${OSSLDATE}" --center="OpenSSL" \
984263bc
MD
37 $$pod > ${.CURDIR}/man/${manpage}; \
38 rm $$pod; \
39 ${ECHO} ${manpage})
40.endfor
41
42man-makefile-update:
43 rm -f ${.CURDIR}/Makefile.man
984263bc
MD
44 echo '# DO NOT EDIT: generated from man-makefile-update target' >> \
45 ${.CURDIR}/Makefile.man
46 for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \
47 fn=`basename $$i .pod`; \
a561f9ff
SS
48 sec=`perl ${LCRYPTO_SRC}/util/extract-section.pl < $$i`; \
49 sec=$${sec:-${_sec}}; \
50 ${ECHO} "MAN+= $$fn.$$sec" >> ${.CURDIR}/Makefile.man; \
984263bc 51 perl ${LCRYPTO_SRC}/util/extract-names.pl < $$i | \
a561f9ff
SS
52 sed -Ee "/^$$fn\$$/d;s/^(.*)/MLINKS+= $$fn.$$sec \1.$$sec/" >> \
53 ${.CURDIR}/Makefile.man; \
984263bc 54 done