]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/secure/lib/libcrypto/Makefile.inc
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / 6 / secure / lib / libcrypto / Makefile.inc
1 # $FreeBSD$
2
3 LCRYPTO_SRC=    ${.CURDIR}/../../../crypto/openssl
4 LCRYPTO_DOC=    ${.CURDIR}/../../../crypto/openssl/doc
5
6 CFLAGS+=        -DTERMIOS -DANSI_SOURCE
7 CFLAGS+=        -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR}
8 CFLAGS+=        -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H
9
10 .if !defined(MAKE_IDEA)
11 CFLAGS+=        -DOPENSSL_NO_IDEA
12 .endif
13
14 .if ${MACHINE_ARCH} == "i386"
15 CFLAGS+= -DL_ENDIAN
16 .elif ${MACHINE_ARCH} == "alpha"
17 # no ENDIAN stuff defined for alpha (64-bit)
18 .endif
19
20 MANDIR= ${SHAREDIR}/openssl/man/man
21
22 .if defined(LIB)
23 _docs=  ${LIB}
24 _skip=  des_modes
25 _sec=   3
26 .else
27 _docs=  apps
28 _skip=  config
29 _sec=   1
30 .endif
31
32 man-update:
33 .for manpage in ${MAN}
34         @(sec=${manpage:E}; \
35         pod=${manpage:R}.pod; \
36         cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \
37         pod2man --section=$$sec --release="0.9.7d" --center="OpenSSL" \
38           $$pod > ${.CURDIR}/man/${manpage}; \
39         rm $$pod; \
40         ${ECHO} ${manpage})
41 .endfor
42
43 man-makefile-update:
44         rm -f ${.CURDIR}/Makefile.man
45         echo '# $$'FreeBSD'$$' >> ${.CURDIR}/Makefile.man
46         echo '# DO NOT EDIT: generated from man-makefile-update target' >> \
47             ${.CURDIR}/Makefile.man
48         for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \
49                 fn=`basename $$i .pod`; \
50                 if [ "$$fn" != "${_skip}" ]; then \
51                 ${ECHO} "MAN+= $$fn.${_sec}" >> ${.CURDIR}/Makefile.man; \
52                 fi; \
53         done
54         for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \
55                 fn=`basename $$i .pod`; \
56                 if [ "$$fn" != "${_skip}" ]; then \
57                 perl ${LCRYPTO_SRC}/util/extract-names.pl < $$i | \
58                   awk "/^$$fn\$$/ { next; } \
59                   { print \"MLINKS+= $$fn.${_sec} \" \$$1 \".${_sec}\" }" >> \
60                   ${.CURDIR}/Makefile.man; \
61                 fi; \
62         done