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
422 $(DOCD) $(SRC)\WINNT\$@
423 $(CD) $(SRC)\WINNT\$@
434 libafsauthent: bu_utils
441 tviced: libafsauthent
478 $(DOCD) $(SRC)\WINNT\$@
479 $(CD) $(SRC)\WINNT\$@
485 $(DOCD) $(SRC)\WINNT\$@
486 $(CD) $(SRC)\WINNT\$@
492 $(DOCD) $(SRC)\WINNT\$@
493 $(CD) $(SRC)\WINNT\$@
499 $(DOCD) $(SRC)\WINNT\$@
500 $(CD) $(SRC)\WINNT\$@
513 $(DOCD) $(SRC)\libadmin\$@
514 $(CD) $(SRC)\libadmin\$@
520 $(DOCD) $(SRC)\libadmin\$@
521 $(CD) $(SRC)\libadmin\$@
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\test
563 $(CD) $(SRC)\libadmin\test
569 $(DOCD) $(SRC)\WINNT\$@
570 $(CD) $(SRC)\WINNT\$@
576 $(DOCD) $(SRC)\WINNT\$@
577 $(CD) $(SRC)\WINNT\$@
583 $(DOCD) $(SRC)\WINNT\$@
584 $(CD) $(SRC)\WINNT\$@
590 $(DOCD) $(SRC)\WINNT\$@
591 $(CD) $(SRC)\WINNT\$@
597 $(DOCD) $(SRC)\WINNT\$@
598 $(CD) $(SRC)\WINNT\$@
602 client_talocale: afssvrcpa
604 $(DOCD) $(SRC)\WINNT\talocale
605 $(CD) $(SRC)\WINNT\talocale
609 client_cpa: client_talocale
611 $(DOCD) $(SRC)\WINNT\$@
612 $(CD) $(SRC)\WINNT\$@
616 client_config: client_cpa
618 $(DOCD) $(SRC)\WINNT\$@
619 $(CD) $(SRC)\WINNT\$@
623 client_exp: client_config
625 $(DOCD) $(SRC)\WINNT\$@
626 $(CD) $(SRC)\WINNT\$@
630 client_creds: client_exp
632 $(DOCD) $(SRC)\WINNT\$@
633 $(CD) $(SRC)\WINNT\$@
639 $(DOCD) $(SRC)\WINNT\$@
640 $(CD) $(SRC)\WINNT\$@
651 netidmgr_plugin: xstat
653 $(DOCD) $(SRC)\WINNT\$@
654 $(CD) $(SRC)\WINNT\$@
658 rpctestlib: fsint libafsrpc
665 extra: netidmgr_plugin rpctestlib
666 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
668 $(DOCD) $(SRC)\WINNT\$@
669 $(CD) $(SRC)\WINNT\$@
673 @echo ***** Skipping $@ ***** Not found.
684 @echo Build Finished Successfully
687 # Clean target for obj tree
690 nmake /nologo /f ntmakefile version
692 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
694 nmake /nologo /f ntmakefile clean_version
697 # Language-only build target
699 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
704 -mkdir $(AFS_OBJDIR)\checked
705 -mkdir $(AFS_OBJDIR)\free
706 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
707 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
708 -mkdir $(DESTDIR)\checked
709 -mkdir $(DESTDIR)\free
710 -mkdir $(DESTDIR)\checked\bin
711 -mkdir $(DESTDIR)\free\bin
712 -@copy $(SRC)\config\NTLANG.BAT .
715 @echo ***** Making Loopback Adapter Utility DLL
716 $(DOCD) $(SRC)\WINNT\install\$@
717 $(CD) $(SRC)\WINNT\install\$@
723 $(DOCD) $(DOC)\man-pages
724 $(CD) $(DOC)\man-pages
728 documentation: config
730 $(DOCD) $(DOC)\xml\ReleaseNotesWindows
731 $(CD) $(DOC)\xml\ReleaseNotesWindows
736 $(DOCD) ..\AdminGuide
742 NSIS.i386: loopback man-pages documentation
743 @echo ***** Making NSIS Installer
744 $(DOCD) $(SRC)\WINNT\install\NSIS
745 $(CD) $(SRC)\WINNT\install\NSIS
750 @echo Skipping NSIS Installer on non-x86 platforms; not implemented
754 wix: loopback man-pages documentation
755 @echo ***** Making Wix MSI Installer
756 $(DOCD) $(SRC)\WINNT\install\$@
757 $(CD) $(SRC)\WINNT\install\$@
761 wix-lite: loopback man-pages documentation
762 @echo ***** Making Wix MSI Installer (Lite)
763 $(DOCD) $(SRC)\WINNT\install\wix
764 $(CD) $(SRC)\WINNT\install\wix
765 $(NTMAKE) LITECLIENT=1
768 media: install NSIS wix
770 install-nsis: install NSIS
772 install-wix: install wix
774 install-wix-lite: install wix-lite