xref: /freebsd/crypto/heimdal/kdc/Makefile.am (revision 6a068746777241722b2b32c5d0bc443a2a64d80b)
1# $Id$
2
3include $(top_srcdir)/Makefile.am.common
4
5AM_CPPFLAGS += $(INCLUDE_libintl) $(INCLUDE_krb4) $(INCLUDE_hcrypto) -I$(srcdir)/../lib/krb5
6
7lib_LTLIBRARIES = libkdc.la
8
9bin_PROGRAMS = string2key
10
11sbin_PROGRAMS = kstash
12
13libexec_PROGRAMS = hprop hpropd kdc digest-service
14
15noinst_PROGRAMS = kdc-replay
16
17man_MANS = kdc.8 kstash.8 hprop.8 hpropd.8 string2key.8
18
19hprop_SOURCES = hprop.c mit_dump.c hprop.h
20hpropd_SOURCES = hpropd.c hprop.h
21
22kstash_SOURCES = kstash.c headers.h
23
24string2key_SOURCES = string2key.c headers.h
25
26digest_service_SOURCES = \
27	digest-service.c
28
29kdc_SOURCES = connect.c	\
30	config.c	\
31	announce.c	\
32	main.c
33
34libkdc_la_SOURCES = 		\
35	kdc-private.h	 	\
36	kdc-protos.h	 	\
37	default_config.c 	\
38	set_dbinfo.c	 	\
39	digest.c		\
40	kdc_locl.h		\
41	kerberos5.c		\
42	krb5tgs.c		\
43	pkinit.c		\
44	log.c			\
45	misc.c			\
46	kx509.c			\
47	process.c		\
48	windc.c			\
49	rx.h
50
51
52$(libkdc_la_OBJECTS): $(srcdir)/kdc-protos.h $(srcdir)/kdc-private.h
53
54libkdc_la_LDFLAGS = -version-info 2:0:0
55
56if versionscript
57libkdc_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
58endif
59$(libkdc_la_OBJECTS): $(srcdir)/version-script.map
60
61$(srcdir)/kdc-protos.h:
62	cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -o kdc-protos.h $(libkdc_la_SOURCES) || rm -f kdc-protos.h
63
64$(srcdir)/kdc-private.h:
65	cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -p kdc-private.h $(libkdc_la_SOURCES) || rm -f kdc-private.h
66
67
68hprop_LDADD = \
69	$(top_builddir)/lib/hdb/libhdb.la \
70	$(top_builddir)/lib/krb5/libkrb5.la \
71	$(LIB_kdb) $(LIB_krb4) \
72	$(LIB_hcrypto) \
73	$(top_builddir)/lib/asn1/libasn1.la \
74	$(LIB_roken) \
75	$(DBLIB)
76
77hpropd_LDADD = \
78	$(top_builddir)/lib/hdb/libhdb.la \
79	$(top_builddir)/lib/krb5/libkrb5.la \
80	$(LIB_kdb) $(LIB_krb4) \
81	$(LIB_hcrypto) \
82	$(top_builddir)/lib/asn1/libasn1.la \
83	$(LIB_roken) \
84	$(DBLIB)
85
86if PKINIT
87LIB_pkinit = $(top_builddir)/lib/hx509/libhx509.la
88endif
89
90libkdc_la_LIBADD = \
91	$(LIB_pkinit) \
92	$(top_builddir)/lib/hdb/libhdb.la \
93	$(top_builddir)/lib/krb5/libkrb5.la \
94	$(LIB_kdb) $(LIB_krb4) \
95	$(top_builddir)/lib/ntlm/libheimntlm.la \
96	$(LIB_hcrypto) \
97	$(top_builddir)/lib/asn1/libasn1.la \
98	$(LIB_roken) \
99	$(DBLIB)
100
101LDADD = $(top_builddir)/lib/hdb/libhdb.la \
102	$(top_builddir)/lib/krb5/libkrb5.la \
103	$(LIB_krb4) \
104	$(LIB_hcrypto) \
105	$(top_builddir)/lib/asn1/libasn1.la \
106	$(LIB_roken) \
107	$(DBLIB)
108
109kdc_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(CAPNG_LIBS)
110
111if FRAMEWORK_SECURITY
112kdc_LDFLAGS = -framework SystemConfiguration -framework CoreFoundation
113endif
114kdc_CFLAGS = $(CAPNG_CFLAGS)
115
116digest_service_LDADD = \
117	libkdc.la \
118	$(top_builddir)/lib/ntlm/libheimntlm.la \
119	$(top_builddir)/lib/ipc/libheim-ipcs.la \
120	$(LDADD) $(LIB_pidfile)
121kdc_replay_LDADD = libkdc.la $(LDADD) $(LIB_pidfile)
122
123include_HEADERS = kdc.h kdc-protos.h
124
125
126krb5dir = $(includedir)/krb5
127krb5_HEADERS = windc_plugin.h
128
129build_HEADERZ = $(krb5_HEADERS) # XXX
130
131EXTRA_DIST = \
132	hprop-version.rc \
133	hpropd-version.rc \
134	kdc-version.rc \
135	kstash-version.rc \
136	libkdc-version.rc \
137	string2key-version.rc \
138	libkdc-exports.def \
139	NTMakefile $(man_MANS) version-script.map
140