summaryrefslogtreecommitdiffstats
path: root/src/kdc/Makefile.in
blob: f46cad3da0343c87eb3906393347169dea42fde3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
mydir=kdc
BUILDTOP=$(REL)..
DEFINES =
RUN_SETUP = @KRB5_RUN_ENV@
PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH)
KDB5_LIB_DEPS=$(DL_LIB) $(THREAD_LINKOPTS)
PROG_RPATH=$(KRB5_LIBDIR)
DEFS=-DLIBDIR=\"$(KRB5_LIBDIR)\"

all:: krb5kdc rtest

# DEFINES = -DBACKWARD_COMPAT $(KRB4DEF)

LOCALINCLUDES = -I.
SRCS= \
	kdc5_err.c \
	$(srcdir)/dispatch.c \
	$(srcdir)/do_as_req.c \
	$(srcdir)/do_tgs_req.c \
	$(srcdir)/fast_util.c \
	$(srcdir)/kdc_util.c \
	$(srcdir)/kdc_preauth.c \
	$(srcdir)/main.c \
	$(srcdir)/policy.c \
	$(srcdir)/extern.c \
	$(srcdir)/replay.c \
	$(srcdir)/kdc_authdata.c

OBJS= \
	kdc5_err.o \
	dispatch.o \
	do_as_req.o \
	do_tgs_req.o \
	fast_util.o \
	kdc_util.o \
	kdc_preauth.o \
	main.o \
	policy.o \
	extern.o \
	replay.o \
	kdc_authdata.o

RT_OBJS= rtest.o \
	kdc_util.o \
	policy.o \
	extern.o

depend:: kdc5_err.c kdc5_err.h

kdc5_err.c: kdc5_err.et

kdc5_err.h: kdc5_err.et

kdc5_err.o: kdc5_err.h

krb5kdc: $(OBJS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(APPUTILS_DEPLIB)
	$(CC_LINK) -o krb5kdc $(OBJS) $(APPUTILS_LIB) $(KADMSRV_LIBS) $(KRB5_BASE_LIBS)

rtest: $(RT_OBJS) $(KDB5_DEPLIBS) $(KADM_COMM_DEPLIBS) $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o rtest $(RT_OBJS) $(KDB5_LIBS) $(KADM_COMM_LIBS) $(KRB5_BASE_LIBS)

check-unix:: rtest
	KRB5_CONFIG=$(top_srcdir)/config-files/krb5.conf ; export KRB5_CONFIG ; \
	$(RUN_SETUP) $(VALGRIND) $(srcdir)/rtscript > test.out
	cmp test.out $(srcdir)/rtest.good
	$(RM) test.out

check-pytests::
	$(RUNPYTEST) $(srcdir)/t_workers.py $(PYTESTFLAGS)

install::
	$(INSTALL_PROGRAM) krb5kdc ${DESTDIR}$(SERVER_BINDIR)/krb5kdc
	$(INSTALL_DATA) $(srcdir)/krb5kdc.M ${DESTDIR}$(SERVER_MANDIR)/krb5kdc.8

clean::
	$(RM) kdc5_err.h kdc5_err.c krb5kdc rtest.o rtest