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
77 util: procmgmt_headers afsreg_headers lwp_headers
107 $(DOCD) $(SRC)\WINNT\$@
108 $(CD) $(SRC)\WINNT\$@
114 $(DOCD) $(SRC)\WINNT\$@
115 $(CD) $(SRC)\WINNT\$@
135 ! IF (EXIST($(SRC)\des\NTMakefile))
141 $(DOCD) $(SRC)\des_stub
142 $(CD) $(SRC)\des_stub
161 ubik_headers: rxdebug
184 $(DOCD) $(SRC)\WINNT\$@
185 $(CD) $(SRC)\WINNT\$@
212 $(DOCD) $(SRC)\WINNT\client_osi
213 $(CD) $(SRC)\WINNT\client_osi
217 libacl_headers: osi_headers
219 $(DOCD) $(SRC)\libacl
224 cm_headers: libacl_headers
226 $(DOCD) $(SRC)\WINNT\afsd
227 $(CD) $(SRC)\WINNT\afsd
231 auth_headers: cm_headers
238 vlserver_headers: auth_headers
240 $(DOCD) $(SRC)\vlserver
241 $(CD) $(SRC)\vlserver
245 afsdobjs: vlserver_headers
247 $(DOCD) $(SRC)\WINNT\afsd
248 $(CD) $(SRC)\WINNT\afsd
386 $(DOCD) $(SRC)\WINNT\$@
387 $(CD) $(SRC)\WINNT\$@
405 libafsauthent: libafsrpc
412 tviced: libafsauthent
428 $(DOCD) $(SRC)\WINNT\$@
429 $(CD) $(SRC)\WINNT\$@
435 $(DOCD) $(SRC)\WINNT\$@
436 $(CD) $(SRC)\WINNT\$@
442 $(DOCD) $(SRC)\WINNT\$@
443 $(CD) $(SRC)\WINNT\$@
449 $(DOCD) $(SRC)\WINNT\$@
450 $(CD) $(SRC)\WINNT\$@
463 $(DOCD) $(SRC)\libadmin\$@
464 $(CD) $(SRC)\libadmin\$@
470 $(DOCD) $(SRC)\libadmin\$@
471 $(CD) $(SRC)\libadmin\$@
477 $(DOCD) $(SRC)\libadmin\$@
478 $(CD) $(SRC)\libadmin\$@
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\test
513 $(CD) $(SRC)\libadmin\test
519 $(DOCD) $(SRC)\WINNT\$@
520 $(CD) $(SRC)\WINNT\$@
526 $(DOCD) $(SRC)\WINNT\$@
527 $(CD) $(SRC)\WINNT\$@
533 $(DOCD) $(SRC)\WINNT\$@
534 $(CD) $(SRC)\WINNT\$@
540 $(DOCD) $(SRC)\WINNT\$@
541 $(CD) $(SRC)\WINNT\$@
547 $(DOCD) $(SRC)\WINNT\$@
548 $(CD) $(SRC)\WINNT\$@
552 client_talocale: afssvrcpa
554 $(DOCD) $(SRC)\WINNT\talocale
555 $(CD) $(SRC)\WINNT\talocale
559 client_cpa: client_talocale
561 $(DOCD) $(SRC)\WINNT\$@
562 $(CD) $(SRC)\WINNT\$@
566 client_config: client_cpa
568 $(DOCD) $(SRC)\WINNT\$@
569 $(CD) $(SRC)\WINNT\$@
573 client_exp: client_config
575 $(DOCD) $(SRC)\WINNT\$@
576 $(CD) $(SRC)\WINNT\$@
580 client_creds: client_exp
582 $(DOCD) $(SRC)\WINNT\$@
583 $(CD) $(SRC)\WINNT\$@
589 $(DOCD) $(SRC)\WINNT\$@
590 $(CD) $(SRC)\WINNT\$@
601 netidmgr_plugin: xstat
603 $(DOCD) $(SRC)\WINNT\$@
604 $(CD) $(SRC)\WINNT\$@
608 extra: netidmgr_plugin
609 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
611 $(DOCD) $(SRC)\WINNT\$@
612 $(CD) $(SRC)\WINNT\$@
616 @echo ***** Skipping $@ ***** Not found.
627 @echo Build Finished Successfully
630 # Clean target for obj tree
632 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
633 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
635 nmake /nologo /f ntmakefile clean_version
638 # Language-only build target
640 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
645 -mkdir $(AFS_OBJDIR)\checked
646 -mkdir $(AFS_OBJDIR)\free
647 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
648 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
649 -mkdir $(DESTDIR)\checked
650 -mkdir $(DESTDIR)\free
651 -mkdir $(DESTDIR)\checked\bin
652 -mkdir $(DESTDIR)\free\bin
653 -@copy $(SRC)\config\NTLANG.BAT .
656 @echo ***** Making Loopback Adapter Utility DLL
657 $(DOCD) $(SRC)\WINNT\install\$@
658 $(CD) $(SRC)\WINNT\install\$@
664 $(DOCD) $(DOC)\man-pages
665 $(CD) $(DOC)\man-pages
671 $(DOCD) $(DOC)\xml\ReleaseNotesWindows
672 $(CD) $(DOC)\xml\ReleaseNotesWindows
677 $(DOCD) ..\AdminGuide
683 NSIS.i386: loopback man-pages documentation
684 @echo ***** Making NSIS Installer
685 $(DOCD) $(SRC)\WINNT\install\$@
686 $(CD) $(SRC)\WINNT\install\$@
691 @echo Skipping NSIS Installer on non-x86 platforms; not implemented
695 wix: loopback man-pages documentation
696 @echo ***** Making Wix MSI Installer
697 $(DOCD) $(SRC)\WINNT\install\$@
698 $(CD) $(SRC)\WINNT\install\$@
702 media: install NSIS wix
704 install-nsis: install NSIS
706 install-wix: install wix