3 include $(top_srcdir)/Makefile.am.common
5 WFLAGS += $(WFLAGS_ENUM_CONV)
7 AM_CPPFLAGS += $(INCLUDE_libintl) $(INCLUDE_openssl_crypto) -I$(srcdir)/../lib/krb5
9 lib_LTLIBRARIES = ipc_csr_authorizer.la \
10 negotiate_token_validator.la \
14 lib_LTLIBRARIES += cjwt_token_validator.la
17 lib_LTLIBRARIES += altsecid_gss_preauth_authorizer.la
21 bin_PROGRAMS = string2key
23 sbin_PROGRAMS = kstash
25 libexec_PROGRAMS = hprop hpropd kdc digest-service \
26 test_token_validator test_csr_authorizer test_kdc_ca
28 noinst_PROGRAMS = kdc-replay kdc-tester
30 man_MANS = bx509d.8 httpkadmind.8 kdc.8 kstash.8 hprop.8 hpropd.8 string2key.8
32 hprop_SOURCES = hprop.c mit_dump.c hprop.h
33 hpropd_SOURCES = hpropd.c hprop.h
35 kstash_SOURCES = kstash.c headers.h
37 string2key_SOURCES = string2key.c headers.h
40 bx509d_SOURCES = bx509d.c
41 bx509d_AM_CPPFLAGS = $(AM_CPPFLAGS) $(MICROHTTPD_CFLAGS)
43 $(top_builddir)/lib/hdb/libhdb.la \
49 $(top_builddir)/lib/sl/libsl.la \
50 $(top_builddir)/lib/asn1/libasn1.la \
51 $(top_builddir)/lib/krb5/libkrb5.la \
52 $(top_builddir)/lib/hx509/libhx509.la \
53 $(top_builddir)/lib/gssapi/libgssapi.la
54 libexec_PROGRAMS += bx509d
56 httpkadmind_SOURCES = httpkadmind.c
57 httpkadmind_AM_CPPFLAGS = $(AM_CPPFLAGS) $(MICROHTTPD_CFLAGS)
58 httpkadmind_LDADD = -ldl \
59 $(top_builddir)/lib/hdb/libhdb.la \
60 $(top_builddir)/lib/kadm5/libkadm5clnt.la \
61 $(top_builddir)/lib/kadm5/libkadm5srv.la \
67 $(top_builddir)/lib/sl/libsl.la \
68 $(top_builddir)/lib/asn1/libasn1.la \
69 $(top_builddir)/lib/krb5/libkrb5.la \
70 $(top_builddir)/lib/hx509/libhx509.la \
71 $(top_builddir)/lib/gssapi/libgssapi.la
72 libexec_PROGRAMS += httpkadmind
75 digest_service_SOURCES = \
78 kdc_SOURCES = connect.c \
83 kdc_tester_SOURCES = \
87 test_token_validator_SOURCES = test_token_validator.c
88 test_csr_authorizer_SOURCES = test_csr_authorizer.c
89 test_kdc_ca_SOURCES = test_kdc_ca.c
91 # Token plugins (for bx509d)
93 cjwt_token_validator_la_SOURCES = cjwt_token_validator.c
94 cjwt_token_validator_la_CFLAGS = $(CJSON_CFLAGS) $(CJWT_CFLAGS)
95 cjwt_token_validator_la_LDFLAGS = -module $(CJSON_LIBS) $(CJWT_LIBS)
98 negotiate_token_validator_la_SOURCES = negotiate_token_validator.c
99 negotiate_token_validator_la_LDFLAGS = -module $(LIB_gssapi)
100 # CSR Authorizer plugins (for kdc/kx509 and bx509d)
101 ipc_csr_authorizer_la_SOURCES = ipc_csr_authorizer.c
102 ipc_csr_authorizer_la_LDFLAGS = -module \
103 $(top_builddir)/lib/krb5/libkrb5.la \
104 $(top_builddir)/lib/hx509/libhx509.la \
105 $(top_builddir)/lib/ipc/libheim-ipcc.la \
106 $(top_builddir)/lib/roken/libroken.la
108 # GSS-API authorization plugins
110 altsecid_gss_preauth_authorizer_la_SOURCES = altsecid_gss_preauth_authorizer.c
111 altsecid_gss_preauth_authorizer_la_LDFLAGS = -module \
112 $(top_builddir)/lib/gssapi/libgssapi.la \
113 $(top_builddir)/lib/krb5/libkrb5.la \
117 libkdc_la_CPPFLAGS = -DBUILD_KDC_LIB $(AM_CPPFLAGS)
119 libkdc_la_SOURCES = \
140 KDC_PROTOS = $(srcdir)/kdc-protos.h $(srcdir)/kdc-private.h
142 ALL_OBJECTS = $(kdc_OBJECTS)
143 ALL_OBJECTS += $(kdc_replay_OBJECTS)
144 ALL_OBJECTS += $(kdc_tester_OBJECTS)
145 ALL_OBJECTS += $(test_token_validator_OBJECTS)
146 ALL_OBJECTS += $(test_csr_authorizer_OBJECTS)
147 ALL_OBJECTS += $(test_kdc_ca_OBJECTS)
148 ALL_OBJECTS += $(libkdc_la_OBJECTS)
149 ALL_OBJECTS += $(string2key_OBJECTS)
150 ALL_OBJECTS += $(kstash_OBJECTS)
151 ALL_OBJECTS += $(hprop_OBJECTS)
152 ALL_OBJECTS += $(hpropd_OBJECTS)
153 ALL_OBJECTS += $(digest_service_OBJECTS)
154 ALL_OBJECTS += $(bx509d_OBJECTS)
155 ALL_OBJECTS += $(httpkadmind_OBJECTS)
156 ALL_OBJECTS += $(cjwt_token_validator_la_OBJECTS)
157 ALL_OBJECTS += $(test_token_validator_OBJECTS)
158 ALL_OBJECTS += $(test_csr_authorizer_OBJECTS)
159 ALL_OBJECTS += $(test_kdc_ca_OBJECTS)
160 ALL_OBJECTS += $(ipc_csr_authorizer_la_OBJECTS)
161 ALL_OBJECTS += $(negotiate_token_validator_la_OBJECTS)
163 $(ALL_OBJECTS): $(KDC_PROTOS)
165 libkdc_la_LDFLAGS = -version-info 2:0:0
168 libkdc_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
171 $(libkdc_la_OBJECTS): $(srcdir)/version-script.map
173 $(srcdir)/kdc-protos.h: $(libkdc_la_SOURCES)
174 cd $(srcdir) && perl ../cf/make-proto.pl -E KDC_LIB -q -P comment -o kdc-protos.h $(libkdc_la_SOURCES) || rm -f kdc-protos.h
176 $(srcdir)/kdc-private.h: $(libkdc_la_SOURCES)
177 cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -p kdc-private.h $(libkdc_la_SOURCES) || rm -f kdc-private.h
181 $(top_builddir)/lib/hdb/libhdb.la \
182 $(top_builddir)/lib/krb5/libkrb5.la \
185 $(top_builddir)/lib/asn1/libasn1.la \
187 $(DB3LIB) $(DB1LIB) $(LMDBLIB) $(NDBMLIB)
190 $(top_builddir)/lib/hdb/libhdb.la \
191 $(top_builddir)/lib/krb5/libkrb5.la \
194 $(top_builddir)/lib/asn1/libasn1.la \
196 $(DB3LIB) $(DB1LIB) $(LMDBLIB) $(NDBMLIB)
199 LIB_pkinit = $(top_builddir)/lib/hx509/libhx509.la
204 $(top_builddir)/lib/hdb/libhdb.la \
205 $(top_builddir)/lib/krb5/libkrb5.la \
206 $(top_builddir)/lib/gssapi/libgssapi.la \
207 $(top_builddir)/lib/gss_preauth/libgss_preauth.la \
209 $(top_builddir)/lib/ntlm/libheimntlm.la \
211 $(LIB_openssl_crypto) \
212 $(top_builddir)/lib/asn1/libasn1.la \
214 $(DB3LIB) $(DB1LIB) $(LMDBLIB) $(NDBMLIB)
216 LDADD = $(top_builddir)/lib/hdb/libhdb.la \
217 $(top_builddir)/lib/krb5/libkrb5.la \
219 $(top_builddir)/lib/asn1/libasn1.la \
221 $(DB3LIB) $(DB1LIB) $(LMDBLIB) $(NDBMLIB)
223 kdc_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(CAPNG_LIBS)
225 if FRAMEWORK_SECURITY
226 kdc_LDFLAGS = -framework SystemConfiguration -framework CoreFoundation
228 kdc_CFLAGS = $(CAPNG_CFLAGS)
230 digest_service_LDADD = \
232 $(top_builddir)/lib/ntlm/libheimntlm.la \
233 $(top_builddir)/lib/ipc/libheim-ipcs.la \
234 $(LDADD) $(LIB_pidfile)
235 kdc_replay_LDADD = libkdc.la $(LDADD) $(LIB_pidfile)
236 kdc_tester_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(LIB_heimbase)
237 test_token_validator_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(LIB_heimbase) $(LIB_gssapi)
238 test_csr_authorizer_LDADD = libkdc.la \
239 $(top_builddir)/lib/hx509/libhx509.la \
243 $(top_builddir)/lib/ipc/libheim-ipcs.la
244 test_kdc_ca_LDADD = libkdc.la $(top_builddir)/lib/hx509/libhx509.la $(LDADD) $(LIB_pidfile) $(LIB_heimbase)
246 include_HEADERS = kdc.h $(srcdir)/kdc-protos.h
248 noinst_HEADERS = $(srcdir)/kdc-private.h
250 krb5dir = $(includedir)/krb5
251 krb5_HEADERS = kdc-audit.h kdc-plugin.h kdc-accessors.h token_validator_plugin.h csr_authorizer_plugin.h gss_preauth_authorizer_plugin.h
253 build_HEADERZ = $(krb5_HEADERS) # XXX
261 string2key-version.rc \
263 NTMakefile $(man_MANS) version-script.map