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