Update files for OpenSSL-1.0.0f import.
[dragonfly.git] / secure / lib / libcrypto / Makefile.inc
1 # $FreeBSD: src/secure/lib/libcrypto/Makefile.inc,v 1.7.2.11 2003/02/20 15:07:32 nectar Exp $
2 # $DragonFly: src/secure/lib/libcrypto/Makefile.inc,v 1.18 2008/09/27 21:04:45 pavalos Exp $
3
4 OSSLVERSION=    1.0.0f
5 OSSLDATE=       2012-01-04
6 LCRYPTO_SRC=    ${.CURDIR}/../../../crypto/openssl
7 LCRYPTO_DOC=    ${LCRYPTO_SRC}/doc
8
9 CFLAGS+=        -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS
10 CFLAGS+=        -DOPENSSL_THREADS
11 CFLAGS+=        -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"
14 CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS -DRMD160_ASM
15 .endif
16 CFLAGS+=        -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto \
17                 -I${LCRYPTO_SRC}/crypto/asn1 -I${LCRYPTO_SRC}/crypto/evp \
18                 -I${LCRYPTO_SRC}/crypto/engine -I${.OBJDIR}
19
20 MANDIR= ${SHAREDIR}/openssl/man/man
21
22 .if defined(LIB)
23 _docs=  ${LIB}
24 _sec=   3
25 .else
26 _docs=  apps
27 _sec=   1
28 .endif
29
30 man-update:
31 .for manpage in ${MAN}
32         @(sec=${manpage:E}; \
33         pod=${manpage:R}.pod; \
34         cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \
35         pod2man --section=$$sec --release="${OSSLVERSION}" \
36           --date="${OSSLDATE}" --center="OpenSSL" \
37           $$pod > ${.CURDIR}/man/${manpage}; \
38         rm $$pod; \
39         ${ECHO} ${manpage})
40 .endfor
41
42 man-makefile-update:
43         rm -f ${.CURDIR}/Makefile.man
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`; \
48                 sec=`perl ${LCRYPTO_SRC}/util/extract-section.pl < $$i`; \
49                 sec=$${sec:-${_sec}}; \
50                 ${ECHO} "MAN+= $$fn.$$sec" >> ${.CURDIR}/Makefile.man; \
51                 perl ${LCRYPTO_SRC}/util/extract-names.pl < $$i | \
52                   sed -Ee "/^$$fn\$$/d;s/^(.*)/MLINKS+= $$fn.$$sec \1.$$sec/" >> \
53                     ${.CURDIR}/Makefile.man; \
54         done