Sync usage with man page.
[netbsd-mini2440.git] / lib / libkadm5srv / Makefile
blob704b8adb3d673a8144bb03b832a1dc81a4a19821
1 # $NetBSD: Makefile,v 1.27 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 .include <bsd.own.mk>
16 LIB= kadm5srv
18 LIBDPLIBS+= krb5 ${.CURDIR}/../libkrb5 \
19 hdb ${.CURDIR}/../libhdb \
20 roken ${.CURDIR}/../libroken
22 .if ${USETOOLS} != "yes"
23 COMPILEETOBJ!= cd ${NETBSDSRCDIR}/lib/libcom_err/compile_et && ${PRINTOBJDIR}
24 TOOL_COMPILE_ET= ${COMPILEETOBJ}/compile_et
25 .endif
27 kadm5_err.c kadm5_err.h: kadm5_err.et ${TOOL_COMPILE_ET}
28 ${TOOL_COMPILE_ET} ${DIST}/heimdal/lib/kadm5/kadm5_err.et
30 ERR_FILES= kadm5_err.c
31 DPSRCS+= kadm5_err.h
32 CLEANFILES+= kadm5_err.h kadm5_err.c
34 SRCS = \
35 acl.c \
36 ad.c \
37 bump_pw_expire.c \
38 chpass_c.c \
39 chpass_s.c \
40 common_glue.c \
41 context_s.c \
42 create_c.c \
43 create_s.c \
44 delete_c.c \
45 delete_s.c \
46 destroy_c.c \
47 destroy_s.c \
48 ent_setup.c \
49 error.c \
50 flush_c.c \
51 flush_s.c \
52 free.c \
53 get_c.c \
54 get_princs_c.c \
55 get_princs_s.c \
56 get_s.c \
57 init_c.c \
58 init_s.c \
59 keys.c \
60 log.c \
61 marshall.c \
62 modify_c.c \
63 modify_s.c \
64 password_quality.c \
65 privs_c.c \
66 privs_s.c \
67 randkey_c.c \
68 randkey_s.c \
69 rename_c.c \
70 rename_s.c \
71 send_recv.c \
72 server_glue.c \
73 set_keys.c \
74 set_modifier.c \
75 $(ERR_FILES)
77 MAN= kadm5_pwcheck.3
79 ASN1!= cd ${NETBSDSRCDIR}/lib/libasn1 && ${PRINTOBJDIR}
80 KRB5!= cd ${NETBSDSRCDIR}/lib/libkrb5 && ${PRINTOBJDIR}
81 HDB!= cd ${NETBSDSRCDIR}/lib/libhdb && ${PRINTOBJDIR}
83 CPPFLAGS+= -I. \
84 -I${ASN1} \
85 -I${KRB5} \
86 -I${DIST}/heimdal/lib/krb5 \
87 -I${DIST}/heimdal/lib/asn1 \
88 -I${HDB} \
89 -I${DIST}/heimdal/lib/hdb \
90 -I${DIST}/heimdal/lib/asn1 \
91 -I${DIST}/heimdal/lib/com_err \
92 -I${NETBSDSRCDIR}/include/heimdal \
93 -I${NETBSDSRCDIR}/lib/libroken \
94 -I${DIST}/heimdal/lib/roken \
95 -DHAVE_CONFIG_H
97 .if (${USE_INET6} != "no")
98 CPPFLAGS+=-DHAVE_IPV6
99 .endif
101 .if ${MKPIC} == "no"
102 CPPFLAGS+= -DNO_DLOPEN
103 .endif
105 .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
106 COPTS.marshall.c+= -Wno-pointer-sign
107 .endif
109 .include <bsd.lib.mk>