xref: /freebsd/crypto/heimdal/kadmin/Makefile.am (revision 63a938566d524836885917d95bd491aa4400b181)
1# $Id$
2
3include $(top_srcdir)/Makefile.am.common
4
5AM_CPPFLAGS += $(INCLUDE_libintl) $(INCLUDE_readline) $(INCLUDE_hcrypto) -I$(srcdir)/../lib/krb5 -I$(top_builddir)/include/gssapi
6
7sbin_PROGRAMS = kadmin
8
9libexec_PROGRAMS = kadmind
10
11man_MANS = kadmin.8 kadmind.8
12
13noinst_PROGRAMS = add_random_users
14
15dist_kadmin_SOURCES =				\
16	ank.c					\
17	add_enctype.c				\
18	check.c					\
19	cpw.c					\
20	del.c					\
21	del_enctype.c				\
22	dump.c					\
23	ext.c					\
24	get.c					\
25	init.c					\
26	kadmin.c				\
27	load.c					\
28	mod.c					\
29	rename.c				\
30	stash.c					\
31	util.c					\
32	pw_quality.c				\
33	random_password.c			\
34	kadmin_locl.h
35
36nodist_kadmin_SOURCES =				\
37	kadmin-commands.c			\
38	kadmin-commands.h
39
40$(kadmin_OBJECTS): kadmin-commands.h
41
42CLEANFILES = kadmin-commands.h kadmin-commands.c
43
44kadmin-commands.c kadmin-commands.h: kadmin-commands.in
45	$(SLC) $(srcdir)/kadmin-commands.in
46
47kadmind_SOURCES =				\
48	rpc.c					\
49	server.c				\
50	kadmind.c				\
51	kadmin_locl.h				\
52	kadm_conn.c
53
54add_random_users_SOURCES = add-random-users.c
55
56test_util_SOURCES = test_util.c util.c
57
58TESTS = test_util
59
60check_PROGRAMS = $(TESTS)
61
62LDADD_common = \
63	$(top_builddir)/lib/hdb/libhdb.la \
64	$(top_builddir)/lib/krb5/libkrb5.la \
65	$(LIB_hcrypto) \
66	$(top_builddir)/lib/asn1/libasn1.la \
67	$(LIB_roken) \
68	$(DBLIB)
69
70kadmind_LDADD = $(top_builddir)/lib/kadm5/libkadm5srv.la \
71	../lib/gssapi/libgssapi.la \
72	$(LDADD_common) \
73	$(LIB_pidfile) \
74	$(LIB_dlopen)
75
76kadmin_LDADD = \
77	$(top_builddir)/lib/kadm5/libkadm5clnt.la \
78	$(top_builddir)/lib/kadm5/libkadm5srv.la \
79	$(top_builddir)/lib/sl/libsl.la \
80	$(LIB_readline) \
81	$(LDADD_common) \
82	$(LIB_dlopen)
83
84add_random_users_LDADD = \
85	$(top_builddir)/lib/kadm5/libkadm5clnt.la \
86	$(top_builddir)/lib/kadm5/libkadm5srv.la \
87	$(LDADD_common) \
88	$(LIB_dlopen)
89
90test_util_LDADD = $(kadmin_LDADD)
91
92EXTRA_DIST = \
93	NTMakefile \
94	kadmin-version.rc \
95	kadmind-version.rc \
96	$(man_MANS) \
97	kadmin-commands.in
98