Expand PMF_FN_* macros.
[netbsd-mini2440.git] / lib / libkadm5clnt / Makefile
blobfc5b95a655a8708ce7ecbc34aeb8d972c5e5ed97
1 # $NetBSD: Makefile,v 1.24 2008/03/22 08:37:26 mlelstv Exp $
3 USE_FORT?= yes # network protocol library
5 NOLINT= # defined
7 .include <bsd.own.mk>
9 DIST= ${NETBSDSRCDIR}/crypto/dist
10 .PATH: ${DIST}/heimdal/lib/kadm5
12 WARNS?= 1
14 LIB= kadm5clnt
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
23 .endif
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
29 DPSRCS+= kadm5_err.h
30 CLEANFILES+= kadm5_err.h kadm5_err.c
32 SRCS = \
33 ad.c \
34 chpass_c.c \
35 client_glue.c \
36 common_glue.c \
37 create_c.c \
38 delete_c.c \
39 destroy_c.c \
40 flush_c.c \
41 free.c \
42 get_c.c \
43 get_princs_c.c \
44 init_c.c \
45 marshall.c \
46 modify_c.c \
47 privs_c.c \
48 randkey_c.c \
49 rename_c.c \
50 send_recv.c \
51 $(ERR_FILES)
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}
60 CPPFLAGS+= -I. \
61 -I${ASN1} \
62 -I${KRB5} \
63 -I${DIST}/heimdal/lib/krb5 \
64 -I${DIST}/heimdal/lib/asn1 \
65 -I${HDB} \
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 \
72 -DHAVE_CONFIG_H
74 .if (${USE_INET6} != "no")
75 CPPFLAGS+=-DHAVE_IPV6
76 .endif
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.
84 .BEGIN:
85 .ifmake includes
86 @if [ -f ${DESTDIR}${INCSDIR}/kadm_err.h ]; then \
87 echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \
88 false; \
90 .endif
92 .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
93 COPTS.marshall.c+= -Wno-pointer-sign
94 .endif
96 .include <bsd.lib.mk>