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
23 #If AFS_OBJDIR is not defined then use obj as relative obj folder
25 AFS_OBJDIR=$(AFSROOT)\obj\$(SYS_NAME)
29 DESTDIR=$(AFSROOT)\dest\$(SYS_NAME)
33 WIXCYGOPT=-dCygwinArchives
41 NTMAKE = nmake /nologo /f ntmakefile install
42 NTMAKELANG = nmake /nologo /f ntmakefile en_US
43 NTMAKE_HEADERS = nmake /nologo /f ntmakefile install_headers
44 NTMAKE_OBJS = nmake /nologo /f ntmakefile install_objs
46 #debug statement support jumping to last known error
47 DOCD=$(SRC)\DOLASTCMP.BAT
56 procmgmt_headers: config
58 $(DOCD) $(SRC)\procmgmt
65 $(DOCD) $(SRC)\WINNT\afsreg
66 $(CD) $(SRC)\WINNT\afsreg
93 $(DOCD) $(SRC)\WINNT\$@
98 util: procmgmt_headers afsreg_headers lwp_headers rx_headers pthread
128 $(DOCD) $(SRC)\WINNT\$@
129 $(CD) $(SRC)\WINNT\$@
135 $(DOCD) $(SRC)\WINNT\$@
136 $(CD) $(SRC)\WINNT\$@
156 ! IF (EXIST($(SRC)\des\NTMakefile))
162 $(DOCD) $(SRC)\des_stub
163 $(CD) $(SRC)\des_stub
182 ubik_headers: rxdebug
226 $(DOCD) $(SRC)\WINNT\client_osi
227 $(CD) $(SRC)\WINNT\client_osi
231 libacl_headers: osi_headers
233 $(DOCD) $(SRC)\libacl
238 cm_headers: libacl_headers
240 $(DOCD) $(SRC)\WINNT\afsd
241 $(CD) $(SRC)\WINNT\afsd
245 auth_headers: cm_headers
252 vlserver_headers: auth_headers
254 $(DOCD) $(SRC)\vlserver
255 $(CD) $(SRC)\vlserver
259 afsdobjs: vlserver_headers
261 $(DOCD) $(SRC)\WINNT\afsd
262 $(CD) $(SRC)\WINNT\afsd
400 $(DOCD) $(SRC)\WINNT\$@
401 $(CD) $(SRC)\WINNT\$@
419 libafsauthent: libafsrpc
426 tviced: libafsauthent
449 $(DOCD) $(SRC)\WINNT\$@
450 $(CD) $(SRC)\WINNT\$@
456 $(DOCD) $(SRC)\WINNT\$@
457 $(CD) $(SRC)\WINNT\$@
463 $(DOCD) $(SRC)\WINNT\$@
464 $(CD) $(SRC)\WINNT\$@
470 $(DOCD) $(SRC)\WINNT\$@
471 $(CD) $(SRC)\WINNT\$@
484 $(DOCD) $(SRC)\libadmin\$@
485 $(CD) $(SRC)\libadmin\$@
491 $(DOCD) $(SRC)\libadmin\$@
492 $(CD) $(SRC)\libadmin\$@
498 $(DOCD) $(SRC)\libadmin\$@
499 $(CD) $(SRC)\libadmin\$@
505 $(DOCD) $(SRC)\libadmin\$@
506 $(CD) $(SRC)\libadmin\$@
512 $(DOCD) $(SRC)\libadmin\$@
513 $(CD) $(SRC)\libadmin\$@
519 $(DOCD) $(SRC)\libadmin\$@
520 $(CD) $(SRC)\libadmin\$@
526 $(DOCD) $(SRC)\libadmin\$@
527 $(CD) $(SRC)\libadmin\$@
533 $(DOCD) $(SRC)\libadmin\test
534 $(CD) $(SRC)\libadmin\test
540 $(DOCD) $(SRC)\WINNT\$@
541 $(CD) $(SRC)\WINNT\$@
547 $(DOCD) $(SRC)\WINNT\$@
548 $(CD) $(SRC)\WINNT\$@
554 $(DOCD) $(SRC)\WINNT\$@
555 $(CD) $(SRC)\WINNT\$@
561 $(DOCD) $(SRC)\WINNT\$@
562 $(CD) $(SRC)\WINNT\$@
568 $(DOCD) $(SRC)\WINNT\$@
569 $(CD) $(SRC)\WINNT\$@
573 client_talocale: afssvrcpa
575 $(DOCD) $(SRC)\WINNT\talocale
576 $(CD) $(SRC)\WINNT\talocale
580 client_cpa: client_talocale
582 $(DOCD) $(SRC)\WINNT\$@
583 $(CD) $(SRC)\WINNT\$@
587 client_config: client_cpa
589 $(DOCD) $(SRC)\WINNT\$@
590 $(CD) $(SRC)\WINNT\$@
594 client_exp: client_config
596 $(DOCD) $(SRC)\WINNT\$@
597 $(CD) $(SRC)\WINNT\$@
601 client_creds: client_exp
603 $(DOCD) $(SRC)\WINNT\$@
604 $(CD) $(SRC)\WINNT\$@
610 $(DOCD) $(SRC)\WINNT\$@
611 $(CD) $(SRC)\WINNT\$@
622 netidmgr_plugin: xstat
624 $(DOCD) $(SRC)\WINNT\$@
625 $(CD) $(SRC)\WINNT\$@
629 extra: netidmgr_plugin
630 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
632 $(DOCD) $(SRC)\WINNT\$@
633 $(CD) $(SRC)\WINNT\$@
637 @echo ***** Skipping $@ ***** Not found.
648 @echo Build Finished Successfully
651 # Clean target for obj tree
653 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
654 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
656 nmake /nologo /f ntmakefile clean_version
659 # Language-only build target
661 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
666 -mkdir $(AFS_OBJDIR)\checked
667 -mkdir $(AFS_OBJDIR)\free
668 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
669 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
670 -mkdir $(DESTDIR)\checked
671 -mkdir $(DESTDIR)\free
672 -mkdir $(DESTDIR)\checked\bin
673 -mkdir $(DESTDIR)\free\bin
674 -@copy $(SRC)\config\NTLANG.BAT .
677 @echo ***** Making Loopback Adapter Utility DLL
678 $(DOCD) $(SRC)\WINNT\install\$@
679 $(CD) $(SRC)\WINNT\install\$@
685 $(DOCD) $(DOC)\man-pages
686 $(CD) $(DOC)\man-pages
690 documentation: config
692 $(DOCD) $(DOC)\xml\ReleaseNotesWindows
693 $(CD) $(DOC)\xml\ReleaseNotesWindows
698 $(DOCD) ..\AdminGuide
704 NSIS.i386: loopback man-pages documentation
705 @echo ***** Making NSIS Installer
706 $(DOCD) $(SRC)\WINNT\install\NSIS
707 $(CD) $(SRC)\WINNT\install\NSIS
712 @echo Skipping NSIS Installer on non-x86 platforms; not implemented
716 wix: loopback man-pages documentation
717 @echo ***** Making Wix MSI Installer
718 $(DOCD) $(SRC)\WINNT\install\$@
719 $(CD) $(SRC)\WINNT\install\$@
723 media: install NSIS wix
725 install-nsis: install NSIS
727 install-wix: install wix