3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(INCLUDE_libintl) $(INCLUDE_openssl_crypto) -I$(srcdir)/../lib/krb5
7 lib_LTLIBRARIES = libkdc.la
9 bin_PROGRAMS = string2key
11 sbin_PROGRAMS = kstash
13 libexec_PROGRAMS = hprop hpropd kdc digest-service
15 noinst_PROGRAMS = kdc-replay kdc-tester
17 man_MANS = kdc.8 kstash.8 hprop.8 hpropd.8 string2key.8
19 hprop_SOURCES = hprop.c mit_dump.c hprop.h
20 hpropd_SOURCES = hpropd.c hprop.h
22 kstash_SOURCES = kstash.c headers.h
24 string2key_SOURCES = string2key.c headers.h
26 digest_service_SOURCES = \
29 kdc_SOURCES = connect.c \
34 kdc_tester_SOURCES = \
55 KDC_PROTOS = $(srcdir)/kdc-protos.h $(srcdir)/kdc-private.h
57 ALL_OBJECTS = $(kdc_OBJECTS)
58 ALL_OBJECTS += $(kdc_replay_OBJECTS)
59 ALL_OBJECTS += $(kdc_tester_OBJECTS)
60 ALL_OBJECTS += $(libkdc_la_OBJECTS)
61 ALL_OBJECTS += $(string2key_OBJECTS)
62 ALL_OBJECTS += $(kstash_OBJECTS)
63 ALL_OBJECTS += $(hprop_OBJECTS)
64 ALL_OBJECTS += $(hpropd_OBJECTS)
65 ALL_OBJECTS += $(digest_service_OBJECTS)
67 $(ALL_OBJECTS): $(KDC_PROTOS)
69 libkdc_la_LDFLAGS = -version-info 2:0:0
72 libkdc_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
74 $(libkdc_la_OBJECTS): $(srcdir)/version-script.map
76 $(srcdir)/kdc-protos.h: $(libkdc_la_SOURCES)
77 cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -o kdc-protos.h $(libkdc_la_SOURCES) || rm -f kdc-protos.h
79 $(srcdir)/kdc-private.h: $(libkdc_la_SOURCES)
80 cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -p kdc-private.h $(libkdc_la_SOURCES) || rm -f kdc-private.h
84 $(top_builddir)/lib/hdb/libhdb.la \
85 $(top_builddir)/lib/krb5/libkrb5.la \
88 $(top_builddir)/lib/asn1/libasn1.la \
90 $(DB3LIB) $(DB1LIB) $(LMDBLIB) $(NDBMLIB)
93 $(top_builddir)/lib/hdb/libhdb.la \
94 $(top_builddir)/lib/krb5/libkrb5.la \
97 $(top_builddir)/lib/asn1/libasn1.la \
99 $(DB3LIB) $(DB1LIB) $(LMDBLIB) $(NDBMLIB)
102 LIB_pkinit = $(top_builddir)/lib/hx509/libhx509.la
107 $(top_builddir)/lib/hdb/libhdb.la \
108 $(top_builddir)/lib/krb5/libkrb5.la \
110 $(top_builddir)/lib/ntlm/libheimntlm.la \
112 $(LIB_openssl_crypto) \
113 $(top_builddir)/lib/asn1/libasn1.la \
115 $(DB3LIB) $(DB1LIB) $(LMDBLIB) $(NDBMLIB)
117 LDADD = $(top_builddir)/lib/hdb/libhdb.la \
118 $(top_builddir)/lib/krb5/libkrb5.la \
120 $(top_builddir)/lib/asn1/libasn1.la \
122 $(DB3LIB) $(DB1LIB) $(LMDBLIB) $(NDBMLIB)
124 kdc_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(CAPNG_LIBS)
126 if FRAMEWORK_SECURITY
127 kdc_LDFLAGS = -framework SystemConfiguration -framework CoreFoundation
129 kdc_CFLAGS = $(CAPNG_CFLAGS)
131 digest_service_LDADD = \
133 $(top_builddir)/lib/ntlm/libheimntlm.la \
134 $(top_builddir)/lib/ipc/libheim-ipcs.la \
135 $(LDADD) $(LIB_pidfile)
136 kdc_replay_LDADD = libkdc.la $(LDADD) $(LIB_pidfile)
137 kdc_tester_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(LIB_heimbase)
139 include_HEADERS = kdc.h $(srcdir)/kdc-protos.h
141 noinst_HEADERS = $(srcdir)/kdc-private.h
143 krb5dir = $(includedir)/krb5
144 krb5_HEADERS = windc_plugin.h
146 build_HEADERZ = $(krb5_HEADERS) # XXX
154 string2key-version.rc \
156 NTMakefile $(man_MANS) version-script.map