Makefile.inc revision 279265
1183370Simp# $FreeBSD: releng/9.3/secure/lib/libcrypto/Makefile.inc 279265 2015-02-25 05:56:54Z delphij $ 2183370Simp 3183370Simp.include <bsd.own.mk> 4183370Simp 5183370Simp# OpenSSL version used for manual page generation 6183370SimpOPENSSL_VER= 0.9.8zd 7183370SimpOPENSSL_DATE= 2015-01-08 8183370Simp 9183370SimpLCRYPTO_SRC= ${.CURDIR}/../../../crypto/openssl 10183370SimpLCRYPTO_DOC= ${.CURDIR}/../../../crypto/openssl/doc 11183370Simp 12183370SimpCFLAGS+= -DTERMIOS -DANSI_SOURCE 13183370SimpCFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR} 14183370SimpCFLAGS+= -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H 15183370Simp 16183370Simp.if ${MK_IDEA} == "no" 17183370SimpCFLAGS+= -DOPENSSL_NO_IDEA 18183370Simp.endif 19183370Simp 20183370Simp.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" 21183370SimpCFLAGS+= -DL_ENDIAN 22183370Simp.endif 23183370Simp 24183370SimpMANDIR= ${SHAREDIR}/openssl/man/man 25183370Simp 26183370Simp.if defined(LIB) 27183370Simp_docs= ${LIB} 28183370Simp_skip= des_modes 29183370Simp_sec= 3 30183370Simp.else 31183370Simp_docs= apps 32183370Simp_skip= config 33183370Simp_sec= 1 34183370Simp.endif 35183370Simp 36183370Simpman-update: 37183370Simp.for manpage in ${MAN} 38183370Simp @(sec=${manpage:E}; \ 39183370Simp pod=${manpage:R}.pod; \ 40183370Simp cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \ 41183370Simp pod2man --section=$$sec --release="${OPENSSL_VER}" \ 42183370Simp --date="${OPENSSL_DATE}" --center="OpenSSL" \ 43183370Simp $$pod > ${.CURDIR}/man/${manpage}; \ 44183370Simp rm -f $$pod; \ 45183370Simp ${ECHO} ${manpage}) 46183370Simp.endfor 47183370Simp 48183370Simpman-makefile-update: 49183370Simp rm -f ${.CURDIR}/Makefile.man 50183370Simp echo '# $$'FreeBSD'$$' >> ${.CURDIR}/Makefile.man 51183370Simp echo '# DO NOT EDIT: generated from man-makefile-update target' >> \ 52183370Simp ${.CURDIR}/Makefile.man 53183370Simp for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \ 54183370Simp fn=`basename $$i .pod`; \ 55183370Simp if [ "$$fn" != "${_skip}" ]; then \ 56183370Simp ${ECHO} "MAN+= $$fn.${_sec}" >> ${.CURDIR}/Makefile.man; \ 57183370Simp fi; \ 58183370Simp done 59183370Simp for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \ 60183370Simp fn=`basename $$i .pod`; \ 61183370Simp if [ "$$fn" != "${_skip}" ]; then \ 62183370Simp perl ${LCRYPTO_SRC}/util/extract-names.pl < $$i | \ 63183370Simp awk "/^$$fn\$$/ { next; } \ 64183370Simp { print \"MLINKS+= $$fn.${_sec} \" \$$1 \".${_sec}\" }" >> \ 65183370Simp ${.CURDIR}/Makefile.man; \ 66183370Simp fi; \ 67183370Simp done 68183370Simp