xref: /freebsd/crypto/heimdal/lib/kadm5/Makefile.am (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1# $Id$
2
3include $(top_srcdir)/Makefile.am.common
4
5lib_LTLIBRARIES = libkadm5srv.la libkadm5clnt.la
6libkadm5srv_la_LDFLAGS = -version-info 8:1:0
7libkadm5clnt_la_LDFLAGS = -version-info 7:1:0
8
9if versionscript
10libkadm5srv_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
11endif
12
13sbin_PROGRAMS = iprop-log
14check_PROGRAMS = default_keys
15noinst_PROGRAMS = test_pw_quality
16
17noinst_LTLIBRARIES = sample_passwd_check.la
18
19sample_passwd_check_la_SOURCES = sample_passwd_check.c
20sample_passwd_check_la_LDFLAGS = -module
21
22libkadm5srv_la_LIBADD = \
23	$(LIB_com_err) ../krb5/libkrb5.la \
24	../hdb/libhdb.la $(LIBADD_roken)
25libkadm5clnt_la_LIBADD = \
26	$(LIB_com_err) ../krb5/libkrb5.la $(LIBADD_roken)
27
28libexec_PROGRAMS = ipropd-master ipropd-slave
29
30default_keys_SOURCES = default_keys.c
31
32kadm5includedir = $(includedir)/kadm5
33buildkadm5include = $(buildinclude)/kadm5
34
35dist_kadm5include_HEADERS = admin.h private.h kadm5-pwcheck.h
36dist_kadm5include_HEADERS += kadm5-protos.h kadm5-private.h
37
38nodist_kadm5include_HEADERS = kadm5_err.h
39
40install-build-headers:: $(dist_kadm5include_HEADERS) $(nodist_kadm5include_HEADERS)
41	@foo='$(dist_kadm5include_HEADERS) $(nodist_kadm5include_HEADERS)'; \
42	for f in $$foo; do \
43		f=`basename $$f`; \
44		if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
45		else file="$$f"; fi; \
46		if cmp -s  $$file $(buildkadm5include)/$$f 2> /dev/null ; then \
47		: ; else \
48			echo "cp $$file $(buildkadm5include)/$$f";\
49			cp $$file $(buildkadm5include)/$$f; \
50		fi ; \
51	done
52
53dist_libkadm5clnt_la_SOURCES =			\
54	ad.c					\
55	chpass_c.c				\
56	client_glue.c				\
57	common_glue.c				\
58	create_c.c				\
59	delete_c.c				\
60	destroy_c.c				\
61	flush_c.c				\
62	free.c					\
63	get_c.c					\
64	get_princs_c.c				\
65	init_c.c				\
66	kadm5_locl.h				\
67	marshall.c				\
68	modify_c.c				\
69	private.h				\
70	privs_c.c				\
71	randkey_c.c				\
72	rename_c.c				\
73	send_recv.c				\
74	admin.h
75
76nodist_libkadm5clnt_la_SOURCES =		\
77	kadm5_err.c				\
78	kadm5_err.h
79
80dist_libkadm5srv_la_SOURCES =			\
81	acl.c					\
82	admin.h					\
83	bump_pw_expire.c			\
84	chpass_s.c				\
85	common_glue.c				\
86	context_s.c				\
87	create_s.c				\
88	delete_s.c				\
89	destroy_s.c				\
90	ent_setup.c				\
91	error.c					\
92	flush_s.c				\
93	free.c					\
94	get_princs_s.c				\
95	get_s.c					\
96	init_s.c				\
97	kadm5_locl.h				\
98	keys.c					\
99	log.c					\
100	marshall.c				\
101	modify_s.c				\
102	password_quality.c			\
103	private.h				\
104	privs_s.c				\
105	randkey_s.c				\
106	rename_s.c				\
107	server_glue.c				\
108	set_keys.c				\
109	set_modifier.c				\
110	admin.h
111
112nodist_libkadm5srv_la_SOURCES = 		\
113	kadm5_err.c				\
114	kadm5_err.h
115
116libkadm5srv_la_DEPENDENCIES =			\
117	version-script.map
118
119dist_iprop_log_SOURCES = iprop-log.c
120nodist_iprop_log_SOURCES = iprop-commands.c
121
122ipropd_master_SOURCES = ipropd_master.c ipropd_common.c iprop.h kadm5_locl.h
123
124ipropd_slave_SOURCES = ipropd_slave.c ipropd_common.c iprop.h kadm5_locl.h
125
126man_MANS = kadm5_pwcheck.3 iprop.8 iprop-log.8
127
128LDADD = \
129	libkadm5srv.la \
130	$(top_builddir)/lib/hdb/libhdb.la \
131	$(top_builddir)/lib/krb5/libkrb5.la \
132	$(top_builddir)/lib/asn1/libasn1.la \
133	$(LIB_hcrypto) \
134	$(LIB_roken) \
135	$(DBLIB) \
136	$(LIB_dlopen) \
137	$(LIB_pidfile)
138
139iprop_log_LDADD = \
140	libkadm5srv.la \
141	$(top_builddir)/lib/hdb/libhdb.la \
142	$(top_builddir)/lib/krb5/libkrb5.la \
143	$(top_builddir)/lib/asn1/libasn1.la \
144	$(LIB_hcrypto) \
145	$(top_builddir)/lib/sl/libsl.la \
146	$(LIB_readline) \
147	$(LIB_roken) \
148	$(DBLIB) \
149	$(LIB_dlopen) \
150	$(LIB_pidfile)
151
152
153iprop-commands.c iprop-commands.h: iprop-commands.in
154	$(SLC) $(srcdir)/iprop-commands.in
155
156$(libkadm5srv_la_OBJECTS): kadm5_err.h
157$(iprop_log_OBJECTS): iprop-commands.h
158
159client_glue.lo server_glue.lo: $(srcdir)/common_glue.c
160
161CLEANFILES = kadm5_err.c kadm5_err.h iprop-commands.h iprop-commands.c
162
163# to help stupid solaris make
164
165kadm5_err.h: kadm5_err.et
166
167$(libkadm5clnt_la_OBJECTS) $(libkadm5srv_la_OBJECTS): $(srcdir)/kadm5-protos.h $(srcdir)/kadm5-private.h
168
169proto_opts = -q -R '^(_|kadm5_c_|kadm5_s_|kadm5_log)' -P comment
170$(srcdir)/kadm5-protos.h:
171	cd $(srcdir); perl ../../cf/make-proto.pl $(proto_opts) \
172		-o kadm5-protos.h \
173		$(dist_libkadm5clnt_la_SOURCES) \
174		$(dist_libkadm5srv_la_SOURCES) \
175		|| rm -f kadm5-protos.h
176
177$(srcdir)/kadm5-private.h:
178	cd $(srcdir); perl ../../cf/make-proto.pl $(proto_opts) \
179		-p kadm5-private.h \
180		$(dist_libkadm5clnt_la_SOURCES) \
181		$(dist_libkadm5srv_la_SOURCES) \
182		|| rm -f kadm5-private.h
183
184EXTRA_DIST = \
185	NTMakefile \
186	iprop-log-version.rc \
187	ipropd-master-version.rc \
188	ipropd-slave-version.rc \
189	libkadm5srv-version.rc \
190	libkadm5srv-exports.def \
191	kadm5_err.et \
192	iprop-commands.in \
193	$(man_MANS) \
194	check-cracklib.pl \
195	flush.c \
196	sample_passwd_check.c \
197	version-script.map
198