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