blob: c6df6f11317732c9baee1da46b404958e2a18491 (
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
CFLAGS = $(CCOPTS) $(DEFS) $(DEFINES)
DEFINES=-I$(srcdir)/../../include/kerberosIV
##DOS##BUILDTOP = ..\..
##DOS##LIBNAME=krb4.lib
##DOS##OBJFILE=krb4.lst
LIB=krb4
LIBMAJOR=1
LIBMINOR=0
RELDIR=krb4
# Depends on libcrypto and libkrb5
SHLIB_EXPDEPS = \
$(TOPLIBD)/libcrypto$(SHLIBEXT) \
$(TOPLIBD)/libkrb5$(SHLIBEXT)
SHLIB_EXPLIBS=-lkrb5 -lcom_err -ldes425 -lcrypto
SHLIB_DIRS=-L$(TOPLIBD)
SHLIB_RDIRS=$(KRB5_LIBDIR)
EHDRDIR=$(BUILDTOP)$(S)include
OBJS = \
cr_auth_repl.$(OBJEXT) \
cr_ciph.$(OBJEXT) \
cr_tkt.$(OBJEXT) \
debug.$(OBJEXT) \
decomp_tkt.$(OBJEXT) \
err_txt.$(OBJEXT) \
g_ad_tkt.$(OBJEXT) \
g_in_tkt.$(OBJEXT) \
g_phost.$(OBJEXT) \
g_pw_in_tkt.$(OBJEXT) \
g_pw_tkt.$(OBJEXT) \
g_tkt_svc.$(OBJEXT) \
gethostname.$(OBJEXT) \
getst.$(OBJEXT) \
kname_parse.$(OBJEXT) \
mk_auth.$(OBJEXT) \
mk_err.$(OBJEXT) \
mk_priv.$(OBJEXT) \
mk_req.$(OBJEXT) \
mk_safe.$(OBJEXT) \
month_sname.$(OBJEXT) \
one.$(OBJEXT) \
pkt_cipher.$(OBJEXT) \
pkt_clen.$(OBJEXT) \
rd_err.$(OBJEXT) \
rd_priv.$(OBJEXT) \
rd_safe.$(OBJEXT) \
send_to_kdc.$(OBJEXT) \
stime.$(OBJEXT) \
rd_preauth.$(OBJEXT) \
mk_preauth.$(OBJEXT) \
$(OSOBJS) $(CACHEOBJS) $(SETENVOBJS) $(STRCASEOBJS) $(SHMOBJS) \
$(LIB_KRB_HOSTOBJS) $(SERVER_KRB_OBJS) $(NETIO_OBJS) $(REALMDBOBJS)
SRCS = \
$(srcdir)/cr_auth_repl.c \
$(srcdir)/cr_ciph.c \
$(srcdir)/cr_tkt.c \
$(srcdir)/debug.c \
$(srcdir)/decomp_tkt.c \
$(srcdir)/g_ad_tkt.c \
$(srcdir)/g_pw_in_tkt.c \
$(srcdir)/g_phost.c \
$(srcdir)/g_pw_tkt.c \
$(srcdir)/g_tkt_svc.c \
$(srcdir)/getst.c \
$(srcdir)/gethostname.c \
$(srcdir)/kname_parse.c \
$(srcdir)/err_txt.c \
$(srcdir)/g_in_tkt.c \
$(srcdir)/mk_auth.c \
$(srcdir)/mk_err.c \
$(srcdir)/mk_priv.c \
$(srcdir)/mk_req.c \
$(srcdir)/mk_safe.c \
$(srcdir)/month_sname.c \
$(srcdir)/one.c \
$(srcdir)/pkt_cipher.c \
$(srcdir)/pkt_clen.c \
$(srcdir)/rd_err.c \
$(srcdir)/rd_priv.c \
$(srcdir)/rd_safe.c \
$(srcdir)/send_to_kdc.c \
$(srcdir)/stime.c \
$(srcdir)/rd_preauth.c \
$(srcdir)/mk_preauth.c \
$(srcdir)/unix_time.c \
$(OSSRCS) $(CACHESRCS) $(SETENVSRCS) $(STRCASESRCS) $(SHMSRCS) \
$(LIB_KRB_HOSTSRCS) $(SERVER_KRB_SRCS) $(NETIO_SRCS) $(REALMDBSRCS)
STLIBOBJS = $(OBJS)
STOBJLISTS=OBJS.ST
# Depends on libcrypto, libkrb5, KRB4_CRYPTO_LIB and _et_list...
# Depends on libkrb5, expect to find
# krb5_init_context, krb5_free_context, profile_get_values
#
KRB4_CRYPTO_LIBS=-ldes425
DEPKRB4_LIBS= $(TOPLIBD)/libdes425$(SHLIBEXT)
SHLIB_EXPDEPS = $(DEPKRB4_LIBS) \
$(TOPLIBD)/libcrypto$(SHLIBEXT) \
$(TOPLIBD)/libkrb5$(SHLIBEXT)
SHLIB_DIRS=-L$(TOPLIBD)
SHLIB_RDIRS=$(KRB5_LIBDIR)
#
# These objects implement the time computation routines.
#
OSOBJS = unix_time.$(OBJEXT)
OSSRCS = unix_time.c
##DOS##OSOBJS = win_time.obj
#
# These objects implement ticket cacheing for Unix. They are
# replaced by other files when compiling for Windows or Mac.
#
CACHESRCS=$(srcdir)/tf_util.c $(srcdir)/dest_tkt.c $(srcdir)/in_tkt.c \
$(srcdir)/tkt_string.c $(srcdir)/g_tf_fname.c \
$(srcdir)/g_tf_realm.c $(srcdir)/g_cred.c $(srcdir)/save_creds.c
CACHEOBJS=tf_util.$(OBJEXT) dest_tkt.$(OBJEXT) in_tkt.$(OBJEXT) \
tkt_string.$(OBJEXT) g_tf_fname.$(OBJEXT) g_tf_realm.$(OBJEXT) \
g_cred.$(OBJEXT) save_creds.$(OBJEXT)
##DOS##CACHEOBJS = memcache.$(OBJEXT)
#
# These objects implement Kerberos realm<->host database lookup.
# They read config files and/or network databases in various ways
# on various platforms.
#
CNFFILE = g_cnffile
##DOS##CNFFILE = win_store
REALMDBSRCS= $(srcdir)/$(CNFFILE).c $(srcdir)/g_krbhst.c $(srcdir)/g_krbrlm.c \
$(srcdir)/g_admhst.c $(srcdir)/realmofhost.c
REALMDBOBJS= $(CNFFILE).$(OBJEXT) g_krbhst.$(OBJEXT) g_krbrlm.$(OBJEXT) \
g_admhst.$(OBJEXT) realmofhost.$(OBJEXT)
#
# These objects are only used on server or debug implementations of Kerberos,
# and they cause some major or minor sort of trouble for some
# client-only platform (Mac or Windows).
#
SERVER_KRB_SRCS=$(srcdir)/klog.c $(srcdir)/kuserok.c $(srcdir)/log.c \
$(srcdir)/kntoln.c $(srcdir)/fgetst.c $(srcdir)/rd_svc_key.c \
$(srcdir)/cr_err_repl.c $(srcdir)/rd_req.c \
$(srcdir)/g_svc_in_tkt.c $(srcdir)/recvauth.c \
krb_err.c $(srcdir)/ad_print.c \
$(srcdir)/cr_death_pkt.c $(srcdir)/kparse.c \
$(srcdir)/put_svc_key.c $(srcdir)/sendauth.c
SERVER_KRB_OBJS=klog.$(OBJEXT) kuserok.$(OBJEXT) log.$(OBJEXT) \
kntoln.$(OBJEXT) \
fgetst.$(OBJEXT) rd_svc_key.$(OBJEXT) cr_err_repl.$(OBJEXT) \
rd_req.$(OBJEXT) g_svc_in_tkt.$(OBJEXT) recvauth.$(OBJEXT) \
krb_err.$(OBJEXT) ad_print.$(OBJEXT) cr_death_pkt.$(OBJEXT) \
kparse.$(OBJEXT) put_svc_key.$(OBJEXT) sendauth.$(OBJEXT)
#
# These objects are included on Unix and Windows (for kstream and kadm)
# but not under Mac (there are no file descriptors).
#
NETIO_SRCS=$(srcdir)/netread.c $(srcdir)/netwrite.c
NETIO_OBJS=netread.$(OBJEXT) netwrite.$(OBJEXT)
#
# These objects glue the Kerberos library to the operating system
# (time-of-day access, etc). They are replaced in Mac and Windows
# by other _glue.* routines.
#
LIB_KRB_HOSTSRCS=$(srcdir)/unix_glue.c
LIB_KRB_HOSTOBJS=unix_glue.$(OBJEXT)
##DOS##LIB_KRB_HOSTOBJS=win_glue.obj
ARCHIVEARGS= $@ $(OBJS)
CODE=$(SRCS) Makefile.in krb_err.et
# We want *library* compiler options...
DBG=$(DBG_LIB)
all-unix:: krb_err.h includes all-liblinks
all-windows:: $(OBJFILE)
##DOS$(OBJFILE): $(OBJS)
##DOS $(RM) $(OBJFILE)
##WIN16## $(CP) nul: $(OBJFILE)
##WIN32## $(LIBECHO) *.obj > $(OBJFILE)
# comp_et_depend(krb_err)
krb_err.h:: krb_err.et
krb_err.c: krb_err.et
depend:: krb_err.h
depend:: $(CODE)
#install-unix::
# $(INSTALL_DATA) krb_err.h $(DESTDIR)$(KRB5_INCDIR)/kerberosIV/krb_err.h
DEFINES=$(FALLBACK) $(OLD_SRVTAB) $(OLD_KLOGIN) -I$(srcdir)/../../include/kerberosIV
clean::
-$(RM) $(OBJS)
clean-:: clean-unix
clean-unix::
-$(RM) krb_err.c
-$(RM) krb_err.h
-$(RM) ../../include/krb_err.h
clean-unix:: clean-liblinks clean-libs clean-libobjs
check-unix:: $(TEST_PROGS)
check-mac:: $(TEST_PROGS)
check-windows::
install-unix:: install-libs
|