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
21 #If AFS_OBJDIR is not defined then use obj as relative obj folder
23 AFS_OBJDIR=$(AFSROOT)\obj
25 DESTDIR=$(AFSROOT)\dest
28 NTMAKE = nmake /nologo /f ntmakefile install
29 NTMAKELANG = nmake /nologo /f ntmakefile en_US
30 NTMAKE_HEADERS = nmake /nologo /f ntmakefile install_headers
31 NTMAKE_OBJS = nmake /nologo /f ntmakefile install_objs
34 #debug statement support jumping to last know error
35 DOCD=$(SRC)\DOLASTCMP.BAT
44 procmgmt_headers:config
46 $(DOCD) $(SRC)\procmgmt
53 $(DOCD) $(SRC)\WINNT\afsreg
54 $(CD) $(SRC)\WINNT\afsreg
58 util: procmgmt_headers afsreg_headers
88 $(DOCD) $(SRC)\WINNT\$@
95 $(DOCD) $(SRC)\WINNT\$@
116 ! IF (EXIST($(SRC)\des\NTMakefile))
122 $(DOCD) $(SRC)\des_stub
123 $(CD) $(SRC)\des_stub
151 $(DOCD) $(SRC)\WINNT\$@
152 $(CD) $(SRC)\WINNT\$@
179 $(DOCD) $(SRC)\WINNT\client_osi
180 $(CD) $(SRC)\WINNT\client_osi
184 libacl_headers: osi_headers
186 $(DOCD) $(SRC)\libacl
191 cm_headers: libacl_headers
193 $(DOCD) $(SRC)\WINNT\afsd
194 $(CD) $(SRC)\WINNT\afsd
200 $(DOCD) $(SRC)\WINNT\afsd
201 $(CD) $(SRC)\WINNT\afsd
339 $(DOCD) $(SRC)\WINNT\$@
340 $(CD) $(SRC)\WINNT\$@
358 libafsauthent: libafsrpc
365 tviced: libafsauthent
388 $(DOCD) $(SRC)\libadmin\$@
389 $(CD) $(SRC)\libadmin\$@
395 $(DOCD) $(SRC)\libadmin\$@
396 $(CD) $(SRC)\libadmin\$@
402 $(DOCD) $(SRC)\libadmin\$@
403 $(CD) $(SRC)\libadmin\$@
409 $(DOCD) $(SRC)\libadmin\$@
410 $(CD) $(SRC)\libadmin\$@
416 $(DOCD) $(SRC)\libadmin\$@
417 $(CD) $(SRC)\libadmin\$@
423 $(DOCD) $(SRC)\libadmin\$@
424 $(CD) $(SRC)\libadmin\$@
430 $(DOCD) $(SRC)\libadmin\$@
431 $(CD) $(SRC)\libadmin\$@
437 $(DOCD) $(SRC)\libadmin\test
438 $(CD) $(SRC)\libadmin\test
444 $(DOCD) $(SRC)\WINNT\$@
445 $(CD) $(SRC)\WINNT\$@
451 $(DOCD) $(SRC)\WINNT\$@
452 $(CD) $(SRC)\WINNT\$@
458 $(DOCD) $(SRC)\WINNT\$@
459 $(CD) $(SRC)\WINNT\$@
465 $(DOCD) $(SRC)\WINNT\$@
466 $(CD) $(SRC)\WINNT\$@
472 $(DOCD) $(SRC)\WINNT\$@
473 $(CD) $(SRC)\WINNT\$@
479 $(DOCD) $(SRC)\WINNT\$@
480 $(CD) $(SRC)\WINNT\$@
486 $(DOCD) $(SRC)\WINNT\$@
487 $(CD) $(SRC)\WINNT\$@
491 client_talocale: afssvrcpa
493 $(DOCD) $(SRC)\WINNT\talocale
494 $(CD) $(SRC)\WINNT\talocale
498 client_osi: client_talocale
500 $(DOCD) $(SRC)\WINNT\$@
501 $(CD) $(SRC)\WINNT\$@
507 $(DOCD) $(SRC)\WINNT\$@
508 $(CD) $(SRC)\WINNT\$@
514 $(DOCD) $(SRC)\WINNT\$@
515 $(CD) $(SRC)\WINNT\$@
519 client_config: client_cpa
521 $(DOCD) $(SRC)\WINNT\$@
522 $(CD) $(SRC)\WINNT\$@
526 client_exp: client_config
528 $(DOCD) $(SRC)\WINNT\$@
529 $(CD) $(SRC)\WINNT\$@
533 client_creds: client_exp
535 $(DOCD) $(SRC)\WINNT\$@
536 $(CD) $(SRC)\WINNT\$@
542 $(DOCD) $(SRC)\WINNT\$@
543 $(CD) $(SRC)\WINNT\$@
548 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
550 $(DOCD) $(SRC)\WINNT\$@
551 $(CD) $(SRC)\WINNT\$@
555 echo ***** Skipping $@ ***** Not found.
564 echo Build Finished Successfully
568 # InstallShield dependencies
570 # Clean target for obj tree
572 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
573 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
575 nmake /nologo /f ntmakefile clean_version
578 # Language-only build target
580 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
585 -mkdir $(AFS_OBJDIR)\checked
586 -mkdir $(AFS_OBJDIR)\free
587 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
588 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
589 -mkdir $(DESTDIR)\checked
590 -mkdir $(DESTDIR)\free
591 -mkdir $(DESTDIR)\checked\bin
592 -mkdir $(DESTDIR)\free\bin
593 -@copy $(SRC)\config\NTLANG.BAT .
596 echo ***** Making NSIS Installer
597 $(DOCD) $(SRC)\WINNT\install\$@
598 $(CD) $(SRC)\WINNT\install\$@
603 # echo ***** Making MSI Installer
604 # $(DOCD) $(SRC)\WINNT\install\$@
605 # $(CD) $(SRC)\WINNT\install\$@
610 echo ***** afs_setup_utils
611 $(DOCD) $(SRC)\WINNT\afs_setup_utils
612 $(CD) $(SRC)\WINNT\afs_setup_utils
616 $(DOCD) $(SRC)\WINNT\install\$@
617 $(CD) $(SRC)\WINNT\install\$@
621 media: install InstallShield5 NSIS
623 install-nsis: install NSIS
625 install-msi: install msi
627 install-is5: install InstallShield5