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 SDEBUG=echo cd $(SRC)\$@ >d:\dev\bat\gc.bat
38 WDEBUG=echo cd $(SRC)\WINNT\$@ >d:\dev\bat\gc.bat
39 LDEBUG=echo cd $(SRC)\libadmin\$@ >d:\dev\bat\gc.bat
40 TDEBUG=echo cd $(SRC)\WINNT\talocale >d:\dev\bat\gc.bat
41 WADEBUG=echo cd $(SRC)\WINNT\afs_setup_utils >d:\dev\bat\gc.bat
42 WIDEBUG=echo cd $(SRC)\WINNT\install\$@ >d:\dev\bat\gc.bat
43 RIDEBUG=echo cd $(SRC)\WINNT\afsreg >d:\dev\bat\gc.bat
51 procmgmt_headers:config
61 $(CD) $(SRC)\WINNT\afsreg
65 util: procmgmt_headers afsreg_headers
117 ! IF (EXIST($(SRC)\des\NTMakefile))
122 $(CD) $(SRC)\des_stub
150 $(CD) $(SRC)\WINNT\$@
178 $(CD) $(SRC)\WINNT\client_osi
182 libacl_headers: osi_headers
189 cm_headers: libacl_headers
192 $(CD) $(SRC)\WINNT\afsd
206 $(CD) $(SRC)\WINNT\afsd
338 $(CD) $(SRC)\WINNT\$@
356 libafsauthent: libafsrpc
363 tviced: libafsauthent
387 $(CD) $(SRC)\libadmin\$@
394 $(CD) $(SRC)\libadmin\$@
401 $(CD) $(SRC)\libadmin\$@
408 $(CD) $(SRC)\libadmin\$@
415 $(CD) $(SRC)\libadmin\$@
422 $(CD) $(SRC)\libadmin\$@
429 $(CD) $(SRC)\libadmin\$@
435 $(CD) $(SRC)\libadmin\test
442 $(CD) $(SRC)\WINNT\$@
449 $(CD) $(SRC)\WINNT\$@
456 $(CD) $(SRC)\WINNT\$@
463 $(CD) $(SRC)\WINNT\$@
470 $(CD) $(SRC)\WINNT\$@
477 $(CD) $(SRC)\WINNT\$@
484 $(CD) $(SRC)\WINNT\$@
488 client_talocale: afssvrcpa
491 $(CD) $(SRC)\WINNT\talocale
495 client_osi: client_talocale
498 $(CD) $(SRC)\WINNT\$@
505 $(CD) $(SRC)\WINNT\$@
512 $(CD) $(SRC)\WINNT\$@
516 client_config: client_cpa
519 $(CD) $(SRC)\WINNT\$@
523 client_exp: client_config
526 $(CD) $(SRC)\WINNT\$@
530 client_creds: client_exp
533 $(CD) $(SRC)\WINNT\$@
543 echo Build Finished Successfully
547 # InstallShield dependencies
550 echo ***** afs_setup_utils
552 $(CD) $(SRC)\WINNT\afs_setup_utils
557 $(CD) $(SRC)\WINNT\install\$@
561 media: InstallShield5
563 # Clean target for obj tree
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" install
566 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
568 nmake /nologo /f ntmakefile clean_version
571 # Language-only build target
573 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
576 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
577 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
578 -mkdir $(DESTDIR)\checked
579 -mkdir $(DESTDIR)\free
580 -mkdir $(DESTDIR)\checked\bin
581 -mkdir $(DESTDIR)\free\bin
582 -@copy $(SRC)\config\NTLANG.BAT .