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
73 $(DOCD) $(SRC)\libafscp
92 util_headers: roken_headers
106 hcrypto_headers: util_headers
108 $(DOCD) $(SRC)\crypto\hcrypto
109 $(CD) $(SRC)\crypto\hcrypto
113 pthread: hcrypto_headers
115 $(DOCD) $(SRC)\WINNT\$@
116 $(CD) $(SRC)\WINNT\$@
120 util: procmgmt_headers afsreg_headers lwp_headers rx_headers hcrypto
150 $(DOCD) $(SRC)\WINNT\$@
151 $(CD) $(SRC)\WINNT\$@
157 $(DOCD) $(SRC)\WINNT\$@
158 $(CD) $(SRC)\WINNT\$@
178 $(DOCD) $(SRC)\crypto\hcrypto
179 $(CD) $(SRC)\crypto\hcrypto
204 ubik_headers: rxdebug
248 $(DOCD) $(SRC)\WINNT\client_osi
249 $(CD) $(SRC)\WINNT\client_osi
253 libacl_headers: osi_headers
255 $(DOCD) $(SRC)\libacl
260 cm_headers: libacl_headers
262 $(DOCD) $(SRC)\WINNT\afsd
263 $(CD) $(SRC)\WINNT\afsd
267 auth_headers: cm_headers
274 vlserver_headers: auth_headers
276 $(DOCD) $(SRC)\vlserver
277 $(CD) $(SRC)\vlserver
281 afsdobjs: vlserver_headers
283 $(DOCD) $(SRC)\WINNT\afsd
284 $(CD) $(SRC)\WINNT\afsd
380 $(DOCD) $(SRC)\rx\test
436 $(DOCD) $(SRC)\WINNT\$@
437 $(CD) $(SRC)\WINNT\$@
448 libafsauthent: bu_utils
455 tviced: libafsauthent
492 $(DOCD) $(SRC)\WINNT\$@
493 $(CD) $(SRC)\WINNT\$@
497 talocale_unicode: talocale
499 $(DOCD) $(SRC)\WINNT\$@
500 $(CD) $(SRC)\WINNT\$@
504 license: talocale_unicode
506 $(DOCD) $(SRC)\WINNT\$@
507 $(CD) $(SRC)\WINNT\$@
513 $(DOCD) $(SRC)\WINNT\$@
514 $(CD) $(SRC)\WINNT\$@
518 afsd: client_osi libafscp
520 $(DOCD) $(SRC)\WINNT\$@
521 $(CD) $(SRC)\WINNT\$@
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\$@
577 $(CD) $(SRC)\libadmin\$@
583 $(DOCD) $(SRC)\libadmin\test
584 $(CD) $(SRC)\libadmin\test
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\$@
618 $(DOCD) $(SRC)\WINNT\$@
619 $(CD) $(SRC)\WINNT\$@
623 client_talocale: afssvrcpa
625 $(DOCD) $(SRC)\WINNT\talocale
626 $(CD) $(SRC)\WINNT\talocale
630 client_cpa: client_talocale
632 $(DOCD) $(SRC)\WINNT\$@
633 $(CD) $(SRC)\WINNT\$@
637 client_config: client_cpa
639 $(DOCD) $(SRC)\WINNT\$@
640 $(CD) $(SRC)\WINNT\$@
644 client_exp: client_config
646 $(DOCD) $(SRC)\WINNT\$@
647 $(CD) $(SRC)\WINNT\$@
651 client_creds: client_exp
653 $(DOCD) $(SRC)\WINNT\$@
654 $(CD) $(SRC)\WINNT\$@
660 $(DOCD) $(SRC)\WINNT\$@
661 $(CD) $(SRC)\WINNT\$@
672 netidmgr_plugin: xstat
674 $(DOCD) $(SRC)\WINNT\$@
675 $(CD) $(SRC)\WINNT\$@
679 rpctestlib: fsint libafsrpc
686 libafscp: libafscp_headers util afs volser vlserver rx auth fsint afsdobjs
693 extra: netidmgr_plugin rpctestlib
694 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
696 $(DOCD) $(SRC)\WINNT\$@
697 $(CD) $(SRC)\WINNT\$@
701 @echo ***** Skipping $@ ***** Not found.
712 @echo Build Finished Successfully
715 # Clean target for obj tree
718 nmake /nologo /f ntmakefile version langsetup
720 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
722 nmake /nologo /f ntmakefile clean_final
725 # Language-only build target
727 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
732 -mkdir $(AFS_OBJDIR)\checked
733 -mkdir $(AFS_OBJDIR)\free
734 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
735 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
736 -mkdir $(DESTDIR)\checked
737 -mkdir $(DESTDIR)\free
738 -mkdir $(DESTDIR)\checked\bin
739 -mkdir $(DESTDIR)\free\bin
740 -@copy $(SRC)\config\NTLANG.BAT .
743 @echo ***** Making Loopback Adapter Utility DLL
744 $(DOCD) $(SRC)\WINNT\install\$@
745 $(CD) $(SRC)\WINNT\install\$@
751 $(DOCD) $(DOC)\man-pages
752 $(CD) $(DOC)\man-pages
756 documentation: config
758 $(DOCD) $(DOC)\xml\ReleaseNotesWindows
759 $(CD) $(DOC)\xml\ReleaseNotesWindows
764 $(DOCD) ..\AdminGuide
770 NSIS.i386: loopback man-pages documentation
771 @echo ***** Making NSIS Installer
772 $(DOCD) $(SRC)\WINNT\install\NSIS
773 $(CD) $(SRC)\WINNT\install\NSIS
778 @echo Skipping NSIS Installer on non-x86 platforms; not implemented
782 wix: loopback man-pages documentation
783 @echo ***** Making Wix MSI Installer
784 $(DOCD) $(SRC)\WINNT\install\$@
785 $(CD) $(SRC)\WINNT\install\$@
789 wix-lite: loopback man-pages documentation
790 @echo ***** Making Wix MSI Installer (Lite)
791 $(DOCD) $(SRC)\WINNT\install\wix
792 $(CD) $(SRC)\WINNT\install\wix
793 $(NTMAKE) LITECLIENT=1
796 media: install NSIS wix
798 install-nsis: install NSIS
800 install-wix: install wix
802 install-wix-lite: install wix-lite