4 MY_SUBDIRS=util include lib @krb524@ kdc kadmin slave clients appl tests \
5 config-files gen-manpages
7 LOCALINCLUDES = -I$(srcdir)
12 DISTFILES = $(SRCS) $(HDRS) COPYING COPYING.LIB ChangeLog Makefile.in
18 all-windows:: maybe-awk Makefile-windows
22 @echo Making in include
28 @echo Making in windows
31 @echo Making in clients
34 @echo Making in appl\gss-sample
44 INSTALLMKDIRS = $(KRB5ROOT) $(KRB5MANROOT) $(KRB5OTHERMKDIRS) \
45 $(ADMIN_BINDIR) $(SERVER_BINDIR) $(CLIENT_BINDIR) \
46 $(ADMIN_MANDIR) $(SERVER_MANDIR) $(CLIENT_MANDIR) \
47 $(FILE_MANDIR) $(KRB5_LIBDIR) $(KRB5_INCDIR) \
50 install-recurse: install-mkdirs
53 @for i in $(INSTALLMKDIRS); do \
54 $(srcdir)/config/mkinstalldirs $(DESTDIR)$$i; \
58 # $(MAKE) $(MFLAGS) install.man
63 clean-:: clean-windows
64 clean-mac:: clean-unix
70 # This doesn't work; if you think you need it, you should use a
71 # separate build directory.
74 # rm -f Makefile config.status
76 # realclean: distclean
80 echo cpio-`sed -e '/version_string/!d' \
81 -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
84 -ln $(DISTFILES) `cat .fname`
85 for file in $(DISTFILES); do \
86 test -r `cat .fname`/$$file || cp -p $$file `cat .fname`; \
88 tar chzf `cat .fname`.tar.gz `cat .fname`
89 rm -rf `cat .fname` .fname
94 if test ! -d $(PKGDIR); then mkdir $(PKGDIR); else true; fi
96 rm -rf $(PKGDIR)/install cns5-bin.tgz
97 mkdir $(PKGDIR)/install
98 $(MAKE) install DESTDIR=$(PKGDIR)/install
99 (cd $(PKGDIR)/install && tar cf - usr/cygnus) | $(GZIPPROG) > cns5-bin.tgz
100 rm -rf $(PKGDIR)/install
102 # Macintosh build process...
104 # Build all things for the Mac build, which need to be built on
107 (cd lib/krb5/error_tables; make -f Makefile.in unixmac)
108 (cd lib/gssapi/generic; make -f Makefile.in unixmac)
111 # Microsoft Windows build process...
114 config-windows:: Makefile-windows
115 # @echo Making in include
121 # We need outpre-dir explicitly in here because we may
122 # try to build wconfig on a config-windows.
124 ##DOS##$(WCONFIG_EXE): outpre-dir wconfig.c
125 ##DOS## $(CC) -Fe$@ -Fo$*.obj wconfig.c
127 ##DOS##MKFDEP=$(WCONFIG_EXE) config\win-pre.in config\win-post.in
129 WINMAKEFILES=Makefile \
130 appl\gss-sample\Makefile \
131 clients\Makefile clients\kdestroy\Makefile \
132 clients\kinit\Makefile clients\klist\Makefile \
133 clients\kpasswd\Makefile clients\kvno\Makefile \
134 include\Makefile include\krb5\Makefile \
136 lib\Makefile lib\crypto\Makefile \
137 lib\crypto\crc32\Makefile lib\crypto\des\Makefile \
138 lib\crypto\dk\Makefile lib\crypto\enc_provider\Makefile \
139 lib\crypto\hash_provider\Makefile \
140 lib\crypto\keyhash_provider\Makefile \
141 lib\crypto\raw\Makefile lib\crypto\old\Makefile \
142 lib\crypto\sha1\Makefile \
143 lib\crypto\md4\Makefile lib\crypto\md5\Makefile \
144 lib\des425\Makefile \
145 lib\gssapi\Makefile lib\gssapi\generic\Makefile \
146 lib\gssapi\krb5\Makefile lib\gssapi\mechglue\Makefile \
147 lib\krb4\Makefile lib\krb5\Makefile \
148 lib\krb5\asn.1\Makefile lib\krb5\ccache\Makefile \
149 lib\krb5\ccache\ccapi\Makefile \
150 lib\krb5\error_tables\Makefile \
151 lib\krb5\keytab\Makefile \
152 lib\krb5\keytab\file\Makefile \
153 lib\krb5\keytab\srvtab\Makefile \
154 lib\krb5\krb\Makefile \
155 lib\krb5\os\Makefile lib\krb5\posix\Makefile \
156 lib\krb5\rcache\Makefile \
158 util\et\Makefile util\profile\Makefile \
159 util\windows\Makefile \
160 windows\Makefile windows\lib\Makefile \
161 windows\cns\Makefile windows\gina\Makefile \
162 windows\gss\Makefile windows\ms2mit\Makefile \
163 windows\wintel\Makefile
165 ##DOS##Makefile-windows:: $(MKFDEP) $(WINMAKEFILES)
167 ##DOS##Makefile: Makefile.in $(MKFDEP)
168 ##DOS## $(WCONFIG) config < $@.in > $@
169 ##DOS##appl\gss-sample\Makefile: appl\gss-sample\Makefile.in $(MKFDEP)
170 ##DOS## $(WCONFIG) config < $@.in > $@
171 ##DOS##clients\Makefile: clients\Makefile.in $(MKFDEP)
172 ##DOS## $(WCONFIG) config < $@.in > $@
173 ##DOS##clients\kdestroy\Makefile: clients\kdestroy\Makefile.in $(MKFDEP)
174 ##DOS## $(WCONFIG) config < $@.in > $@
175 ##DOS##clients\kinit\Makefile: clients\kinit\Makefile.in $(MKFDEP)
176 ##DOS## $(WCONFIG) config < $@.in > $@
177 ##DOS##clients\klist\Makefile: clients\klist\Makefile.in $(MKFDEP)
178 ##DOS## $(WCONFIG) config < $@.in > $@
179 ##DOS##clients\kpasswd\Makefile: clients\kpasswd\Makefile.in $(MKFDEP)
180 ##DOS## $(WCONFIG) config < $@.in > $@
181 ##DOS##clients\kvno\Makefile: clients\kvno\Makefile.in $(MKFDEP)
182 ##DOS## $(WCONFIG) config < $@.in > $@
183 ##DOS##include\Makefile: include\Makefile.in $(MKFDEP)
184 ##DOS## $(WCONFIG) config < $@.in > $@
185 ##DOS##include\krb5\Makefile: include\krb5\Makefile.in $(MKFDEP)
186 ##DOS## $(WCONFIG) config < $@.in > $@
187 ##DOS##krb524\Makefile: krb524\Makefile.in $(MKFDEP)
188 ##DOS## $(WCONFIG) config < $@.in > $@
189 ##DOS##lib\Makefile: lib\Makefile.in $(MKFDEP)
190 ##DOS## $(WCONFIG) config < $@.in > $@
191 ##DOS##lib\crypto\Makefile: lib\crypto\Makefile.in $(MKFDEP)
192 ##DOS## $(WCONFIG) config < $@.in > $@
193 ##DOS##lib\crypto\crc32\Makefile: lib\crypto\crc32\Makefile.in $(MKFDEP)
194 ##DOS## $(WCONFIG) config < $@.in > $@
195 ##DOS##lib\crypto\des\Makefile: lib\crypto\des\Makefile.in $(MKFDEP)
196 ##DOS## $(WCONFIG) config < $@.in > $@
197 ##DOS##lib\crypto\dk\Makefile: lib\crypto\dk\Makefile.in $(MKFDEP)
198 ##DOS## $(WCONFIG) config < $@.in > $@
199 ##DOS##lib\crypto\enc_provider\Makefile: lib\crypto\enc_provider\Makefile.in $(MKFDEP)
200 ##DOS## $(WCONFIG) config < $@.in > $@
201 ##DOS##lib\crypto\hash_provider\Makefile: lib\crypto\hash_provider\Makefile.in $(MKFDEP)
202 ##DOS## $(WCONFIG) config < $@.in > $@
203 ##DOS##lib\crypto\keyhash_provider\Makefile: lib\crypto\keyhash_provider\Makefile.in $(MKFDEP)
204 ##DOS## $(WCONFIG) config < $@.in > $@
205 ##DOS##lib\crypto\sha1\Makefile: lib\crypto\sha1\Makefile.in $(MKFDEP)
206 ##DOS## $(WCONFIG) config < $@.in > $@
207 ##DOS##lib\crypto\md4\Makefile: lib\crypto\md4\Makefile.in $(MKFDEP)
208 ##DOS## $(WCONFIG) config < $@.in > $@
209 ##DOS##lib\crypto\md5\Makefile: lib\crypto\md5\Makefile.in $(MKFDEP)
210 ##DOS## $(WCONFIG) config < $@.in > $@
211 ##DOS##lib\crypto\old\Makefile: lib\crypto\old\Makefile.in $(MKFDEP)
212 ##DOS## $(WCONFIG) config < $@.in > $@
213 ##DOS##lib\crypto\raw\Makefile: lib\crypto\raw\Makefile.in $(MKFDEP)
214 ##DOS## $(WCONFIG) config < $@.in > $@
215 ##DOS##lib\des425\Makefile: lib\des425\Makefile.in $(MKFDEP)
216 ##DOS## $(WCONFIG) config < $@.in > $@
217 ##DOS##lib\gssapi\Makefile: lib\gssapi\Makefile.in $(MKFDEP)
218 ##DOS## $(WCONFIG) config < $@.in > $@
219 ##DOS##lib\gssapi\generic\Makefile: lib\gssapi\generic\Makefile.in $(MKFDEP)
220 ##DOS## $(WCONFIG) config < $@.in > $@
221 ##DOS##lib\gssapi\mechglue\Makefile: lib\gssapi\mechglue\Makefile.in $(MKFDEP)
222 ##DOS## $(WCONFIG) config < $@.in > $@
223 ##DOS##lib\gssapi\krb5\Makefile: lib\gssapi\krb5\Makefile.in $(MKFDEP)
224 ##DOS## $(WCONFIG) config < $@.in > $@
225 ##DOS##lib\krb4\Makefile: lib\krb4\Makefile.in $(MKFDEP)
226 ##DOS## $(WCONFIG) config < $@.in > $@
227 ##DOS##lib\krb5\Makefile: lib\krb5\Makefile.in $(MKFDEP)
228 ##DOS## $(WCONFIG) config < $@.in > $@
229 ##DOS##lib\krb5\asn.1\Makefile: lib\krb5\asn.1\Makefile.in $(MKFDEP)
230 ##DOS## $(WCONFIG) config < $@.in > $@
231 ##DOS##lib\krb5\ccache\Makefile: lib\krb5\ccache\Makefile.in $(MKFDEP)
232 ##DOS## $(WCONFIG) config < $@.in > $@
233 ##DOS##lib\krb5\ccache\ccapi\Makefile: lib\krb5\ccache\ccapi\Makefile.in $(MKFDEP)
234 ##DOS## $(WCONFIG) config < $@.in > $@
235 ##DOS##lib\krb5\error_tables\Makefile: lib\krb5\error_tables\Makefile.in $(MKFDEP)
236 ##DOS## $(WCONFIG) config < $@.in > $@
237 ##DOS##lib\krb5\keytab\Makefile: $$@.in $(MKFDEP)
238 ##DOS## $(WCONFIG) config < $@.in > $@
239 ##DOS##lib\krb5\keytab\file\Makefile: $$@.in $(MKFDEP)
240 ##DOS## $(WCONFIG) config < $@.in > $@
241 ##DOS##lib\krb5\keytab\srvtab\Makefile: $$@.in $(MKFDEP)
242 ##DOS## $(WCONFIG) config < $@.in > $@
243 ##DOS##lib\krb5\krb\Makefile: lib\krb5\krb\Makefile.in $(MKFDEP)
244 ##DOS## $(WCONFIG) config < $@.in > $@
245 ##DOS##lib\krb5\os\Makefile: lib\krb5\os\Makefile.in $(MKFDEP)
246 ##DOS## $(WCONFIG) config < $@.in > $@
247 ##DOS##lib\krb5\posix\Makefile: lib\krb5\posix\Makefile.in $(MKFDEP)
248 ##DOS## $(WCONFIG) config < $@.in > $@
249 ##DOS##lib\krb5\rcache\Makefile: lib\krb5\rcache\Makefile.in $(MKFDEP)
250 ##DOS## $(WCONFIG) config < $@.in > $@
251 ##DOS##util\Makefile: util\Makefile.in $(MKFDEP)
252 ##DOS## $(WCONFIG) config < $@.in > $@
253 ##DOS##util\et\Makefile: util\et\Makefile.in $(MKFDEP)
254 ##DOS## $(WCONFIG) config < $@.in > $@
255 ##DOS##util\profile\Makefile: util\profile\Makefile.in $(MKFDEP)
256 ##DOS## $(WCONFIG) config < $@.in > $@
257 ##DOS##util\windows\Makefile: util\windows\Makefile.in $(MKFDEP)
258 ##DOS## $(WCONFIG) config < $@.in > $@
259 ##DOS##windows\Makefile: windows\Makefile.in $(MKFDEP)
260 ##DOS## $(WCONFIG) config < $@.in > $@
261 ##DOS##windows\lib\Makefile: windows\lib\Makefile.in $(MKFDEP)
262 ##DOS## $(WCONFIG) config < $@.in > $@
263 ##DOS##windows\cns\Makefile: windows\cns\Makefile.in $(MKFDEP)
264 ##DOS## $(WCONFIG) config < $@.in > $@
265 ##DOS##windows\gina\Makefile: windows\gina\Makefile.in $(MKFDEP)
266 ##DOS## $(WCONFIG) config < $@.in > $@
267 ##DOS##windows\gss\Makefile: windows\gss\Makefile.in $(MKFDEP)
268 ##DOS## $(WCONFIG) config < $@.in > $@
269 ##DOS##windows\ms2mit\Makefile: windows\ms2mit\Makefile.in $(MKFDEP)
270 ##DOS## $(WCONFIG) config < $@.in > $@
271 ##DOS##windows\wintel\Makefile: windows\wintel\Makefile.in $(MKFDEP)
272 ##DOS## $(WCONFIG) config < $@.in > $@
274 clean-windows:: Makefile-windows
275 @echo Making clean in util
277 $(MAKE) -$(MFLAGS) clean
278 @echo Making clean in include
280 $(MAKE) -$(MFLAGS) clean
281 @echo Making clean in lib
283 $(MAKE) -$(MFLAGS) clean
284 @echo Making clean in windows
286 $(MAKE) -$(MFLAGS) clean
287 @echo Making clean in clients
289 $(MAKE) -$(MFLAGS) clean
290 @echo Making in appl\gss-sample
291 cd ..\appl\gss-sample
292 $(MAKE) -$(MFLAGS) clean
294 @echo Making clean in root
297 # Renames DOS 8.3 filenames back to their proper, longer names.
303 # Builds the file that distributes Kerberos sources for DOS and
304 # Macintosh sites from the source tree on Unix.
308 clients/* clients/kdestroy/* clients/kinit/* clients/klist/* \
310 config/* include/* include/kerberosIV/* \
311 include/krb5/* include/krb5/stock/* include/sys/* krb524/* lib/* \
312 lib/crypto/* lib/crypto/crc32/* lib/crypto/des/* lib/crypto/dk/* \
313 lib/crypto/enc_provider/* lib/crypto/hash_provider/* \
314 lib/crypto/keyhash_provider/* lib/crypto/old/* lib/crypto/raw/* \
315 lib/crypto/sha1/* lib/crypto/md4/* lib/crypto/md5/* \
316 lib/des425/* lib/gssapi/* lib/gssapi/generic/* lib/gssapi/krb5/* \
317 lib/gssapi/mechglue/* lib/krb4/* \
318 lib/krb5/* lib/krb5/asn.1/* lib/krb5/krb/* \
319 lib/krb5/ccache/* lib/krb5/ccache/ccapi/* \
320 lib/krb5/error_tables/* \
321 lib/krb5/keytab/* lib/krb5/keytab/file/* lib/krb5/keytab/srvtab/* \
322 lib/krb5/os/* lib/krb5/posix/* lib/krb5/rcache/* \
323 util/* util/et/* util/profile/*
325 WINFILES= util/windows/* windows/* windows/lib/* windows/cns/* \
326 windows/wintel/* windows/gss/* windows/gina/* windows/ms2mit/*
328 MACFILES= mac/* mac/libraries/* config/* include/* \
329 include/krb5/* include/krb5/stock/* include/sys/* \
332 WINBINARYFILES= windows/*/*.ico windows/*/*.doc windows/*/*.hlp \
333 windows/*/*.hpj windows/lib/*.lib
336 # Part of building the PC release has to be done on Unix. This includes
337 # anything the requires awk.
340 AH = util/et/et_h.awk
341 AC = util/et/et_c.awk
343 ET = lib/krb5/error_tables/
344 GG = lib/gssapi/generic/
345 GK = lib/gssapi/krb5/
349 krb524\krb524_err.h krb524\krb524_err.c \
350 $(INC)asn1_err.h $(ET)asn1_err.c \
351 $(INC)kdb5_err.h $(ET)kdb5_err.c \
352 $(INC)krb5_err.h $(ET)krb5_err.c \
353 $(INC)kv5m_err.h $(ET)kv5m_err.c \
354 $(INC)adm_err.h $(ET)adm_err.c \
355 $(INC)/kerberosIV/krb_err.h lib/krb4/krb_err.c \
356 $(PR)prof_err.h $(PR)prof_err.c \
357 $(GG)gssapi_err_generic.h $(GG)gssapi_err_generic.c \
358 $(GK)gssapi_err_krb5.h $(GK)gssapi_err_krb5.c
360 HOUT = $(INC)krb5.h $(GG)gssapi.h $(PR)profile.h
362 CLEANUP= Makefile $(ETOUT) $(HOUT) \
363 include/profile.h include/krb5/osconf.h \
364 winfile.list macfile.list
367 kerbsrc.win: kerbsrc.zip
370 echo $(FILES) $(WINFILES) | tr ' ' \\012 | \
371 sed -f config/winexclude.sed > winfile.list
373 MAC_SUBDIRS = lib util
375 /bin/sh mac/macfiles.sh $(MAC_SUBDIRS) > macfile.list
376 find $(MACFILES) -prune -type f -print | \
377 sed -f config/winexclude.sed >> macfile.list
380 cat config/win-pre.in Makefile.in config/win-post.in | \
381 sed -e "s/^##DOS##//" -e "s/^##DOS//" > Makefile.tmp
382 mv Makefile.tmp Makefile
384 prep-windows: dos-Makefile awk-windows-mac
386 krbsrc83.zip: krbsrc83-is-obsolete
388 krbsrc83-is-obsolete:
389 @echo "Win16 and krbsrc83.zip are no longer supported."
390 @echo "We don't support building under 8.3 restricted filesystems"
391 @echo "anymore. You can still build for Win32 on filesystems"
392 @echo "without 8.3 restrictions using kerbsrc.zip"
395 kerbsrc.zip: dos-Makefile awk-windows-mac winfile.list
397 $(ZIP) -@Dl kerbsrc.zip < winfile.list
398 $(ZIP) -D kerbsrc.zip $(WINBINARYFILES)
401 kerbsrc-nt.zip: kerbsrc-nt-is-obsolete
403 kerbsrc-nt-is-obsolete:
404 @echo "kerbsrc-nt.zip is now obsolete. Just use and build kerbsrc.zip"
405 @echo "We don't support building under 8.3 restricted filesystems"
406 @echo "anymore, so what was kerbsrc-nt.zip is now kerbsrc.zip."
409 Macfile: macfile.list
411 sed -e 's|/|:|g' -e 's/^/:/' -e '/:.:/d' -e '/:mac:/d' macfile.list > macfile.maclist
412 grep '\.c$$' macfile.maclist > macsrcsgss
413 grep -v ':gssapi:' macsrcsgss > macsrcsk5
414 echo SRCS = `cat macsrcsgss` >> Macfile
415 echo SRCDIRS = `sed -n -e 's/\(.*:\)[^:]*\.c$$/ \1/p' macfile.maclist | sort -u` >> Macfile
416 echo GSSOBJS68K = `sed -e 's/$$/.68K.o/' -e 's/.*://' \
417 -e 's/^/:bin:68K:/' macsrcsgss` >> Macfile
418 echo GSSOBJS68KCFM = `sed -e 's/$$/.CFM68.o/' -e 's/.*://' \
419 -e 's/^/:bin:CFM-68K:/' macsrcsgss` >> Macfile
420 echo GSSOBJSPPC = `sed -e 's/$$/.PPC.o/' -e 's/.*://' \
421 -e 's/^/:bin:PPC:/' macsrcsgss` >> Macfile
422 echo K5OBJS68K = `sed -e 's/$$/.68K.o/' -e 's/.*://' \
423 -e 's/^/:bin:68K:/' macsrcsk5` >> Macfile
424 echo K5OBJS68KCFM = `sed -e 's/$$/.CFM68.o/' -e 's/.*://' \
425 -e 's/^/:bin:CFM-68K:/' macsrcsk5` >> Macfile
426 echo K5OBJSPPC = `sed -e 's/$$/.PPC.o/' -e 's/.*://' \
427 -e 's/^/:bin:PPC:/' macsrcsk5` >> Macfile
428 echo INCLUDES = `sed -n -e 's/\(.*:\)[^:]*\.h$$/-i \1/p' macfile.maclist | sort -u` >> Macfile
430 tr '@/:\\' '\245:\304\266'< mac/Makefile.tmpl >> Macfile
434 mkdir bin bin/68K bin/CFM-68K bin/PPC
435 sh mac/mkbindirs.sh bin/68K $(MAC_SUBDIRS)
436 sh mac/mkbindirs.sh bin/CFM-68K $(MAC_SUBDIRS)
437 sh mac/mkbindirs.sh bin/PPC $(MAC_SUBDIRS)
439 kerbsrc.mac.tar: awk-windows-mac macfile.list mac-bin-dirs Macfile
440 cp mac/libraries/autoconf.h include/autoconf.h
442 tar cvf kerbsrc.mac.tar Makefile include/autoconf.h bin \
446 rm -f include/autoconf.h Makefile macsrc* macfile.maclist
448 krb524/krb524_err.h: $(AH) krb524/krb524_err.et
449 $(AWK) -f $(AH) outfile=$@ krb524/krb524_err.et
450 krb524/krb524_err.c: $(AC) krb524/krb524_err.et
451 $(AWK) -f $(AC) outfile=$@ krb524/krb524_err.et
453 $(INC)asn1_err.h: $(AH) $(ET)asn1_err.et
454 $(AWK) -f $(AH) outfile=$@ $(ET)asn1_err.et
455 $(INC)kdb5_err.h: $(AH) $(ET)kdb5_err.et
456 $(AWK) -f $(AH) outfile=$@ $(ET)kdb5_err.et
457 $(INC)krb5_err.h: $(AH) $(ET)krb5_err.et
458 $(AWK) -f $(AH) outfile=$@ $(ET)krb5_err.et
459 $(INC)kv5m_err.h: $(AH) $(ET)kv5m_err.et
460 $(AWK) -f $(AH) outfile=$@ $(ET)kv5m_err.et
461 $(INC)adm_err.h: $(AH) $(ET)adm_err.et
462 $(AWK) -f $(AH) outfile=$@ $(ET)adm_err.et
463 $(INC)/kerberosIV/krb_err.h: $(AH) lib/krb4/krb_err.et
464 $(AWK) -f $(AH) outfile=$@ lib/krb4/krb_err.et
465 $(PR)prof_err.h: $(AH) $(PR)prof_err.et
466 $(AWK) -f $(AH) outfile=$@ $(PR)prof_err.et
467 $(GG)gssapi_err_generic.h: $(AH) $(GG)gssapi_err_generic.et
468 $(AWK) -f $(AH) outfile=$@ $(GG)gssapi_err_generic.et
469 $(GK)gssapi_err_krb5.h: $(AH) $(GK)gssapi_err_krb5.et
470 $(AWK) -f $(AH) outfile=$@ $(GK)gssapi_err_krb5.et
472 $(ET)asn1_err.c: $(AC) $(ET)asn1_err.et
473 $(AWK) -f $(AC) outfile=$@ $(ET)asn1_err.et
474 $(ET)kdb5_err.c: $(AC) $(ET)kdb5_err.et
475 $(AWK) -f $(AC) outfile=$@ $(ET)kdb5_err.et
476 $(ET)krb5_err.c: $(AC) $(ET)krb5_err.et
477 $(AWK) -f $(AC) outfile=$@ $(ET)krb5_err.et
478 $(ET)kv5m_err.c: $(AC) $(ET)kv5m_err.et
479 $(AWK) -f $(AC) outfile=$@ $(ET)kv5m_err.et
480 $(ET)adm_err.c: $(AC) $(ET)adm_err.et
481 $(AWK) -f $(AC) outfile=$@ $(ET)adm_err.et
482 lib/krb4/krb_err.c: $(AC) lib/krb4/krb_err.et
483 $(AWK) -f $(AC) outfile=$@ lib/krb4/krb_err.et
484 $(PR)prof_err.c: $(AC) $(PR)prof_err.et
485 $(AWK) -f $(AC) outfile=$@ $(PR)prof_err.et
486 $(GG)gssapi_err_generic.c: $(AC) $(GG)gssapi_err_generic.et
487 $(AWK) -f $(AC) outfile=$@ $(GG)gssapi_err_generic.et
488 $(GK)gssapi_err_krb5.c: $(AC) $(GK)gssapi_err_krb5.et
489 $(AWK) -f $(AC) outfile=$@ $(GK)gssapi_err_krb5.et
491 KRBHDEP = $(INC)krb5.hin $(INC)krb5_err.h $(INC)kdb5_err.h \
492 $(INC)kv5m_err.h $(INC)asn1_err.h
494 $(INC)krb5.h: $(KRBHDEP)
497 $(PR)profile.h: $(PR)profile.hin $(PR)prof_err.h
499 cat $(PR)profile.hin $(PR)prof_err.h > $@
500 $(GG)gssapi.h: $(GG)gssapi.hin
502 cat $(GG)gssapi.hin > $@
504 awk-windows-mac: $(ETOUT) $(HOUT)
507 # The maybe-awk target needs to happen after AWK is defined.
511 ##DOS##!ifdef WHICH_CMD
512 ##DOS##!if ![ $(WHICH_CMD) $(AWK) ]
513 ##DOS##maybe-awk:: awk-windows-mac
521 config\rm.bat $(CLEANUP:^/=^\)
522 config\rm.bat $(WINMAKEFILES)
523 config\rm.bat $(KBINDIR)\*.dll $(KBINDIR)\*.exe
524 @if exist $(KBINDIR)\nul rmdir $(KBINDIR)
527 @if "$(KRB_INSTALL_DIR)"=="" @echo KRB_INSTALL_DIR is not defined! Please define it.
528 @if "$(KRB_INSTALL_DIR)"=="" @dir /b \nul\nul
529 @if not exist "$(KRB_INSTALL_DIR)\$(NULL)" @echo The directory $(KRB_INSTALL_DIR) does not exist. Please create it.
530 @if not exist "$(KRB_INSTALL_DIR)\$(NULL)" @dir /b $(KRB_INSTALL_DIR)\nul
531 @if not exist "$(KRB_INSTALL_DIR)\include\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\include"
532 @if not exist "$(KRB_INSTALL_DIR)\include\gssapi\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\include\gssapi"
533 @if not exist "$(KRB_INSTALL_DIR)\lib\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\lib"
534 @if not exist "$(KRB_INSTALL_DIR)\bin\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\bin"
535 $(CP) include\krb5.h "$(KRB_INSTALL_DIR)\include\."
536 $(CP) include\win-mac.h "$(KRB_INSTALL_DIR)\include\."
537 $(CP) include\profile.h "$(KRB_INSTALL_DIR)\include\."
538 $(CP) include\com_err.h "$(KRB_INSTALL_DIR)\include\."
539 $(CP) include\gssapi\gssapi.h "$(KRB_INSTALL_DIR)\include\gssapi\."
540 $(CP) include\gssapi\gssapi_krb5.h "$(KRB_INSTALL_DIR)\include\gssapi\."
541 $(CP) lib\$(OUTPRE)*.lib "$(KRB_INSTALL_DIR)\lib\."
542 $(CP) lib\$(OUTPRE)*.dll "$(KRB_INSTALL_DIR)\bin\."
543 $(CP) windows\cns\$(OUTPRE)krb5.exe "$(KRB_INSTALL_DIR)\bin\."
544 $(CP) windows\wintel\$(OUTPRE)telnet.exe "$(KRB_INSTALL_DIR)\bin\."
545 $(CP) windows\gss\$(OUTPRE)gss.exe "$(KRB_INSTALL_DIR)\bin\."
546 $(CP) clients\klist\$(OUTPRE)klist.exe "$(KRB_INSTALL_DIR)\bin\."
547 $(CP) clients\kinit\$(OUTPRE)kinit.exe "$(KRB_INSTALL_DIR)\bin\."
548 $(CP) clients\kdestroy\$(OUTPRE)kdestroy.exe "$(KRB_INSTALL_DIR)\bin\."
549 $(CP) clients\kpasswd\$(OUTPRE)kpasswd.exe "$(KRB_INSTALL_DIR)\bin\."
550 @if exist "$(KRB_INSTALL_DIR)\bin\krb4_32.dll" del "$(KRB_INSTALL_DIR)\bin\krb4_32.dll"
551 @if exist "$(KRB_INSTALL_DIR)\lib\krb4_32.lib" del "$(KRB_INSTALL_DIR)\lib\krb4_32.lib"