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 TESTS=$(AFSROOT)\tests
24 #If AFS_OBJDIR is not defined then use obj as relative obj folder
26 AFS_OBJDIR=$(AFSROOT)\obj\$(SYS_NAME)
30 DESTDIR=$(AFSROOT)\dest\$(SYS_NAME)
34 WIXCYGOPT=-dCygwinArchives
42 NTMAKE = nmake /nologo /f ntmakefile install
43 NTMAKELANG = nmake /nologo /f ntmakefile en_US
44 NTMAKE_HEADERS = nmake /nologo /f ntmakefile install_headers
45 NTMAKE_OBJS = nmake /nologo /f ntmakefile install_objs
47 #debug statement support jumping to last known error
48 DOCD=$(SRC)\DOLASTCMP.BAT
57 procmgmt_headers: config
59 $(DOCD) $(SRC)\procmgmt
66 $(DOCD) $(SRC)\WINNT\afsreg
67 $(CD) $(SRC)\WINNT\afsreg
85 util_headers: roken_headers
99 hcrypto_headers: util_headers
101 $(DOCD) $(SRC)\crypto\hcrypto
102 $(CD) $(SRC)\crypto\hcrypto
106 pthread: hcrypto_headers
108 $(DOCD) $(SRC)\WINNT\$@
109 $(CD) $(SRC)\WINNT\$@
113 util: procmgmt_headers afsreg_headers lwp_headers rx_headers hcrypto
143 $(DOCD) $(SRC)\WINNT\$@
144 $(CD) $(SRC)\WINNT\$@
150 $(DOCD) $(SRC)\WINNT\$@
151 $(CD) $(SRC)\WINNT\$@
171 $(DOCD) $(SRC)\crypto\hcrypto
172 $(CD) $(SRC)\crypto\hcrypto
197 ubik_headers: rxdebug
241 $(DOCD) $(SRC)\WINNT\client_osi
242 $(CD) $(SRC)\WINNT\client_osi
246 libacl_headers: osi_headers
248 $(DOCD) $(SRC)\libacl
253 cm_headers: libacl_headers
255 $(DOCD) $(SRC)\WINNT\afsd
256 $(CD) $(SRC)\WINNT\afsd
260 auth_headers: cm_headers
267 vlserver_headers: auth_headers
269 $(DOCD) $(SRC)\vlserver
270 $(CD) $(SRC)\vlserver
274 afsdobjs: vlserver_headers
276 $(DOCD) $(SRC)\WINNT\afsd
277 $(CD) $(SRC)\WINNT\afsd
373 $(DOCD) $(SRC)\rx\test
429 $(DOCD) $(SRC)\WINNT\$@
430 $(CD) $(SRC)\WINNT\$@
441 libafsauthent: bu_utils
448 tviced: libafsauthent
485 $(DOCD) $(SRC)\WINNT\$@
486 $(CD) $(SRC)\WINNT\$@
490 talocale_unicode: talocale
492 $(DOCD) $(SRC)\WINNT\$@
493 $(CD) $(SRC)\WINNT\$@
497 license: talocale_unicode
499 $(DOCD) $(SRC)\WINNT\$@
500 $(CD) $(SRC)\WINNT\$@
506 $(DOCD) $(SRC)\WINNT\$@
507 $(CD) $(SRC)\WINNT\$@
511 afsd: client_osi libafscp
513 $(DOCD) $(SRC)\WINNT\$@
514 $(CD) $(SRC)\WINNT\$@
527 $(DOCD) $(SRC)\libadmin\$@
528 $(CD) $(SRC)\libadmin\$@
534 $(DOCD) $(SRC)\libadmin\$@
535 $(CD) $(SRC)\libadmin\$@
541 $(DOCD) $(SRC)\libadmin\$@
542 $(CD) $(SRC)\libadmin\$@
548 $(DOCD) $(SRC)\libadmin\$@
549 $(CD) $(SRC)\libadmin\$@
555 $(DOCD) $(SRC)\libadmin\$@
556 $(CD) $(SRC)\libadmin\$@
562 $(DOCD) $(SRC)\libadmin\$@
563 $(CD) $(SRC)\libadmin\$@
569 $(DOCD) $(SRC)\libadmin\$@
570 $(CD) $(SRC)\libadmin\$@
576 $(DOCD) $(SRC)\libadmin\test
577 $(CD) $(SRC)\libadmin\test
583 $(DOCD) $(SRC)\WINNT\$@
584 $(CD) $(SRC)\WINNT\$@
590 $(DOCD) $(SRC)\WINNT\$@
591 $(CD) $(SRC)\WINNT\$@
597 $(DOCD) $(SRC)\WINNT\$@
598 $(CD) $(SRC)\WINNT\$@
604 $(DOCD) $(SRC)\WINNT\$@
605 $(CD) $(SRC)\WINNT\$@
611 $(DOCD) $(SRC)\WINNT\$@
612 $(CD) $(SRC)\WINNT\$@
616 client_talocale: afssvrcpa
618 $(DOCD) $(SRC)\WINNT\talocale
619 $(CD) $(SRC)\WINNT\talocale
623 client_cpa: client_talocale
625 $(DOCD) $(SRC)\WINNT\$@
626 $(CD) $(SRC)\WINNT\$@
630 client_config: client_cpa
632 $(DOCD) $(SRC)\WINNT\$@
633 $(CD) $(SRC)\WINNT\$@
637 client_exp: client_config
639 $(DOCD) $(SRC)\WINNT\$@
640 $(CD) $(SRC)\WINNT\$@
644 client_creds: client_exp
646 $(DOCD) $(SRC)\WINNT\$@
647 $(CD) $(SRC)\WINNT\$@
653 $(DOCD) $(SRC)\WINNT\$@
654 $(CD) $(SRC)\WINNT\$@
665 netidmgr_plugin: xstat
667 $(DOCD) $(SRC)\WINNT\$@
668 $(CD) $(SRC)\WINNT\$@
672 rpctestlib: fsint libafsrpc
679 libafscp: util afs volser vlserver rx auth fsint afsdobjs
686 extra: netidmgr_plugin rpctestlib
687 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
689 $(DOCD) $(SRC)\WINNT\$@
690 $(CD) $(SRC)\WINNT\$@
694 @echo ***** Skipping $@ ***** Not found.
705 @echo Build Finished Successfully
708 # Clean target for obj tree
711 nmake /nologo /f ntmakefile version langsetup
713 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
715 nmake /nologo /f ntmakefile clean_final
718 # Language-only build target
720 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
725 -mkdir $(AFS_OBJDIR)\checked
726 -mkdir $(AFS_OBJDIR)\free
727 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
728 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
729 -mkdir $(DESTDIR)\checked
730 -mkdir $(DESTDIR)\free
731 -mkdir $(DESTDIR)\checked\bin
732 -mkdir $(DESTDIR)\free\bin
733 -@copy $(SRC)\config\NTLANG.BAT .
736 @echo ***** Making Loopback Adapter Utility DLL
737 $(DOCD) $(SRC)\WINNT\install\$@
738 $(CD) $(SRC)\WINNT\install\$@
744 $(DOCD) $(DOC)\man-pages
745 $(CD) $(DOC)\man-pages
749 documentation: config
751 $(DOCD) $(DOC)\xml\ReleaseNotesWindows
752 $(CD) $(DOC)\xml\ReleaseNotesWindows
757 $(DOCD) ..\AdminGuide
763 NSIS.i386: loopback man-pages documentation
764 @echo ***** Making NSIS Installer
765 $(DOCD) $(SRC)\WINNT\install\NSIS
766 $(CD) $(SRC)\WINNT\install\NSIS
771 @echo Skipping NSIS Installer on non-x86 platforms; not implemented
775 wix: loopback man-pages documentation
776 @echo ***** Making Wix MSI Installer
777 $(DOCD) $(SRC)\WINNT\install\$@
778 $(CD) $(SRC)\WINNT\install\$@
782 wix-lite: loopback man-pages documentation
783 @echo ***** Making Wix MSI Installer (Lite)
784 $(DOCD) $(SRC)\WINNT\install\wix
785 $(CD) $(SRC)\WINNT\install\wix
786 $(NTMAKE) LITECLIENT=1
789 media: install NSIS wix
791 install-nsis: install NSIS
793 install-wix: install wix
795 install-wix-lite: install wix-lite