Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / crypto / dist / heimdal / kdc / Makefile.am
blob39a2e7fcacc4a36e35b8975a25dbee9f55a4e0b9
1 # $Heimdal: Makefile.am 22489 2008-01-21 11:49:06Z lha $
2 # $NetBSD$
4 include $(top_srcdir)/Makefile.am.common
6 AM_CPPFLAGS += $(INCLUDE_krb4) $(INCLUDE_hcrypto) -I$(srcdir)/../lib/krb5
8 lib_LTLIBRARIES = libkdc.la
10 bin_PROGRAMS = string2key
12 sbin_PROGRAMS = kstash
14 libexec_PROGRAMS = hprop hpropd kdc
16 noinst_PROGRAMS = kdc-replay
18 man_MANS = kdc.8 kstash.8 hprop.8 hpropd.8 string2key.8
20 hprop_SOURCES = hprop.c mit_dump.c v4_dump.c hprop.h kadb.h 
21 hpropd_SOURCES = hpropd.c hprop.h
23 kstash_SOURCES = kstash.c headers.h
25 string2key_SOURCES = string2key.c headers.h
27 kdc_SOURCES = connect.c \
28         config.c        \
29         main.c
31 libkdc_la_SOURCES =             \
32         kdc-private.h           \
33         kdc-protos.h            \
34         default_config.c        \
35         set_dbinfo.c            \
36         digest.c                \
37         kdc_locl.h              \
38         kerberos5.c             \
39         krb5tgs.c               \
40         pkinit.c                \
41         log.c                   \
42         misc.c                  \
43         524.c                   \
44         kerberos4.c             \
45         kaserver.c              \
46         kx509.c                 \
47         process.c               \
48         windc.c                 \
49         rx.h
52 $(libkdc_la_OBJECTS): $(srcdir)/kdc-protos.h $(srcdir)/kdc-private.h
54 libkdc_la_LDFLAGS = -version-info 2:0:0
56 if versionscript
57 libkdc_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
58 endif
59 $(libkdc_la_OBJECTS): $(srcdir)/version-script.map
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
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
68 hprop_LDADD = \
69         $(top_builddir)/lib/hdb/libhdb.la \
70         $(LIB_openldap) \
71         $(top_builddir)/lib/krb5/libkrb5.la \
72         $(LIB_kdb) $(LIB_krb4) \
73         $(LIB_hcrypto) \
74         $(top_builddir)/lib/asn1/libasn1.la \
75         $(LIB_roken) \
76         $(DBLIB) 
78 hpropd_LDADD = \
79         $(top_builddir)/lib/hdb/libhdb.la \
80         $(LIB_openldap) \
81         $(top_builddir)/lib/krb5/libkrb5.la \
82         $(LIB_kdb) $(LIB_krb4) \
83         $(LIB_hcrypto) \
84         $(top_builddir)/lib/asn1/libasn1.la \
85         $(LIB_roken) \
86         $(DBLIB) 
88 if PKINIT
89 LIB_pkinit = $(top_builddir)/lib/hx509/libhx509.la
90 endif
92 libkdc_la_LIBADD = \
93         $(LIB_pkinit) \
94         $(top_builddir)/lib/hdb/libhdb.la \
95         $(LIB_openldap) \
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         $(LIB_openldap) \
106         $(top_builddir)/lib/krb5/libkrb5.la \
107         $(LIB_krb4) \
108         $(LIB_hcrypto) \
109         $(top_builddir)/lib/asn1/libasn1.la \
110         $(LIB_roken) \
111         $(DBLIB)
113 kdc_LDADD = libkdc.la $(LDADD) $(LIB_pidfile)
114 kdc_replay_LDADD = $(kdc_LDADD)
116 include_HEADERS = kdc.h kdc-protos.h
118 krb5dir = $(includedir)/krb5
119 krb5_HEADERS = windc_plugin.h
121 build_HEADERZ = $(krb5_HEADERS) # XXX
123 EXTRA_DIST = $(man_MANS) version-script.map