1# $NetBSD: Makefile.inc,v 1.3 2014/03/04 21:08:08 joerg Exp $ 2 3HEIMBASE?= ${NETBSDSRCDIR}/crypto/external/bsd/heimdal 4HEIMDIST= ${HEIMBASE}/dist 5 6SSLBASE?= ${NETBSDSRCDIR}/crypto/external/bsd/openssl 7 8LIBVERSDIR!= cd ${HEIMBASE}/lib/libvers && ${PRINTOBJDIR} 9LIBVERS= ${LIBVERSDIR}/libvers.a 10 11LIBIPCDIR!= cd ${HEIMBASE}/lib/libipc && ${PRINTOBJDIR} 12LIBIPC= ${LIBIPCDIR}/libipc.a 13.if ${MKPICLIB} != "yes" 14LIBIPC_PIC= ${LIBIPCDIR}/libipc.a 15.else 16LIBIPC_PIC= ${LIBIPCDIR}/libipc_pic.a 17.endif 18 19.if ${USETOOLS} != "yes" 20COMPILEETOBJ!= cd ${HEIMBASE}/lib/libcom_err/compile_et && ${PRINTOBJDIR} 21TOOL_COMPILE_ET= ${COMPILEETOBJ}/compile_et 22 23ASN1COMPILEOBJ!= cd ${HEIMBASE}/lib/libasn1/asn1_compile && ${PRINTOBJDIR} 24TOOL_ASN1_COMPILE= ${ASN1COMPILEOBJ}/asn1_compile 25 26SLCOBJ!= cd ${HEIMBASE}/lib/libsl/slc && ${PRINTOBJDIR} 27TOOL_SLC= ${SLCOBJ}/slc 28.endif 29 30# 31# We now define what are standard CPP flags across Heimdal: 32 33.if (${USE_INET6} != "no") 34CPPFLAGS+=-DHAVE_IPV6 35HOST_CPPFLAGS+=-DHAVE_IPV6 36.endif 37 38.if ${MKPIC} == "no" 39CPPFLAGS+= -DNO_DLOPEN 40.endif 41 42CPPFLAGS+= -DHAVE_CONFIG_H 43HOST_CPPFLAGS+= -DHAVE_CONFIG_H 44 45CPPFLAGS+= ${.PATH:S/^/-I/} 46CPPFLAGS+= -I${HEIMBASE}/include 47CPPFLAGS+= -I${HEIMDIST}/include 48CWARNFLAGS.clang+= -Wno-error=absolute-value 49