1 # $NetBSD: Makefile,v 1.24 2008/03/22 08:37:26 mlelstv Exp $
3 USE_FORT?
= yes
# network protocol library
9 DIST
= ${NETBSDSRCDIR}/crypto
/dist
10 .PATH
: ${DIST}/heimdal
/lib
/kadm5
16 LIBDPLIBS
+= krb5
${.CURDIR
}/..
/libkrb5 \
17 hdb
${.CURDIR
}/..
/libhdb \
18 roken
${.CURDIR
}/..
/libroken
20 .if
${USETOOLS} != "yes"
21 COMPILEETOBJ
!= cd
${NETBSDSRCDIR}/lib
/libcom_err
/compile_et
&& ${PRINTOBJDIR}
22 TOOL_COMPILE_ET
= ${COMPILEETOBJ}/compile_et
25 kadm5_err.c kadm5_err.h
: kadm5_err.et
${TOOL_COMPILE_ET}
26 ${TOOL_COMPILE_ET} ${DIST}/heimdal
/lib
/kadm5
/kadm5_err.et
28 ERR_FILES
= kadm5_err.c
30 CLEANFILES
+= kadm5_err.h kadm5_err.c
53 INCS
= kadm5_err.h admin.h kadm5-protos.h private.h kadm5-private.h
54 INCSDIR
= /usr
/include/kadm5
56 ASN1
!= cd
${NETBSDSRCDIR}/lib
/libasn1
&& ${PRINTOBJDIR}
57 KRB5
!= cd
${NETBSDSRCDIR}/lib
/libkrb5
&& ${PRINTOBJDIR}
58 HDB
!= cd
${NETBSDSRCDIR}/lib
/libhdb
&& ${PRINTOBJDIR}
63 -I
${DIST}/heimdal
/lib
/krb5 \
64 -I
${DIST}/heimdal
/lib
/asn1 \
66 -I
${DIST}/heimdal
/lib
/hdb \
67 -I
${DIST}/heimdal
/lib
/asn1 \
68 -I
${DIST}/heimdal
/lib
/com_err \
69 -I
${NETBSDSRCDIR}/include/heimdal \
70 -I
${NETBSDSRCDIR}/lib
/libroken \
71 -I
${DIST}/heimdal
/lib
/roken \
74 .if
(${USE_INET6} != "no")
78 ${SRCS
:.c
=.o
}: kadm5_err.h
80 CLEANFILES
= kadm5_err.h kadm5_err.c
82 # Prevent collision with old MIT Kerberos includes -- require manual
83 # intervention of the operator.
86 @if
[ -f
${DESTDIR}${INCSDIR}/kadm_err.h
]; then \
87 echo
"Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \
92 .if
(defined
(HAVE_GCC
) && ${HAVE_GCC} == 4) || defined
(HAVE_PCC
)
93 COPTS.marshall.c
+= -Wno-pointer-sign