6 # Don't build sample by default, and definitely don't install them
8 # plugins/locate/python
10 # plugins/preauth/cksum_body
11 # plugins/authdata/greet
12 SUBDIRS=util include lib \
15 plugins/preauth/pkinit \
16 plugins/preauth/encrypted_challenge \
17 kdc kadmin slave clients appl tests \
18 config-files gen-manpages
20 LOCALINCLUDES = -I$(srcdir)
25 # Why aren't these flags showing up in Windows builds?
26 ##DOS##CPPFLAGS=$(CPPFLAGS) -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT
28 DISTFILES = $(SRCS) $(HDRS) COPYING COPYING.LIB ChangeLog Makefile.in
30 all-unix:: krb5-config
32 # Lots of things will start to depend on the thread support, which
33 # needs autoconf.h, but building "all" in include requires that util/et
34 # have been built first. Until we can untangle this, let's just check
35 # that autoconf.h is up to date before going into any of the subdirectories.
36 all-prerecurse generate-files-mac-prerecurse: update-autoconf-h
38 (cd include && $(MAKE) autoconf.h osconf.h)
41 # This makefile doesn't use lib.in, but we still need shlib.conf here.
42 config.status: $(SRCTOP)/config/shlib.conf
45 all-windows:: maybe-awk Makefile-windows
46 @echo Making autoconf.h in include
48 $(MAKE) -$(MFLAGS) autoconf.h
52 @echo Making in include
61 @echo Making in windows
64 @echo Making in clients
67 @echo Making in appl\gss-sample
70 @echo Making in appl\gssftp\ftp
71 cd ..\..\appl\gssftp\ftp
80 INSTALLMKDIRS = $(KRB5ROOT) $(KRB5MANROOT) $(KRB5OTHERMKDIRS) \
81 $(ADMIN_BINDIR) $(SERVER_BINDIR) $(CLIENT_BINDIR) \
82 $(ADMIN_MANDIR) $(SERVER_MANDIR) $(CLIENT_MANDIR) \
83 $(FILE_MANDIR) $(KRB5_LIBDIR) $(KRB5_INCDIR) \
84 $(KRB5_DB_MODULE_DIR) $(KRB5_PA_MODULE_DIR) \
85 $(KRB5_AD_MODULE_DIR) \
86 $(KRB5_LIBKRB5_MODULE_DIR) \
87 @localstatedir@ @localstatedir@/krb5kdc \
88 $(KRB5_INCSUBDIRS) $(datadir) $(EXAMPLEDIR)
91 $(MAKE) install INSTALL_STRIP=-s
93 install-recurse: install-mkdirs
96 @for i in $(INSTALLMKDIRS); do \
97 $(srcdir)/config/mkinstalldirs $(DESTDIR)$$i; \
100 install-headers-mkdirs:
101 $(srcdir)/config/mkinstalldirs $(DESTDIR)$(KRB5_INCDIR)
102 $(srcdir)/config/mkinstalldirs $(DESTDIR)$(KRB5_INCDIR)/gssapi
103 $(srcdir)/config/mkinstalldirs $(DESTDIR)$(KRB5_INCDIR)/gssrpc
104 install-headers-prerecurse: install-headers-mkdirs
107 # $(MAKE) $(MFLAGS) install.man
110 $(RM) -r $(FAKEPREFIX)
111 @for i in $(INSTALLMKDIRS); do \
112 $(srcdir)/config/mkinstalldirs util/fakedest$$i; \
114 (w=`pwd`; cd util && $(MAKE) install DESTDIR="$$w/util/fakedest")
115 (w=`pwd`; cd lib && $(MAKE) install DESTDIR="$$w/util/fakedest")
116 (w=`pwd`; cd plugins/kdb/db2 && $(MAKE) install DESTDIR="$$w/util/fakedest")
117 if test -r plugins/preauth/pkinit/Makefile; then \
118 (w=`pwd`; cd plugins/preauth/pkinit && $(MAKE) install DESTDIR="$$w/util/fakedest"); \
121 # (w=`pwd`; cd plugins/locate/python && $(MAKE) install DESTDIR="$$w/util/fakedest")
126 clean-:: clean-windows
128 $(RM) *.o core krb5-config
129 $(RM) -r util/fakedest
133 # This doesn't work; if you think you need it, you should use a
134 # separate build directory.
137 # rm -f Makefile config.status
139 # realclean: distclean
143 echo cpio-`sed -e '/version_string/!d' \
144 -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
147 -ln $(DISTFILES) `cat .fname`
148 for file in $(DISTFILES); do \
149 test -r `cat .fname`/$$file || cp -p $$file `cat .fname`; \
151 tar chzf `cat .fname`.tar.gz `cat .fname`
152 rm -rf `cat .fname` .fname
157 if test ! -d $(PKGDIR); then mkdir $(PKGDIR); else true; fi
159 rm -rf $(PKGDIR)/install cns5-bin.tgz
160 mkdir $(PKGDIR)/install
161 $(MAKE) install DESTDIR=$(PKGDIR)/install
162 (cd $(PKGDIR)/install && tar cf - usr/cygnus) | $(GZIPPROG) > cns5-bin.tgz
163 rm -rf $(PKGDIR)/install
165 # Microsoft Windows build process...
168 config-windows:: Makefile-windows
169 # @echo Making in include
175 # We need outpre-dir explicitly in here because we may
176 # try to build wconfig on a config-windows.
178 ##DOS##$(WCONFIG_EXE): outpre-dir wconfig.c
179 ##DOS## $(CC) -Fe$@ -Fo$*.obj wconfig.c $(CCLINKOPTION)
180 ##DOS## $(_VC_MANIFEST_EMBED_EXE)
182 ##DOS##MKFDEP=$(WCONFIG_EXE) config\win-pre.in config\win-post.in
184 WINMAKEFILES=Makefile \
185 appl\gss-sample\Makefile \
186 appl\gssftp\ftp\Makefile \
188 ccapi\lib\win\Makefile \
189 ccapi\server\win\Makefile \
190 ccapi\test\Makefile \
191 clients\Makefile clients\kdestroy\Makefile \
192 clients\kinit\Makefile clients\klist\Makefile \
193 clients\kpasswd\Makefile clients\kvno\Makefile \
194 clients\kcpytkt\Makefile clients\kdeltkt\Makefile \
196 lib\Makefile lib\crypto\Makefile \
197 lib\crypto\krb\crc32\Makefile lib\crypto\builtin\des\Makefile \
198 lib\crypto\krb\dk\Makefile lib\crypto\builtin\enc_provider\Makefile \
199 lib\crypto\krb\hash_provider\Makefile \
200 lib\crypto\krb\keyhash_provider\Makefile \
201 lib\crypto\krb\prf\Makefile lib\crypto\krb\rand2key\Makefile \
202 lib\crypto\krb\raw\Makefile lib\crypto\krb\old\Makefile \
203 lib\crypto\builtin\sha1\Makefile lib\crypto\builtin\arcfour\Makefile \
204 lib\crypto\builtin\md4\Makefile lib\crypto\builtin\md5\Makefile \
205 lib\crypto\krb\yarrow\Makefile lib\crypto\builtin\aes\Makefile \
206 lib\crypto\crypto_tests \
207 lib\gssapi\Makefile lib\gssapi\generic\Makefile \
208 lib\gssapi\krb5\Makefile lib\gssapi\mechglue\Makefile \
209 lib\gssapi\spnego\Makefile \
211 lib\krb5\asn.1\Makefile lib\krb5\ccache\Makefile \
212 lib\krb5\ccache\ccapi\Makefile \
213 lib\krb5\error_tables\Makefile \
214 lib\krb5\keytab\Makefile \
215 lib\krb5\krb\Makefile \
216 lib\krb5\os\Makefile lib\krb5\posix\Makefile \
217 lib\krb5\rcache\Makefile \
218 lib\krb5\unicode\Makefile \
220 util\et\Makefile util\profile\Makefile \
221 util\support\Makefile \
222 util\windows\Makefile \
223 windows\Makefile windows\lib\Makefile \
224 windows\cns\Makefile windows\gina\Makefile \
225 windows\gss\Makefile windows\ms2mit\Makefile \
226 windows\wintel\Makefile windows\kfwlogon\Makefile
228 ##DOS##Makefile-windows:: $(MKFDEP) $(WINMAKEFILES)
230 ##DOS##Makefile: Makefile.in $(MKFDEP)
231 ##DOS## $(WCONFIG) config < $@.in > $@
232 ##DOS##appl\gss-sample\Makefile: appl\gss-sample\Makefile.in $(MKFDEP)
233 ##DOS## $(WCONFIG) config < $@.in > $@
234 ##DOS##appl\gssftp\ftp\Makefile: appl\gssftp\ftp\Makefile.in $(MKFDEP)
235 ##DOS## $(WCONFIG) config < $@.in > $@
236 ##DOS##ccapi\Makefile: ccapi\Makefile.in $(MKFDEP)
237 ##DOS## $(WCONFIG) config < $@.in > $@
238 ##DOS##ccapi\lib\win\Makefile: ccapi\lib\win\Makefile.in $(MKFDEP)
239 ##DOS## $(WCONFIG) config < $@.in > $@
240 ##DOS##ccapi\server\win\Makefile: ccapi\server\win\Makefile.in $(MKFDEP)
241 ##DOS## $(WCONFIG) config < $@.in > $@
242 ##DOS##ccapi\test\Makefile: ccapi\test\Makefile.in $(MKFDEP)
243 ##DOS## $(WCONFIG) config < $@.in > $@
244 ##DOS##clients\Makefile: clients\Makefile.in $(MKFDEP)
245 ##DOS## $(WCONFIG) config < $@.in > $@
246 ##DOS##clients\kdestroy\Makefile: clients\kdestroy\Makefile.in $(MKFDEP)
247 ##DOS## $(WCONFIG) config < $@.in > $@
248 ##DOS##clients\kinit\Makefile: clients\kinit\Makefile.in $(MKFDEP)
249 ##DOS## $(WCONFIG) config < $@.in > $@
250 ##DOS##clients\klist\Makefile: clients\klist\Makefile.in $(MKFDEP)
251 ##DOS## $(WCONFIG) config < $@.in > $@
252 ##DOS##clients\kpasswd\Makefile: clients\kpasswd\Makefile.in $(MKFDEP)
253 ##DOS## $(WCONFIG) config < $@.in > $@
254 ##DOS##clients\kvno\Makefile: clients\kvno\Makefile.in $(MKFDEP)
255 ##DOS## $(WCONFIG) config < $@.in > $@
256 ##DOS##clients\kcpytkt\Makefile: clients\kcpytkt\Makefile.in $(MKFDEP)
257 ##DOS## $(WCONFIG) config < $@.in > $@
258 ##DOS##clients\kdeltkt\Makefile: clients\kdeltkt\Makefile.in $(MKFDEP)
259 ##DOS## $(WCONFIG) config < $@.in > $@
260 ##DOS##include\Makefile: include\Makefile.in $(MKFDEP)
261 ##DOS## $(WCONFIG) config < $@.in > $@
262 ##DOS##lib\Makefile: lib\Makefile.in $(MKFDEP)
263 ##DOS## $(WCONFIG) config < $@.in > $@
264 ##DOS##lib\crypto\Makefile: lib\crypto\Makefile.in $(MKFDEP)
265 ##DOS## $(WCONFIG) config < $@.in > $@
266 ##DOS##lib\crypto\krb\crc32\Makefile: lib\crypto\krb\crc32\Makefile.in $(MKFDEP)
267 ##DOS## $(WCONFIG) config < $@.in > $@
268 ##DOS##lib\crypto\builtin\des\Makefile: lib\crypto\builtin\des\Makefile.in $(MKFDEP)
269 ##DOS## $(WCONFIG) config < $@.in > $@
270 ##DOS##lib\crypto\krb\dk\Makefile: lib\crypto\krb\dk\Makefile.in $(MKFDEP)
271 ##DOS## $(WCONFIG) config < $@.in > $@
272 ##DOS##lib\crypto\builtin\enc_provider\Makefile: lib\crypto\builtin\enc_provider\Makefile.in $(MKFDEP)
273 ##DOS## $(WCONFIG) config < $@.in > $@
274 ##DOS##lib\crypto\krb\hash_provider\Makefile: lib\crypto\krb\hash_provider\Makefile.in $(MKFDEP)
275 ##DOS## $(WCONFIG) config < $@.in > $@
276 ##DOS##lib\crypto\krb\keyhash_provider\Makefile: lib\crypto\krb\keyhash_provider\Makefile.in $(MKFDEP)
277 ##DOS## $(WCONFIG) config < $@.in > $@
278 ##DOS##lib\crypto\builtin\sha1\Makefile: lib\crypto\builtin\sha1\Makefile.in $(MKFDEP)
279 ##DOS## $(WCONFIG) config < $@.in > $@
280 ##DOS##lib\crypto\builtin\arcfour\Makefile: lib\crypto\builtin\arcfour\Makefile.in $(MKFDEP)
281 ##DOS## $(WCONFIG) config < $@.in > $@
282 ##DOS##lib\crypto\builtin\md4\Makefile: lib\crypto\builtin\md4\Makefile.in $(MKFDEP)
283 ##DOS## $(WCONFIG) config < $@.in > $@
284 ##DOS##lib\crypto\builtin\md5\Makefile: lib\crypto\md5\builtin\Makefile.in $(MKFDEP)
285 ##DOS## $(WCONFIG) config < $@.in > $@
286 ##DOS##lib\crypto\krb\yarrow\Makefile: lib\crypto\krb\yarrow\Makefile.in $(MKFDEP)
287 ##DOS## $(WCONFIG) config < $@.in > $@
288 ##DOS##lib\crypto\builtin\aes\Makefile: lib\crypto\builtin\aes\Makefile.in $(MKFDEP)
289 ##DOS## $(WCONFIG) config < $@.in > $@
290 ##DOS##lib\crypto\krb\old\Makefile: lib\crypto\krb\old\Makefile.in $(MKFDEP)
291 ##DOS## $(WCONFIG) config < $@.in > $@
292 ##DOS##lib\crypto\krb\raw\Makefile: lib\crypto\krb\raw\Makefile.in $(MKFDEP)
293 ##DOS## $(WCONFIG) config < $@.in > $@
294 ##DOS##lib\crypto\krb\Makefile: lib\crypto\krb\Makefile.in $(MKFDEP)
295 ##DOS## $(WCONFIG) config < $@.in > $@
296 ##DOS##lib\crypto\builtin\Makefile: lib\crypto\builtin\Makefile.in $(MKFDEP)
297 ##DOS## $(WCONFIG) config < $@.in > $@
298 ##DOS##lib\gssapi\Makefile: lib\gssapi\Makefile.in $(MKFDEP)
299 ##DOS## $(WCONFIG) config < $@.in > $@
300 ##DOS##lib\gssapi\generic\Makefile: lib\gssapi\generic\Makefile.in $(MKFDEP)
301 ##DOS## $(WCONFIG) config < $@.in > $@
302 ##DOS##lib\gssapi\mechglue\Makefile: lib\gssapi\mechglue\Makefile.in $(MKFDEP)
303 ##DOS## $(WCONFIG) config < $@.in > $@
304 ##DOS##lib\gssapi\spnego\Makefile: lib\gssapi\spnego\Makefile.in $(MKFDEP)
305 ##DOS## $(WCONFIG) config < $@.in > $@
306 ##DOS##lib\gssapi\krb5\Makefile: lib\gssapi\krb5\Makefile.in $(MKFDEP)
307 ##DOS## $(WCONFIG) config < $@.in > $@
308 ##DOS##lib\krb5\Makefile: lib\krb5\Makefile.in $(MKFDEP)
309 ##DOS## $(WCONFIG) config < $@.in > $@
310 ##DOS##lib\krb5\asn.1\Makefile: lib\krb5\asn.1\Makefile.in $(MKFDEP)
311 ##DOS## $(WCONFIG) config < $@.in > $@
312 ##DOS##lib\krb5\ccache\Makefile: lib\krb5\ccache\Makefile.in $(MKFDEP)
313 ##DOS## $(WCONFIG) config < $@.in > $@
314 ##DOS##lib\krb5\ccache\ccapi\Makefile: lib\krb5\ccache\ccapi\Makefile.in $(MKFDEP)
315 ##DOS## $(WCONFIG) config < $@.in > $@
316 ##DOS##lib\krb5\error_tables\Makefile: lib\krb5\error_tables\Makefile.in $(MKFDEP)
317 ##DOS## $(WCONFIG) config < $@.in > $@
318 ##DOS##lib\krb5\keytab\Makefile: $$@.in $(MKFDEP)
319 ##DOS## $(WCONFIG) config < $@.in > $@
320 ##DOS##lib\krb5\krb\Makefile: lib\krb5\krb\Makefile.in $(MKFDEP)
321 ##DOS## $(WCONFIG) config < $@.in > $@
322 ##DOS##lib\krb5\os\Makefile: lib\krb5\os\Makefile.in $(MKFDEP)
323 ##DOS## $(WCONFIG) config < $@.in > $@
324 ##DOS##lib\krb5\posix\Makefile: lib\krb5\posix\Makefile.in $(MKFDEP)
325 ##DOS## $(WCONFIG) config < $@.in > $@
326 ##DOS##lib\krb5\rcache\Makefile: lib\krb5\rcache\Makefile.in $(MKFDEP)
327 ##DOS## $(WCONFIG) config < $@.in > $@
328 ##DOS##lib\krb5\unicode\Makefile: lib\krb5\unicode\Makefile.in $(MKFDEP)
329 ##DOS## $(WCONFIG) config < $@.in > $@
330 ##DOS##util\Makefile: util\Makefile.in $(MKFDEP)
331 ##DOS## $(WCONFIG) config < $@.in > $@
332 ##DOS##util\et\Makefile: util\et\Makefile.in $(MKFDEP)
333 ##DOS## $(WCONFIG) config < $@.in > $@
334 ##DOS##util\profile\Makefile: util\profile\Makefile.in $(MKFDEP)
335 ##DOS## $(WCONFIG) config < $@.in > $@
336 ##DOS##util\support\Makefile: util\support\Makefile.in $(MKFDEP)
337 ##DOS## $(WCONFIG) config < $@.in > $@
338 ##DOS##util\windows\Makefile: util\windows\Makefile.in $(MKFDEP)
339 ##DOS## $(WCONFIG) config < $@.in > $@
340 ##DOS##windows\Makefile: windows\Makefile.in $(MKFDEP)
341 ##DOS## $(WCONFIG) config < $@.in > $@
342 ##DOS##windows\lib\Makefile: windows\lib\Makefile.in $(MKFDEP)
343 ##DOS## $(WCONFIG) config < $@.in > $@
344 ##DOS##windows\cns\Makefile: windows\cns\Makefile.in $(MKFDEP)
345 ##DOS## $(WCONFIG) config < $@.in > $@
346 ##DOS##windows\gina\Makefile: windows\gina\Makefile.in $(MKFDEP)
347 ##DOS## $(WCONFIG) config < $@.in > $@
348 ##DOS##windows\gss\Makefile: windows\gss\Makefile.in $(MKFDEP)
349 ##DOS## $(WCONFIG) config < $@.in > $@
350 ##DOS##windows\ms2mit\Makefile: windows\ms2mit\Makefile.in $(MKFDEP)
351 ##DOS## $(WCONFIG) config < $@.in > $@
352 ##DOS##windows\wintel\Makefile: windows\wintel\Makefile.in $(MKFDEP)
353 ##DOS## $(WCONFIG) config < $@.in > $@
354 ##DOS##windows\kfwlogon\Makefile: windows\kfwlogon\Makefile.in $(MKFDEP)
355 ##DOS## $(WCONFIG) config < $@.in > $@
357 clean-windows:: Makefile-windows
358 @echo Making clean in util
360 $(MAKE) -$(MFLAGS) clean
361 @echo Making clean in include
363 $(MAKE) -$(MFLAGS) clean
364 @echo Making clean in lib
366 $(MAKE) -$(MFLAGS) clean
367 @echo Making clean in windows
369 $(MAKE) -$(MFLAGS) clean
370 @echo Making clean in clients
372 $(MAKE) -$(MFLAGS) clean
373 @echo Making clean in appl\gss-sample
374 cd ..\appl\gss-sample
375 $(MAKE) -$(MFLAGS) clean
376 @echo Making clean in appl\gssftp\ftp
377 cd ..\..\appl\gssftp\ftp
378 $(MAKE) -$(MFLAGS) clean
380 @echo Making clean in root
383 # Renames DOS 8.3 filenames back to their proper, longer names.
389 # Builds the file that distributes Kerberos sources for DOS and
390 # Macintosh sites from the source tree on Unix.
394 clients/* clients/kdestroy/* clients/kinit/* clients/klist/* \
395 clients/kpasswd/* clients/kcpytkt/* clients/kdeltkt/* \
396 config/* include/* include/kerberosIV/* \
397 include/krb5/* include/krb5/stock/* include/sys/* lib/* \
398 lib/crypto/* lib/crypto/krb/crc32/* lib/crypto/builtin/des/* lib/crypto/krb/dk/* \
399 lib/crypto/builtin/enc_provider/* lib/crypto/krb/hash_provider/* \
400 lib/crypto/krb/keyhash_provider/* \
401 lib/crypto/krb/prf/* lib/crypto/krb/rand2key/* \
402 lib/crypto/krb/old/* lib/crypto/krb/raw/* \
403 lib/crypto/builtin/sha1/* lib/crypto/builtin/arcfour/* lib/crypto/builtin/md4/* \
404 lib/crypto/builtin/md5/* lib/crypto/krb/yarrow/* \
405 lib/crypto/builtin/* lib/crypto/krb/* lib/crypto/crypto_tests \
406 lib/gssapi/* lib/gssapi/generic/* lib/gssapi/krb5/* \
407 lib/gssapi/mechglue/* lib/gssapi/spnego/* \
408 lib/krb5/* lib/krb5/asn.1/* lib/krb5/krb/* \
409 lib/krb5/ccache/* lib/krb5/ccache/ccapi/* \
410 lib/krb5/error_tables/* \
411 lib/krb5/keytab/* lib/krb5/keytab/file/* lib/krb5/keytab/srvtab/* \
412 lib/krb5/os/* lib/krb5/posix/* lib/krb5/rcache/* \
413 util/* util/et/* util/profile/*
416 ccapi/common/* ccapi/common/win/* ccapi/common/win/OldCC/* \
417 ccapi/lib/* ccapi/lib/win/* ccapi/lib/win/OldCC/* \
418 ccapi/server/* ccapi/server/win/* \
420 util/windows/* windows/* windows/lib/* windows/cns/* \
421 windows/wintel/* windows/gss/* windows/gina/* windows/ms2mit/* \
424 WINBINARYFILES= windows/*/*.ico windows/*/*.doc windows/*/*.hlp \
425 windows/*/*.hpj windows/lib/*.lib
428 # Part of building the PC release has to be done on Unix. This includes
429 # anything the requires awk.
432 AH = util/et/et_h.awk
433 AC = util/et/et_c.awk
435 ET = lib/krb5/error_tables/
436 GG = lib/gssapi/generic/
437 GK = lib/gssapi/krb5/
443 $(INC)asn1_err.h $(ET)asn1_err.c \
444 $(INC)kdb5_err.h $(ET)kdb5_err.c \
445 $(INC)krb5_err.h $(ET)krb5_err.c \
446 $(INC)kv5m_err.h $(ET)kv5m_err.c \
447 $(INC)krb524_err.h $(ET)krb524_err.c \
448 $(PR)prof_err.h $(PR)prof_err.c \
449 $(GG)gssapi_err_generic.h $(GG)gssapi_err_generic.c \
450 $(GK)gssapi_err_krb5.h $(GK)gssapi_err_krb5.c \
451 $(CCL)ccapi_err.h $(CCL)ccapi_err.c
453 HOUT = $(INC)krb5\krb5.h $(GG)gssapi.h $(PR)profile.h
455 CLEANUP= Makefile $(ETOUT) $(HOUT) \
456 include/profile.h include/osconf.h \
460 kerbsrc.win: kerbsrc.zip
463 echo $(FILES) $(WINFILES) | tr ' ' \\012 | \
464 sed -f config/winexclude.sed > winfile.list
467 cat config/win-pre.in Makefile.in config/win-post.in | \
468 sed -e "s/^##DOS##//" -e "s/^##DOS//" > Makefile.tmp
469 mv Makefile.tmp Makefile
471 prep-windows: dos-Makefile awk-windows-mac
473 krbsrc83.zip: krbsrc83-is-obsolete
475 krbsrc83-is-obsolete:
476 @echo "Win16 and krbsrc83.zip are no longer supported."
477 @echo "We don't support building under 8.3 restricted filesystems"
478 @echo "anymore. You can still build for Win32 on filesystems"
479 @echo "without 8.3 restrictions using kerbsrc.zip"
482 kerbsrc.zip: dos-Makefile awk-windows-mac winfile.list
484 $(ZIP) -@Dl kerbsrc.zip < winfile.list
485 $(ZIP) -D kerbsrc.zip $(WINBINARYFILES)
488 kerbsrc-nt.zip: kerbsrc-nt-is-obsolete
490 kerbsrc-nt-is-obsolete:
491 @echo "kerbsrc-nt.zip is now obsolete. Just use and build kerbsrc.zip"
492 @echo "We don't support building under 8.3 restricted filesystems"
493 @echo "anymore, so what was kerbsrc-nt.zip is now kerbsrc.zip."
496 $(INC)asn1_err.h: $(AH) $(ET)asn1_err.et
497 $(AWK) -f $(AH) outfile=$@ $(ET)asn1_err.et
498 $(INC)kdb5_err.h: $(AH) $(ET)kdb5_err.et
499 $(AWK) -f $(AH) outfile=$@ $(ET)kdb5_err.et
500 $(INC)krb5_err.h: $(AH) $(ET)krb5_err.et
501 $(AWK) -f $(AH) outfile=$@ $(ET)krb5_err.et
502 $(INC)kv5m_err.h: $(AH) $(ET)kv5m_err.et
503 $(AWK) -f $(AH) outfile=$@ $(ET)kv5m_err.et
504 $(INC)krb524_err.h: $(AH) $(ET)krb524_err.et
505 $(AWK) -f $(AH) outfile=$@ $(ET)krb524_err.et
506 $(PR)prof_err.h: $(AH) $(PR)prof_err.et
507 $(AWK) -f $(AH) outfile=$@ $(PR)prof_err.et
508 $(GG)gssapi_err_generic.h: $(AH) $(GG)gssapi_err_generic.et
509 $(AWK) -f $(AH) outfile=$@ $(GG)gssapi_err_generic.et
510 $(GK)gssapi_err_krb5.h: $(AH) $(GK)gssapi_err_krb5.et
511 $(AWK) -f $(AH) outfile=$@ $(GK)gssapi_err_krb5.et
512 $(CCL)ccapi_err.h: $(AH) $(CCL)ccapi_err.et
513 $(AWK) -f $(AH) outfile=$@ $(CCL)ccapi_err.et
514 $(CE)test1.h: $(AH) $(CE)test1.et
515 $(AWK) -f $(AH) outfile=$@ $(CE)test1.et
516 $(CE)test2.h: $(AH) $(CE)test2.et
517 $(AWK) -f $(AH) outfile=$@ $(CE)test2.et
519 $(ET)asn1_err.c: $(AC) $(ET)asn1_err.et
520 $(AWK) -f $(AC) outfile=$@ $(ET)asn1_err.et
521 $(ET)kdb5_err.c: $(AC) $(ET)kdb5_err.et
522 $(AWK) -f $(AC) outfile=$@ $(ET)kdb5_err.et
523 $(ET)krb5_err.c: $(AC) $(ET)krb5_err.et
524 $(AWK) -f $(AC) outfile=$@ $(ET)krb5_err.et
525 $(ET)kv5m_err.c: $(AC) $(ET)kv5m_err.et
526 $(AWK) -f $(AC) outfile=$@ $(ET)kv5m_err.et
527 $(ET)krb524_err.c: $(AC) $(ET)krb524_err.et
528 $(AWK) -f $(AC) outfile=$@ $(ET)krb524_err.et
529 $(PR)prof_err.c: $(AC) $(PR)prof_err.et
530 $(AWK) -f $(AC) outfile=$@ $(PR)prof_err.et
531 $(GG)gssapi_err_generic.c: $(AC) $(GG)gssapi_err_generic.et
532 $(AWK) -f $(AC) outfile=$@ $(GG)gssapi_err_generic.et
533 $(GK)gssapi_err_krb5.c: $(AC) $(GK)gssapi_err_krb5.et
534 $(AWK) -f $(AC) outfile=$@ $(GK)gssapi_err_krb5.et
535 $(CCL)ccapi_err.c: $(AC) $(CCL)ccapi_err.et
536 $(AWK) -f $(AC) outfile=$@ $(CCL)ccapi_err.et
537 $(CE)test1.c: $(AC) $(CE)test1.et
538 $(AWK) -f $(AC) outfile=$@ $(CE)test1.et
539 $(CE)test2.c: $(AC) $(CE)test2.et
540 $(AWK) -f $(AC) outfile=$@ $(CE)test2.et
542 KRBHDEP = $(INC)krb5\krb5.hin $(INC)krb5_err.h $(INC)kdb5_err.h \
543 $(INC)kv5m_err.h $(INC)krb524_err.h $(INC)asn1_err.h
545 $(INC)krb5\krb5.h: $(KRBHDEP)
548 $(PR)profile.h: $(PR)profile.hin $(PR)prof_err.h
550 cat $(PR)profile.hin $(PR)prof_err.h > $@
551 $(GG)gssapi.h: $(GG)gssapi.hin
553 cat $(GG)gssapi.hin > $@
555 awk-windows-mac: $(ETOUT) $(HOUT)
558 # The maybe-awk target needs to happen after AWK is defined.
562 ##DOS##!ifdef WHICH_CMD
563 ##DOS##!if ![ $(WHICH_CMD) $(AWK) ]
564 ##DOS##maybe-awk:: awk-windows-mac
572 config\rm.bat $(CLEANUP:^/=^\)
573 config\rm.bat $(WINMAKEFILES)
574 config\rm.bat $(KBINDIR)\*.dll $(KBINDIR)\*.exe
575 @if exist $(KBINDIR)\nul rmdir $(KBINDIR)
578 @if "$(KRB_INSTALL_DIR)"=="" @echo KRB_INSTALL_DIR is not defined! Please define it.
579 @if "$(KRB_INSTALL_DIR)"=="" @dir /b \nul\nul
580 @if not exist "$(KRB_INSTALL_DIR)\$(NULL)" @echo The directory $(KRB_INSTALL_DIR) does not exist. Please create it.
581 @if not exist "$(KRB_INSTALL_DIR)\$(NULL)" @dir /b $(KRB_INSTALL_DIR)\nul
582 @if not exist "$(KRB_INSTALL_DIR)\include\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\include"
583 @if not exist "$(KRB_INSTALL_DIR)\include\krb5\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\include\krb5"
584 @if not exist "$(KRB_INSTALL_DIR)\include\gssapi\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\include\gssapi"
585 @if not exist "$(KRB_INSTALL_DIR)\lib\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\lib"
586 @if not exist "$(KRB_INSTALL_DIR)\bin\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\bin"
587 $(CP) include\krb5.h "$(KRB_INSTALL_DIR)\include\."
588 $(CP) include\krb5\krb5.h "$(KRB_INSTALL_DIR)\include\krb5\."
589 $(CP) include\win-mac.h "$(KRB_INSTALL_DIR)\include\."
590 $(CP) include\profile.h "$(KRB_INSTALL_DIR)\include\."
591 $(CP) include\com_err.h "$(KRB_INSTALL_DIR)\include\."
592 $(CP) include\gssapi\gssapi.h "$(KRB_INSTALL_DIR)\include\gssapi\."
593 $(CP) include\gssapi\gssapi_krb5.h "$(KRB_INSTALL_DIR)\include\gssapi\."
594 $(CP) lib\$(OUTPRE)*.lib "$(KRB_INSTALL_DIR)\lib\."
595 $(CP) lib\$(OUTPRE)*.dll "$(KRB_INSTALL_DIR)\bin\."
596 $(CP) windows\cns\$(OUTPRE)krb5.exe "$(KRB_INSTALL_DIR)\bin\."
597 $(CP) windows\wintel\$(OUTPRE)telnet.exe "$(KRB_INSTALL_DIR)\bin\."
598 $(CP) windows\gss\$(OUTPRE)gss.exe "$(KRB_INSTALL_DIR)\bin\."
599 $(CP) appl\gss-sample\$(OUTPRE)gss-server.exe "$(KRB_INSTALL_DIR)\bin\."
600 $(CP) appl\gss-sample\$(OUTPRE)gss-client.exe "$(KRB_INSTALL_DIR)\bin\."
601 $(CP) windows\ms2mit\$(OUTPRE)ms2mit.exe "$(KRB_INSTALL_DIR)\bin\."
602 $(CP) appl\gssftp\ftp\$(OUTPRE)ftp.exe "$(KRB_INSTALL_DIR)\bin\."
603 $(CP) ccapi\lib\win\$(OUTPRE)ccapi.dll "$(KRB_INSTALL_DIR)\bin\."
604 $(CP) ccapi\server\win\$(OUTPRE)ccapiserver.exe "$(KRB_INSTALL_DIR)\bin\."
605 $(CP) clients\kvno\$(OUTPRE)kvno.exe "$(KRB_INSTALL_DIR)\bin\."
606 $(CP) clients\klist\$(OUTPRE)klist.exe "$(KRB_INSTALL_DIR)\bin\."
607 $(CP) clients\kinit\$(OUTPRE)kinit.exe "$(KRB_INSTALL_DIR)\bin\."
608 $(CP) clients\kdestroy\$(OUTPRE)kdestroy.exe "$(KRB_INSTALL_DIR)\bin\."
609 $(CP) clients\kcpytkt\$(OUTPRE)kcpytkt.exe "$(KRB_INSTALL_DIR)\bin\."
610 $(CP) clients\kdeltkt\$(OUTPRE)kdeltkt.exe "$(KRB_INSTALL_DIR)\bin\."
611 $(CP) clients\kpasswd\$(OUTPRE)kpasswd.exe "$(KRB_INSTALL_DIR)\bin\."
614 $(INSTALL_SCRIPT) krb5-config \
615 $(DESTDIR)$(CLIENT_BINDIR)/krb5-config
616 $(INSTALL_DATA) $(srcdir)/krb5-config.M $(DESTDIR)$(CLIENT_MANDIR)/krb5-config.1
618 krb5-config: $(srcdir)/krb5-config.in $(thisconfigdir)/config.status
619 cd $(thisconfigdir) && $(SHELL) config.status krb5-config
621 # Test to ensure that krb5-config does not spit out things like
622 # $(PURE) or $(LDFLAGS) in case someone changes config/shlib.conf
623 check-unix:: krb5-config
624 $(SHELL) $(srcdir)/t_krbconf
625 check-prerecurse: fake-install
628 COV_ANALYZE= cov-analyze
629 COV_COMMIT= cov-commit-defects --product "$(COV_PRODUCT)" --user "$(COV_USER)" --target "$(COV_TARGET)" --description "$(COV_DESC)"
630 COV_MAKE_LIB= cov-make-library
638 # Set to, e.g., "--all" or "--security".
640 # Temporary directory, might as well put it in the build tree.
641 COV_TEMPDIR= cov-temp
642 # Sources modeling some functions or macros confusing Prevent.
644 $(SRCTOP)/util/coverity-models/threads.c
646 # Depend on Makefiles to ensure that (in maintainer mode) the configure
647 # scripts won't get rerun under cov-build.
648 coverity prevent cov: Makefiles
649 $(COV_BUILD) --dir $(COV_TEMPDIR) $(MAKE) all
650 $(COV_ANALYZE) $(COV_ANALYSES) --dir $(COV_TEMPDIR)
651 if test "$(COV_DATADIR)" != ""; then \
652 $(COV_COMMIT) --dir $(COV_TEMPDIR) --datadir $(COV_DATADIR); \
654 echo "** Coverity Prevent analysis results not commit to Defect Manager"; \