Don't include kdb.h from k5-int.h; instead, include it in the handful
[krb5.git] / src / kdc / Makefile.in
1 thisconfigdir=..
2 myfulldir=kdc
3 mydir=kdc
4 BUILDTOP=$(REL)..
5 # -DUSE_RCACHE - enable replay cache for KDC
6 # -DNOCACHE    - disable lookaside cache, which is used to resend previous
7 #                response to replay (i.e., *don't* define this if you
8 #                define USE_RCACHE)
9 # These are now set in configure.in.
10 DEFINES = # -DNOCACHE
11 RUN_SETUP = @KRB5_RUN_ENV@
12 PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH)
13 KDB5_LIB_DEPS=$(DL_LIB) $(THREAD_LINKOPTS)
14 PROG_RPATH=$(KRB5_LIBDIR)
15 FAKEKA=@FAKEKA@
16 DEFS=
17
18 all:: krb5kdc rtest $(FAKEKA)
19
20 # DEFINES = -DBACKWARD_COMPAT $(KRB4DEF)
21
22 LOCALINCLUDES = @KRB4_INCLUDES@ -I.
23 SRCS= \
24         kdc5_err.c \
25         $(srcdir)/dispatch.c \
26         $(srcdir)/do_as_req.c \
27         $(srcdir)/do_tgs_req.c \
28         $(srcdir)/kdc_util.c \
29         $(srcdir)/kdc_preauth.c \
30         $(srcdir)/main.c \
31         $(srcdir)/network.c \
32         $(srcdir)/policy.c \
33         $(srcdir)/extern.c \
34         $(srcdir)/replay.c \
35         $(srcdir)/kerberos_v4.c
36
37 OBJS= \
38         kdc5_err.o \
39         dispatch.o \
40         do_as_req.o \
41         do_tgs_req.o \
42         kdc_util.o \
43         kdc_preauth.o \
44         main.o \
45         network.o \
46         policy.o \
47         extern.o \
48         replay.o \
49         kerberos_v4.o
50
51 RT_OBJS= rtest.o \
52         kdc_util.o \
53         policy.o \
54         extern.o
55
56 depend:: kdc5_err.c
57
58 kdc5_err.c: kdc5_err.et
59
60 kdc5_err.h: kdc5_err.et
61
62 kdc5_err.o: kdc5_err.h
63
64 krb5kdc: $(OBJS) $(KADMSRV_DEPLIBS) $(KRB4COMPAT_DEPLIBS) $(APPUTILS_DEPLIB)
65         $(CC_LINK) -o krb5kdc $(OBJS) $(KADMSRV_LIBS) $(KDB5_LIB_DEPS) $(KRB4COMPAT_LIBS) $(APPUTILS_LIB)
66
67 rtest: $(RT_OBJS) $(KDB5_DEPLIBS) $(KADM_COMM_DEPLIBS) $(KRB5_BASE_DEPLIBS)
68         $(CC_LINK) -o rtest $(RT_OBJS) $(KDB5_LIBS) $(KDB5_LIB_DEPS) $(KADM_COMM_LIBS) $(KRB5_BASE_LIBS)
69
70 fakeka: fakeka.o $(KADMSRV_DEPLIBS) $(KRB4COMPAT_DEPLIBS) $(APPUTILS_DEPLIB)
71         $(CC_LINK) -o fakeka fakeka.o $(KADMSRV_LIBS) $(KRB4COMPAT_LIBS) $(APPUTILS_LIB)
72
73 check-unix:: rtest
74         KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf ; export KRB5_CONFIG ;\
75         $(RUN_SETUP) $(srcdir)/rtscript > test.out
76         cmp test.out $(srcdir)/rtest.good
77         $(RM) test.out
78
79 install::
80         $(INSTALL_PROGRAM) krb5kdc ${DESTDIR}$(SERVER_BINDIR)/krb5kdc
81         $(INSTALL_DATA) $(srcdir)/krb5kdc.M ${DESTDIR}$(SERVER_MANDIR)/krb5kdc.8
82         f=$(FAKEKA); \
83         if test -n "$$f" ; then \
84                 $(INSTALL_PROGRAM) $$f ${DESTDIR}$(SERVER_BINDIR)/$$f; \
85         fi
86
87 clean::
88         $(RM) kdc5_err.h kdc5_err.c krb5kdc rtest.o rtest
89
90 # +++ Dependency line eater +++
91
92 # Makefile dependencies follow.  This must be the last section in
93 # the Makefile.in file
94 #
95 $(OUTPRE)kdc5_err.$(OBJEXT): $(COM_ERR_DEPS) kdc5_err.c
96 $(OUTPRE)dispatch.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
97   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
98   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/adm_proto.h \
99   $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-int.h \
100   $(SRCTOP)/include/k5-locate.h $(SRCTOP)/include/k5-platform.h \
101   $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
102   $(SRCTOP)/include/kdb.h $(SRCTOP)/include/port-sockets.h \
103   $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/syslog.h \
104   dispatch.c extern.h kdc_util.h
105 $(OUTPRE)do_as_req.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
106   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
107   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/adm.h \
108   $(SRCTOP)/include/adm_proto.h $(SRCTOP)/include/k5-err.h \
109   $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-locate.h \
110   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
111   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/kdb.h \
112   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
113   $(SRCTOP)/include/syslog.h do_as_req.c extern.h kdc_util.h \
114   policy.h
115 $(OUTPRE)do_tgs_req.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
116   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
117   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/adm_proto.h \
118   $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-int.h \
119   $(SRCTOP)/include/k5-locate.h $(SRCTOP)/include/k5-platform.h \
120   $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
121   $(SRCTOP)/include/kdb.h $(SRCTOP)/include/port-sockets.h \
122   $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/syslog.h \
123   do_tgs_req.c extern.h kdc_util.h policy.h
124 $(OUTPRE)kdc_util.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
125   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
126   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/adm.h \
127   $(SRCTOP)/include/adm_proto.h $(SRCTOP)/include/k5-err.h \
128   $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-locate.h \
129   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
130   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/kdb.h \
131   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
132   $(SRCTOP)/include/syslog.h extern.h kdc_util.c kdc_util.h
133 $(OUTPRE)kdc_preauth.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
134   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
135   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/adm_proto.h \
136   $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-int.h \
137   $(SRCTOP)/include/k5-locate.h $(SRCTOP)/include/k5-platform.h \
138   $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
139   $(SRCTOP)/include/kdb.h $(SRCTOP)/include/port-sockets.h \
140   $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/syslog.h \
141   extern.h kdc_preauth.c kdc_util.h
142 $(OUTPRE)main.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
143   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
144   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/adm.h \
145   $(SRCTOP)/include/adm_proto.h $(SRCTOP)/include/k5-err.h \
146   $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-locate.h \
147   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
148   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/kdb.h \
149   $(SRCTOP)/include/kdb_kt.h $(SRCTOP)/include/kerberosIV/des.h \
150   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
151   $(SRCTOP)/include/syslog.h extern.h kdc5_err.h kdc_util.h \
152   main.c
153 $(OUTPRE)network.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
154   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
155   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/adm_proto.h \
156   $(SRCTOP)/include/cm.h $(SRCTOP)/include/fake-addrinfo.h \
157   $(SRCTOP)/include/foreachaddr.h $(SRCTOP)/include/k5-err.h \
158   $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-locate.h \
159   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
160   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/kdb.h \
161   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
162   $(SRCTOP)/include/syslog.h extern.h kdc5_err.h kdc_util.h \
163   network.c
164 $(OUTPRE)policy.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
165   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
166   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-err.h \
167   $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-locate.h \
168   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
169   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/kdb.h \
170   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
171   kdc_util.h policy.c
172 $(OUTPRE)extern.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
173   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
174   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-err.h \
175   $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-locate.h \
176   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
177   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/port-sockets.h \
178   $(SRCTOP)/include/socket-utils.h extern.c extern.h
179 $(OUTPRE)replay.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
180   $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
181   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-err.h \
182   $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-locate.h \
183   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
184   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/kdb.h \
185   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
186   extern.h kdc_util.h replay.c
187 $(OUTPRE)kerberos_v4.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
188   $(KRB_ERR_H_DEP) $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/osconf.h \
189   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/adm_proto.h \
190   $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-int.h \
191   $(SRCTOP)/include/k5-locate.h $(SRCTOP)/include/k5-platform.h \
192   $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
193   $(SRCTOP)/include/kdb.h $(SRCTOP)/include/kerberosIV/des.h \
194   $(SRCTOP)/include/kerberosIV/kdc.h $(SRCTOP)/include/kerberosIV/klog.h \
195   $(SRCTOP)/include/kerberosIV/krb.h $(SRCTOP)/include/kerberosIV/krb_db.h \
196   $(SRCTOP)/include/kerberosIV/prot.h $(SRCTOP)/include/port-sockets.h \
197   $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/syslog.h \
198   extern.h kdc_util.h kerberos_v4.c