xref: /freebsd/crypto/heimdal/lib/kadm5/Makefile.am (revision 6990ffd8a95caaba6858ad44ff1b3157d1efba8f)
1# $Id: Makefile.am,v 1.44 2001/01/30 01:56:00 assar Exp $
2
3include $(top_srcdir)/Makefile.am.common
4
5lib_LTLIBRARIES = libkadm5srv.la libkadm5clnt.la
6libkadm5srv_la_LDFLAGS = -version-info 7:3:0
7libkadm5clnt_la_LDFLAGS = -version-info 6:1:2
8sbin_PROGRAMS = dump_log replay_log truncate_log
9
10libexec_PROGRAMS = ipropd-master ipropd-slave
11
12kadm5includedir = $(includedir)/kadm5
13buildkadm5include = $(buildinclude)/kadm5
14
15kadm5include_HEADERS = kadm5_err.h admin.h private.h \
16	kadm5-protos.h kadm5-private.h
17
18install-build-headers:: $(kadm5include_HEADERS)
19	@foo='$(kadm5include_HEADERS)'; \
20	for f in $$foo; do \
21		f=`basename $$f`; \
22		if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
23		else file="$$f"; fi; \
24		if cmp -s  $$file $(buildkadm5include)/$$f 2> /dev/null ; then \
25		: ; else \
26			echo "cp $$file $(buildkadm5include)/$$f";\
27			cp $$file $(buildkadm5include)/$$f; \
28		fi ; \
29	done
30
31C_SOURCES =					\
32	admin.h					\
33	chpass_c.c				\
34	common_glue.c				\
35	create_c.c				\
36	delete_c.c				\
37	destroy_c.c				\
38	flush_c.c				\
39	free.c					\
40	get_c.c					\
41	get_princs_c.c				\
42	init_c.c				\
43	kadm5_err.c				\
44	kadm5_locl.h				\
45	marshall.c				\
46	modify_c.c				\
47	private.h				\
48	privs_c.c				\
49	randkey_c.c				\
50	rename_c.c				\
51	send_recv.c
52
53S_SOURCES =					\
54	acl.c					\
55	admin.h					\
56	bump_pw_expire.c			\
57	chpass_s.c				\
58	common_glue.c				\
59	context_s.c				\
60	create_s.c				\
61	delete_s.c				\
62	destroy_s.c				\
63	ent_setup.c				\
64	error.c					\
65	flush_s.c				\
66	free.c					\
67	get_princs_s.c				\
68	get_s.c					\
69	init_s.c				\
70	kadm5_err.c				\
71	kadm5_locl.h				\
72	keys.c					\
73	log.c					\
74	marshall.c				\
75	modify_s.c				\
76	private.h				\
77	privs_s.c				\
78	randkey_s.c				\
79	rename_s.c				\
80	set_keys.c				\
81	set_modifier.c				\
82	password_quality.c
83
84libkadm5srv_la_SOURCES = $(S_SOURCES) server_glue.c
85libkadm5clnt_la_SOURCES = $(C_SOURCES) client_glue.c
86
87dump_log_SOURCES = dump_log.c kadm5_locl.h
88
89replay_log_SOURCES = replay_log.c kadm5_locl.h
90
91ipropd_master_SOURCES = ipropd_master.c iprop.h kadm5_locl.h
92
93ipropd_slave_SOURCES = ipropd_slave.c iprop.h kadm5_locl.h
94
95truncate_log_SOURCES = truncate_log.c
96
97LDADD = \
98	libkadm5srv.la \
99	$(top_builddir)/lib/hdb/libhdb.la \
100	$(LIB_openldap) \
101	$(top_builddir)/lib/krb5/libkrb5.la \
102	$(top_builddir)/lib/asn1/libasn1.la \
103	$(LIB_des) \
104	$(LIB_roken) \
105	$(DBLIB) \
106	$(LIB_dlopen)
107
108CLEANFILES = kadm5_err.c kadm5_err.h
109
110$(libkadm5srv_la_OBJECTS): kadm5_err.h
111
112client_glue.lo server_glue.lo: $(srcdir)/common_glue.c
113
114# to help stupid solaris make
115
116kadm5_err.h: kadm5_err.et
117