Make sure we don't use negative indexing [CID-57]
[heimdal.git] / kadmin / Makefile.am
blobfda3bf7952681fa85eda7eaa835b0aed30488110
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(INCLUDE_libintl) $(INCLUDE_readline) $(INCLUDE_hcrypto) -I$(srcdir)/../lib/krb5 -I$(top_builddir)/include/gssapi
7 sbin_PROGRAMS = kadmin
9 libexec_PROGRAMS = kadmind
11 SLC = $(top_builddir)/lib/sl/slc
13 man_MANS = kadmin.8 kadmind.8
15 noinst_PROGRAMS = add_random_users
17 dist_kadmin_SOURCES =                           \
18         ank.c                                   \
19         add_enctype.c                           \
20         check.c                                 \
21         cpw.c                                   \
22         del.c                                   \
23         del_enctype.c                           \
24         dump.c                                  \
25         ext.c                                   \
26         get.c                                   \
27         init.c                                  \
28         kadmin.c                                \
29         load.c                                  \
30         mod.c                                   \
31         rename.c                                \
32         stash.c                                 \
33         util.c                                  \
34         pw_quality.c                            \
35         random_password.c                       \
36         kadmin_locl.h
38 nodist_kadmin_SOURCES =                         \
39         kadmin-commands.c                       \
40         kadmin-commands.h
42 $(kadmin_OBJECTS): kadmin-commands.h
44 CLEANFILES = kadmin-commands.h kadmin-commands.c
46 kadmin-commands.c kadmin-commands.h: kadmin-commands.in
47         $(SLC) $(srcdir)/kadmin-commands.in
49 kadmind_SOURCES =                               \
50         rpc.c                                   \
51         server.c                                \
52         kadmind.c                               \
53         kadmin_locl.h                           \
54         kadm_conn.c
56 add_random_users_SOURCES = add-random-users.c
58 test_util_SOURCES = test_util.c util.c
60 TESTS = test_util
62 check_PROGRAMS = $(TESTS)
64 LDADD_common = \
65         $(top_builddir)/lib/hdb/libhdb.la \
66         $(LIB_openldap) \
67         $(top_builddir)/lib/krb5/libkrb5.la \
68         $(LIB_hcrypto) \
69         $(top_builddir)/lib/asn1/libasn1.la \
70         $(LIB_roken) \
71         $(DBLIB)
73 kadmind_LDADD = $(top_builddir)/lib/kadm5/libkadm5srv.la \
74         ../lib/gssapi/libgssapi.la \
75         $(LDADD_common) \
76         $(LIB_pidfile) \
77         $(LIB_dlopen)
79 kadmin_LDADD = \
80         $(top_builddir)/lib/kadm5/libkadm5clnt.la \
81         $(top_builddir)/lib/kadm5/libkadm5srv.la \
82         $(top_builddir)/lib/sl/libsl.la \
83         $(LIB_readline) \
84         $(LDADD_common) \
85         $(LIB_dlopen)
87 add_random_users_LDADD = \
88         $(top_builddir)/lib/kadm5/libkadm5clnt.la \
89         $(top_builddir)/lib/kadm5/libkadm5srv.la \
90         $(LDADD_common) \
91         $(LIB_dlopen)
93 test_util_LDADD = $(kadmin_LDADD)
95 EXTRA_DIST = $(man_MANS) kadmin-commands.in