Ensure data structures allocated by hprop are initialized
[heimdal.git] / kdc / Makefile.am
blobb87fa02d5dcb3bcf71ca261e1eed3908257bb7ea
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(INCLUDE_libintl) $(INCLUDE_krb4) $(INCLUDE_hcrypto) -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
17 man_MANS = kdc.8 kstash.8 hprop.8 hpropd.8 string2key.8
19 hprop_SOURCES = hprop.c mit_dump.c v4_dump.c hprop.h kadb.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 = \
27         digest-service.c
29 kdc_SOURCES = connect.c \
30         config.c        \
31         announce.c      \
32         main.c
34 libkdc_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         524.c                   \
47         kerberos4.c             \
48         kaserver.c              \
49         kx509.c                 \
50         process.c               \
51         windc.c                 \
52         rx.h
55 $(libkdc_la_OBJECTS): $(srcdir)/kdc-protos.h $(srcdir)/kdc-private.h
57 libkdc_la_LDFLAGS = -version-info 2:0:0
59 if versionscript
60 libkdc_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
61 endif
62 $(libkdc_la_OBJECTS): $(srcdir)/version-script.map
64 $(srcdir)/kdc-protos.h:
65         cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -o kdc-protos.h $(libkdc_la_SOURCES) || rm -f kdc-protos.h
67 $(srcdir)/kdc-private.h:
68         cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -p kdc-private.h $(libkdc_la_SOURCES) || rm -f kdc-private.h
71 hprop_LDADD = \
72         $(top_builddir)/lib/hdb/libhdb.la \
73         $(top_builddir)/lib/krb5/libkrb5.la \
74         $(LIB_kdb) $(LIB_krb4) \
75         $(LIB_hcrypto) \
76         $(top_builddir)/lib/asn1/libasn1.la \
77         $(LIB_roken) \
78         $(DBLIB) 
80 hpropd_LDADD = \
81         $(top_builddir)/lib/hdb/libhdb.la \
82         $(top_builddir)/lib/krb5/libkrb5.la \
83         $(LIB_kdb) $(LIB_krb4) \
84         $(LIB_hcrypto) \
85         $(top_builddir)/lib/asn1/libasn1.la \
86         $(LIB_roken) \
87         $(DBLIB) 
89 if PKINIT
90 LIB_pkinit = $(top_builddir)/lib/hx509/libhx509.la
91 endif
93 libkdc_la_LIBADD = \
94         $(LIB_pkinit) \
95         $(top_builddir)/lib/hdb/libhdb.la \
96         $(top_builddir)/lib/krb5/libkrb5.la \
97         $(LIB_kdb) $(LIB_krb4) \
98         $(top_builddir)/lib/ntlm/libheimntlm.la \
99         $(LIB_hcrypto) \
100         $(top_builddir)/lib/asn1/libasn1.la \
101         $(LIB_roken) \
102         $(DBLIB) 
104 LDADD = $(top_builddir)/lib/hdb/libhdb.la \
105         $(top_builddir)/lib/krb5/libkrb5.la \
106         $(LIB_krb4) \
107         $(LIB_hcrypto) \
108         $(top_builddir)/lib/asn1/libasn1.la \
109         $(LIB_roken) \
110         $(DBLIB)
112 kdc_LDADD = libkdc.la $(LDADD) $(LIB_pidfile)
114 if FRAMEWORK_SECURITY
115 kdc_LDFLAGS = -framework SystemConfiguration -framework CoreFoundation
116 endif
118 digest_service_LDADD = \
119         libkdc.la \
120         ../lib/ipc/libheim-ipcs.la \
121         $(LDADD) $(LIB_pidfile)
122 kdc_replay_LDADD = libkdc.la $(LDADD) $(LIB_pidfile)
124 include_HEADERS = kdc.h kdc-protos.h
127 krb5dir = $(includedir)/krb5
128 krb5_HEADERS = windc_plugin.h
130 build_HEADERZ = $(krb5_HEADERS) # XXX
132 EXTRA_DIST = $(man_MANS) version-script.map