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 #If AFS_OBJDIR is not defined then use obj as relative obj folder
24 AFS_OBJDIR=$(AFSROOT)\obj\$(SYS_NAME)
28 DESTDIR=$(AFSROOT)\dest\$(SYS_NAME)
34 NTMAKE = nmake /nologo /f ntmakefile install
35 NTMAKELANG = nmake /nologo /f ntmakefile en_US
36 NTMAKE_HEADERS = nmake /nologo /f ntmakefile install_headers
37 NTMAKE_OBJS = nmake /nologo /f ntmakefile install_objs
39 #debug statement support jumping to last know error
40 DOCD=$(SRC)\DOLASTCMP.BAT
49 procmgmt_headers:config
51 $(DOCD) $(SRC)\procmgmt
58 $(DOCD) $(SRC)\WINNT\afsreg
59 $(CD) $(SRC)\WINNT\afsreg
70 util: procmgmt_headers afsreg_headers lwp_headers
100 $(DOCD) $(SRC)\WINNT\$@
101 $(CD) $(SRC)\WINNT\$@
107 $(DOCD) $(SRC)\WINNT\$@
108 $(CD) $(SRC)\WINNT\$@
128 ! IF (EXIST($(SRC)\des\NTMakefile))
134 $(DOCD) $(SRC)\des_stub
135 $(CD) $(SRC)\des_stub
154 ubik_headers: rxdebug
177 $(DOCD) $(SRC)\WINNT\$@
178 $(CD) $(SRC)\WINNT\$@
205 $(DOCD) $(SRC)\WINNT\client_osi
206 $(CD) $(SRC)\WINNT\client_osi
210 libacl_headers: osi_headers
212 $(DOCD) $(SRC)\libacl
217 cm_headers: libacl_headers
219 $(DOCD) $(SRC)\WINNT\afsd
220 $(CD) $(SRC)\WINNT\afsd
224 auth_headers: cm_headers
231 vlserver_headers: auth_headers
233 $(DOCD) $(SRC)\vlserver
234 $(CD) $(SRC)\vlserver
238 afsdobjs: vlserver_headers
240 $(DOCD) $(SRC)\WINNT\afsd
241 $(CD) $(SRC)\WINNT\afsd
379 $(DOCD) $(SRC)\WINNT\$@
380 $(CD) $(SRC)\WINNT\$@
398 libafsauthent: libafsrpc
405 tviced: libafsauthent
421 $(DOCD) $(SRC)\WINNT\$@
422 $(CD) $(SRC)\WINNT\$@
428 $(DOCD) $(SRC)\WINNT\$@
429 $(CD) $(SRC)\WINNT\$@
435 $(DOCD) $(SRC)\WINNT\$@
436 $(CD) $(SRC)\WINNT\$@
442 $(DOCD) $(SRC)\WINNT\$@
443 $(CD) $(SRC)\WINNT\$@
456 $(DOCD) $(SRC)\libadmin\$@
457 $(CD) $(SRC)\libadmin\$@
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\test
506 $(CD) $(SRC)\libadmin\test
512 $(DOCD) $(SRC)\WINNT\$@
513 $(CD) $(SRC)\WINNT\$@
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\$@
545 client_talocale: afssvrcpa
547 $(DOCD) $(SRC)\WINNT\talocale
548 $(CD) $(SRC)\WINNT\talocale
552 client_cpa: client_talocale
554 $(DOCD) $(SRC)\WINNT\$@
555 $(CD) $(SRC)\WINNT\$@
559 client_config: client_cpa
561 $(DOCD) $(SRC)\WINNT\$@
562 $(CD) $(SRC)\WINNT\$@
566 client_exp: client_config
568 $(DOCD) $(SRC)\WINNT\$@
569 $(CD) $(SRC)\WINNT\$@
573 client_creds: client_exp
575 $(DOCD) $(SRC)\WINNT\$@
576 $(CD) $(SRC)\WINNT\$@
582 $(DOCD) $(SRC)\WINNT\$@
583 $(CD) $(SRC)\WINNT\$@
594 netidmgr_plugin: xstat
596 $(DOCD) $(SRC)\WINNT\$@
597 $(CD) $(SRC)\WINNT\$@
601 extra: netidmgr_plugin
602 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
604 $(DOCD) $(SRC)\WINNT\$@
605 $(CD) $(SRC)\WINNT\$@
609 echo ***** Skipping $@ ***** Not found.
620 echo Build Finished Successfully
623 # Clean target for obj tree
625 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
626 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
628 nmake /nologo /f ntmakefile clean_version
631 # Language-only build target
633 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
638 -mkdir $(AFS_OBJDIR)\checked
639 -mkdir $(AFS_OBJDIR)\free
640 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
641 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
642 -mkdir $(DESTDIR)\checked
643 -mkdir $(DESTDIR)\free
644 -mkdir $(DESTDIR)\checked\bin
645 -mkdir $(DESTDIR)\free\bin
646 -@copy $(SRC)\config\NTLANG.BAT .
649 echo ***** Making Loopback Adapter Utility DLL
650 $(DOCD) $(SRC)\WINNT\install\$@
651 $(CD) $(SRC)\WINNT\install\$@
656 echo ***** Making NSIS Installer
657 $(DOCD) $(SRC)\WINNT\install\$@
658 $(CD) $(SRC)\WINNT\install\$@
663 echo ***** Making Wix MSI Installer
664 $(DOCD) $(SRC)\WINNT\install\$@
665 $(CD) $(SRC)\WINNT\install\$@
669 media: install NSIS wix
671 install-nsis: install NSIS
673 install-wix: install wix