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 pthread
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\$@
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 extra: netidmgr_plugin rpctestlib
680 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
682 $(DOCD) $(SRC)\WINNT\$@
683 $(CD) $(SRC)\WINNT\$@
687 @echo ***** Skipping $@ ***** Not found.
698 @echo Build Finished Successfully
701 # Clean target for obj tree
704 nmake /nologo /f ntmakefile version langsetup
706 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
708 nmake /nologo /f ntmakefile clean_final
711 # Language-only build target
713 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
718 -mkdir $(AFS_OBJDIR)\checked
719 -mkdir $(AFS_OBJDIR)\free
720 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
721 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
722 -mkdir $(DESTDIR)\checked
723 -mkdir $(DESTDIR)\free
724 -mkdir $(DESTDIR)\checked\bin
725 -mkdir $(DESTDIR)\free\bin
726 -@copy $(SRC)\config\NTLANG.BAT .
729 @echo ***** Making Loopback Adapter Utility DLL
730 $(DOCD) $(SRC)\WINNT\install\$@
731 $(CD) $(SRC)\WINNT\install\$@
737 $(DOCD) $(DOC)\man-pages
738 $(CD) $(DOC)\man-pages
742 documentation: config
744 $(DOCD) $(DOC)\xml\ReleaseNotesWindows
745 $(CD) $(DOC)\xml\ReleaseNotesWindows
750 $(DOCD) ..\AdminGuide
756 NSIS.i386: loopback man-pages documentation
757 @echo ***** Making NSIS Installer
758 $(DOCD) $(SRC)\WINNT\install\NSIS
759 $(CD) $(SRC)\WINNT\install\NSIS
764 @echo Skipping NSIS Installer on non-x86 platforms; not implemented
768 wix: loopback man-pages documentation
769 @echo ***** Making Wix MSI Installer
770 $(DOCD) $(SRC)\WINNT\install\$@
771 $(CD) $(SRC)\WINNT\install\$@
775 wix-lite: loopback man-pages documentation
776 @echo ***** Making Wix MSI Installer (Lite)
777 $(DOCD) $(SRC)\WINNT\install\wix
778 $(CD) $(SRC)\WINNT\install\wix
779 $(NTMAKE) LITECLIENT=1
782 media: install NSIS wix
784 install-nsis: install NSIS
786 install-wix: install wix
788 install-wix-lite: install wix-lite