Windows: Wix3 use ForceDeleteOnUninstall
[heimdal.git] / kdc / Makefile.am
blob2102b54eebf1fc4fe25414fe13d46f03d0b32eda
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(INCLUDE_libintl) $(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 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 = \
27         digest-service.c
29 kdc_SOURCES = connect.c \
30         config.c        \
31         announce.c      \
32         main.c
34 kdc_tester_SOURCES = \
35         config.c        \
36         kdc-tester.c
38 libkdc_la_SOURCES =             \
39         default_config.c        \
40         set_dbinfo.c            \
41         digest.c                \
42         fast.c                  \
43         kdc_locl.h              \
44         kerberos5.c             \
45         krb5tgs.c               \
46         pkinit.c                \
47         log.c                   \
48         misc.c                  \
49         kx509.c                 \
50         process.c               \
51         windc.c                 \
52         rx.h
54 KDC_PROTOS = $(srcdir)/kdc-protos.h $(srcdir)/kdc-private.h
56 ALL_OBJECTS  = $(kdc_OBJECTS)
57 ALL_OBJECTS += $(kdc_replay_OBJECTS)
58 ALL_OBJECTS += $(kdc_tester_OBJECTS)
59 ALL_OBJECTS += $(libkdc_la_OBJECTS)
60 ALL_OBJECTS += $(string_to_key_OBJECTS)
61 ALL_OBJECTS += $(kstash_OBJECTS)
62 ALL_OBJECTS += $(hprop_OBJECTS)
63 ALL_OBJECTS += $(hpropd_OBJECTS)
64 ALL_OBJECTS += $(digest_service_OBJECTS)
66 $(ALL_OBJECTS): $(KDC_PROTOS)
68 libkdc_la_LDFLAGS = -version-info 2:0:0
70 if versionscript
71 libkdc_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
72 endif
73 $(libkdc_la_OBJECTS): $(srcdir)/version-script.map
75 $(srcdir)/kdc-protos.h: $(libkdc_la_SOURCES)
76         cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -o kdc-protos.h $(libkdc_la_SOURCES) || rm -f kdc-protos.h
78 $(srcdir)/kdc-private.h: $(libkdc_la_SOURCES)
79         cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -p kdc-private.h $(libkdc_la_SOURCES) || rm -f kdc-private.h
82 hprop_LDADD = \
83         $(top_builddir)/lib/hdb/libhdb.la \
84         $(top_builddir)/lib/krb5/libkrb5.la \
85         $(LIB_kdb)  \
86         $(LIB_hcrypto) \
87         $(top_builddir)/lib/asn1/libasn1.la \
88         $(LIB_roken) \
89         $(DBLIB) 
91 hpropd_LDADD = \
92         $(top_builddir)/lib/hdb/libhdb.la \
93         $(top_builddir)/lib/krb5/libkrb5.la \
94         $(LIB_kdb)  \
95         $(LIB_hcrypto) \
96         $(top_builddir)/lib/asn1/libasn1.la \
97         $(LIB_roken) \
98         $(DBLIB) 
100 if PKINIT
101 LIB_pkinit = $(top_builddir)/lib/hx509/libhx509.la
102 endif
104 libkdc_la_LIBADD = \
105         $(LIB_pkinit) \
106         $(top_builddir)/lib/hdb/libhdb.la \
107         $(top_builddir)/lib/krb5/libkrb5.la \
108         $(LIB_kdb)  \
109         $(top_builddir)/lib/ntlm/libheimntlm.la \
110         $(LIB_hcrypto) \
111         $(top_builddir)/lib/asn1/libasn1.la \
112         $(LIB_roken) \
113         $(DBLIB) 
115 LDADD = $(top_builddir)/lib/hdb/libhdb.la \
116         $(top_builddir)/lib/krb5/libkrb5.la \
117         $(LIB_hcrypto) \
118         $(top_builddir)/lib/asn1/libasn1.la \
119         $(LIB_roken) \
120         $(DBLIB)
122 kdc_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(CAPNG_LIBS)
124 if FRAMEWORK_SECURITY
125 kdc_LDFLAGS = -framework SystemConfiguration -framework CoreFoundation
126 endif
127 kdc_CFLAGS = $(CAPNG_CFLAGS)
129 digest_service_LDADD = \
130         libkdc.la \
131         $(top_builddir)/lib/ntlm/libheimntlm.la \
132         $(top_builddir)/lib/ipc/libheim-ipcs.la \
133         $(LDADD) $(LIB_pidfile)
134 kdc_replay_LDADD = libkdc.la $(LDADD) $(LIB_pidfile)
135 kdc_tester_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(LIB_heimbase)
137 include_HEADERS = kdc.h $(srcdir)/kdc-protos.h
140 krb5dir = $(includedir)/krb5
141 krb5_HEADERS = windc_plugin.h
143 build_HEADERZ = $(krb5_HEADERS) # XXX
145 EXTRA_DIST = \
146         hprop-version.rc \
147         hpropd-version.rc \
148         kdc-version.rc \
149         kstash-version.rc \
150         libkdc-version.rc \
151         string2key-version.rc \
152         libkdc-exports.def \
153         NTMakefile $(man_MANS) version-script.map