1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
8 # Top level nmake NTMakefile driver for building AFS.
10 # This file simply imposes a reasonable total ordering on the set of
11 # directories to build; this ordering is of course more strict than the
12 # partial ordering established by the actual directory dependencies.
14 # When porting a new directory, simply add the directory into the
15 # dependence chain at the earliest point possible, updating its successor
16 # appropriately; if the new directory is the last in the chain, then
17 # update the 'finale' dependency to be the new directory.
19 # These three macros define the source, object, and destination folders
22 #If AFS_OBJDIR is not defined then use obj as relative obj folder
24 DESTDIR=$(AFS_OBJDIR)\dest
31 NTMAKE = nmake /nologo /f ntmakefile install
32 NTMAKELANG = nmake /nologo /f ntmakefile en_US
33 NTMAKE_HEADERS = nmake /nologo /f ntmakefile install_headers
34 NTMAKE_OBJS = nmake /nologo /f ntmakefile install_objs
37 #debug statement support jumping to last know error
38 DOCD=src\DOLASTCMP.BAT
47 procmgmt_headers:config
49 $(DOCD) $(SRC)\procmgmt
56 $(DOCD) $(SRC)\WINNT\afsreg
57 $(CD) $(SRC)\WINNT\afsreg
61 util: procmgmt_headers afsreg_headers
84 $(DOCD) $(SRC)\WINNT\$@
91 $(DOCD) $(SRC)\WINNT\$@
112 ! IF (EXIST($(SRC)\des\NTMakefile))
118 $(DOCD) $(SRC)\des_stub
119 $(CD) $(SRC)\des_stub
147 $(DOCD) $(SRC)\WINNT\$@
148 $(CD) $(SRC)\WINNT\$@
175 $(DOCD) $(SRC)\WINNT\client_osi
176 $(CD) $(SRC)\WINNT\client_osi
180 libacl_headers: osi_headers
182 $(DOCD) $(SRC)\libacl
187 cm_headers: libacl_headers
189 $(DOCD) $(SRC)\WINNT\afsd
190 $(CD) $(SRC)\WINNT\afsd
203 $(DOCD) $(SRC)\WINNT\afsd
204 $(CD) $(SRC)\WINNT\afsd
335 $(DOCD) $(SRC)\WINNT\$@
336 $(CD) $(SRC)\WINNT\$@
354 libafsauthent: libafsrpc
361 tviced: libafsauthent
384 $(DOCD) $(SRC)\libadmin\$@
385 $(CD) $(SRC)\libadmin\$@
391 $(DOCD) $(SRC)\libadmin\$@
392 $(CD) $(SRC)\libadmin\$@
398 $(DOCD) $(SRC)\libadmin\$@
399 $(CD) $(SRC)\libadmin\$@
405 $(DOCD) $(SRC)\libadmin\$@
406 $(CD) $(SRC)\libadmin\$@
412 $(DOCD) $(SRC)\libadmin\$@
413 $(CD) $(SRC)\libadmin\$@
419 $(DOCD) $(SRC)\libadmin\$@
420 $(CD) $(SRC)\libadmin\$@
426 $(DOCD) $(SRC)\libadmin\$@
427 $(CD) $(SRC)\libadmin\$@
433 $(DOCD) $(SRC)\libadmin\test
434 $(CD) $(SRC)\libadmin\test
440 $(DOCD) $(SRC)\WINNT\$@
441 $(CD) $(SRC)\WINNT\$@
447 $(DOCD) $(SRC)\WINNT\$@
448 $(CD) $(SRC)\WINNT\$@
454 $(DOCD) $(SRC)\WINNT\$@
455 $(CD) $(SRC)\WINNT\$@
461 $(DOCD) $(SRC)\WINNT\$@
462 $(CD) $(SRC)\WINNT\$@
468 $(DOCD) $(SRC)\WINNT\$@
469 $(CD) $(SRC)\WINNT\$@
475 $(DOCD) $(SRC)\WINNT\$@
476 $(CD) $(SRC)\WINNT\$@
482 $(DOCD) $(SRC)\WINNT\$@
483 $(CD) $(SRC)\WINNT\$@
487 client_talocale: afssvrcpa
489 $(DOCD) $(SRC)\WINNT\talocale
490 $(CD) $(SRC)\WINNT\talocale
494 client_osi: client_talocale
496 $(DOCD) $(SRC)\WINNT\$@
497 $(CD) $(SRC)\WINNT\$@
503 $(DOCD) $(SRC)\WINNT\$@
504 $(CD) $(SRC)\WINNT\$@
510 $(DOCD) $(SRC)\WINNT\$@
511 $(CD) $(SRC)\WINNT\$@
515 client_config: client_cpa
517 $(DOCD) $(SRC)\WINNT\$@
518 $(CD) $(SRC)\WINNT\$@
522 client_exp: client_config
524 $(DOCD) $(SRC)\WINNT\$@
525 $(CD) $(SRC)\WINNT\$@
529 client_creds: client_exp
531 $(DOCD) $(SRC)\WINNT\$@
532 $(CD) $(SRC)\WINNT\$@
542 echo Build Finished Successfully
546 # InstallShield dependencies
549 echo ***** afs_setup_utils
550 $(DOCD) $(SRC)\WINNT\afs_setup_utils
551 $(CD) $(SRC)\WINNT\afs_setup_utils
555 $(DOCD) $(SRC)\WINNT\install\$@
556 $(CD) $(SRC)\WINNT\install\$@
560 media: InstallShield5
562 # Clean target for obj tree
564 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile clean" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile clean" "NTMAKE_OBJS = nmake /nologo /f ntmakefile clean" install
565 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile clean" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile clean" "NTMAKE_OBJS = nmake /nologo /f ntmakefile clean" media
567 nmake /nologo /f ntmakefile clean_version
570 # Language-only build target
572 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
575 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
576 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
577 -mkdir $(DESTDIR)\checked
578 -mkdir $(DESTDIR)\free
579 -mkdir $(DESTDIR)\checked\bin
580 -mkdir $(DESTDIR)\free\bin
581 -@copy $(SRC)\config\NTLANG.BAT .