heimdal:lib/asn1: try to fix the build on IRIX
[heimdal.git] / kdc / Makefile.am
blob5c51bde132949062c4c7aa447ae0be828e4855b7
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         kdc-private.h           \
40         kdc-protos.h            \
41         default_config.c        \
42         set_dbinfo.c            \
43         digest.c                \
44         fast.c                  \
45         kdc_locl.h              \
46         kerberos5.c             \
47         krb5tgs.c               \
48         pkinit.c                \
49         log.c                   \
50         misc.c                  \
51         kx509.c                 \
52         process.c               \
53         windc.c                 \
54         rx.h
57 $(libkdc_la_OBJECTS): $(srcdir)/kdc-protos.h $(srcdir)/kdc-private.h
59 libkdc_la_LDFLAGS = -version-info 2:0:0
61 if versionscript
62 libkdc_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
63 endif
64 $(libkdc_la_OBJECTS): $(srcdir)/version-script.map
66 $(srcdir)/kdc-protos.h:
67         cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -o kdc-protos.h $(libkdc_la_SOURCES) || rm -f kdc-protos.h
69 $(srcdir)/kdc-private.h:
70         cd $(srcdir) && perl ../cf/make-proto.pl -q -P comment -p kdc-private.h $(libkdc_la_SOURCES) || rm -f kdc-private.h
73 hprop_LDADD = \
74         $(top_builddir)/lib/hdb/libhdb.la \
75         $(top_builddir)/lib/krb5/libkrb5.la \
76         $(LIB_kdb)  \
77         $(LIB_hcrypto) \
78         $(top_builddir)/lib/asn1/libasn1.la \
79         $(LIB_roken) \
80         $(DBLIB) 
82 hpropd_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 if PKINIT
92 LIB_pkinit = $(top_builddir)/lib/hx509/libhx509.la
93 endif
95 libkdc_la_LIBADD = \
96         $(LIB_pkinit) \
97         $(top_builddir)/lib/hdb/libhdb.la \
98         $(top_builddir)/lib/krb5/libkrb5.la \
99         $(LIB_kdb)  \
100         $(top_builddir)/lib/ntlm/libheimntlm.la \
101         $(LIB_hcrypto) \
102         $(top_builddir)/lib/asn1/libasn1.la \
103         $(LIB_roken) \
104         $(DBLIB) 
106 LDADD = $(top_builddir)/lib/hdb/libhdb.la \
107         $(top_builddir)/lib/krb5/libkrb5.la \
108         $(LIB_hcrypto) \
109         $(top_builddir)/lib/asn1/libasn1.la \
110         $(LIB_roken) \
111         $(DBLIB)
113 kdc_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(CAPNG_LIBS)
115 if FRAMEWORK_SECURITY
116 kdc_LDFLAGS = -framework SystemConfiguration -framework CoreFoundation
117 endif
118 kdc_CFLAGS = $(CAPNG_CFLAGS)
120 digest_service_LDADD = \
121         libkdc.la \
122         $(top_builddir)/lib/ntlm/libheimntlm.la \
123         $(top_builddir)/lib/ipc/libheim-ipcs.la \
124         $(LDADD) $(LIB_pidfile)
125 kdc_replay_LDADD = libkdc.la $(LDADD) $(LIB_pidfile)
126 kdc_tester_LDADD = libkdc.la $(LDADD) $(LIB_pidfile) $(LIB_heimbase)
128 include_HEADERS = kdc.h kdc-protos.h
131 krb5dir = $(includedir)/krb5
132 krb5_HEADERS = windc_plugin.h
134 build_HEADERZ = $(krb5_HEADERS) # XXX
136 EXTRA_DIST = \
137         hprop-version.rc \
138         hpropd-version.rc \
139         kdc-version.rc \
140         kstash-version.rc \
141         libkdc-version.rc \
142         string2key-version.rc \
143         libkdc-exports.def \
144         NTMakefile $(man_MANS) version-script.map