blob: 32b225185bb0051dc976ed103be59723721300d0 (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
CFLAGS = $(CCOPTS) $(DEFS)
LDFLAGS = -g
##DOSBUILDTOP = ..\..
##DOSLIBNAME=kadm.lib
##DOS!include $(BUILDTOP)\config\windows.in
BASE_OBJS= adm_conn.$(OBJEXT) \
adm_kt_dec.$(OBJEXT) \
adm_kt_enc.$(OBJEXT) \
adm_rw.$(OBJEXT)
UNIX_OBJS = logger.$(OBJEXT)
DB_OBJS= adm_kw_dec.$(OBJEXT) \
adm_kw_enc.$(OBJEXT)
OBJS= $(BASE_OBJS) $(DB_OBJS)
SRCS= $(srcdir)/adm_conn.c \
$(srcdir)/adm_kt_dec.c \
$(srcdir)/adm_kt_enc.c \
$(srcdir)/adm_rw.c \
$(srcdir)/adm_kw_dec.c \
$(srcdir)/adm_kw_enc.c \
$(srcdir)/logger.c
all:: all-$(WHAT) $(BASE_OBJS)
all-unix:: $(DB_OBJS) $(UNIX_OBJS)
all-mac:: $(DB_OBJS)
all-windows::
libkadm.a: $(OBJS) $(UNIX_OBJS)
$(RM) $@
$(ARADD) $@ $(OBJS) $(UNIX_OBJS)
$(RANLIB) $@
$(RM) $(TOPLIBD)/libkadm.a
$(CP) libkadm.a $(BUILDTOP)/lib/libkadm.a
$(RANLIB) $(BUILDTOP)/lib/libkadm.a
install:: libkadm.a
$(INSTALL_DATA) libkadm.a $(DESTDIR)$(KRB5_LIBDIR)/libkadm.a
$(RANLIB) $(DESTDIR)$(KRB5_LIBDIR)/libkadm.a
clean:: clean-$(WHAT)
clean-unix::
$(RM) libkadm.$(LIBEXT) $(UNIX_OBJS)
clean-mac::
$(RM) libkadm.$(LIBEXT)
clean-windows::
$(RM) kadm.lib kadm.bak
#
# t_dbentry
#
T_DBENTRY_OBJS = t_dbentry.$(OBJEXT) \
$(TOPLIBD)/libkadm.a $(TOPLIBD)/libkrb5.a \
$(TOPLIBD)/libcrypto.a $(BUILDTOP)/util/et/libcom_err.a
t_dbentry: $(T_DBENTRY_OBJS)
$(LD) -o t_dbentry $(T_DBENTRY_OBJS) $(LIBS)
#
# t_ktentry
#
T_KTENTRY_OBJS = t_ktentry.$(OBJEXT) \
$(TOPLIBD)/libkadm.a $(TOPLIBD)/libkrb5.a \
$(TOPLIBD)/libcrypto.a $(BUILDTOP)/util/et/libcom_err.a
t_ktentry: $(T_KTENTRY_OBJS)
$(LD) -o t_ktentry $(T_KTENTRY_OBJS) $(LIBS)
TEST_PROGS = t_dbentry t_ktentry
check:: check-$(WHAT)
check-unix:: $(TEST_PROGS)
./t_dbentry -r 100
./t_ktentry -r 100
check-mac::
check-windows::
clean-unix::
$(RM) t_dbentry$(EXEEXT) t_dbentry.$(OBJEXT)
$(RM) t_ktentry$(EXEEXT) t_ktentry.$(OBJEXT)
clean-mac::
$(RM) t_dbentry$(EXEEXT) t_dbentry.$(OBJEXT)
$(RM) t_ktentry$(EXEEXT) t_ktentry.$(OBJEXT)
|