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
63 util: procmgmt_headers afsreg_headers
93 $(DOCD) $(SRC)\WINNT\$@
100 $(DOCD) $(SRC)\WINNT\$@
101 $(CD) $(SRC)\WINNT\$@
121 ! IF (EXIST($(SRC)\des\NTMakefile))
127 $(DOCD) $(SRC)\des_stub
128 $(CD) $(SRC)\des_stub
163 $(DOCD) $(SRC)\WINNT\$@
164 $(CD) $(SRC)\WINNT\$@
191 $(DOCD) $(SRC)\WINNT\client_osi
192 $(CD) $(SRC)\WINNT\client_osi
196 libacl_headers: osi_headers
198 $(DOCD) $(SRC)\libacl
203 cm_headers: libacl_headers
205 $(DOCD) $(SRC)\WINNT\afsd
206 $(CD) $(SRC)\WINNT\afsd
210 auth_headers: cm_headers
217 vlserver_headers: auth_headers
219 $(DOCD) $(SRC)\vlserver
220 $(CD) $(SRC)\vlserver
224 afsdobjs: vlserver_headers
226 $(DOCD) $(SRC)\WINNT\afsd
227 $(CD) $(SRC)\WINNT\afsd
365 $(DOCD) $(SRC)\WINNT\$@
366 $(CD) $(SRC)\WINNT\$@
384 libafsauthent: libafsrpc
391 tviced: libafsauthent
414 $(DOCD) $(SRC)\libadmin\$@
415 $(CD) $(SRC)\libadmin\$@
421 $(DOCD) $(SRC)\libadmin\$@
422 $(CD) $(SRC)\libadmin\$@
428 $(DOCD) $(SRC)\libadmin\$@
429 $(CD) $(SRC)\libadmin\$@
435 $(DOCD) $(SRC)\libadmin\$@
436 $(CD) $(SRC)\libadmin\$@
442 $(DOCD) $(SRC)\libadmin\$@
443 $(CD) $(SRC)\libadmin\$@
449 $(DOCD) $(SRC)\libadmin\$@
450 $(CD) $(SRC)\libadmin\$@
456 $(DOCD) $(SRC)\libadmin\$@
457 $(CD) $(SRC)\libadmin\$@
463 $(DOCD) $(SRC)\libadmin\test
464 $(CD) $(SRC)\libadmin\test
470 $(DOCD) $(SRC)\WINNT\$@
471 $(CD) $(SRC)\WINNT\$@
477 $(DOCD) $(SRC)\WINNT\$@
478 $(CD) $(SRC)\WINNT\$@
484 $(DOCD) $(SRC)\WINNT\$@
485 $(CD) $(SRC)\WINNT\$@
491 $(DOCD) $(SRC)\WINNT\$@
492 $(CD) $(SRC)\WINNT\$@
498 $(DOCD) $(SRC)\WINNT\$@
499 $(CD) $(SRC)\WINNT\$@
505 $(DOCD) $(SRC)\WINNT\$@
506 $(CD) $(SRC)\WINNT\$@
512 $(DOCD) $(SRC)\WINNT\$@
513 $(CD) $(SRC)\WINNT\$@
519 $(DOCD) $(SRC)\WINNT\$@
520 $(CD) $(SRC)\WINNT\$@
526 $(DOCD) $(SRC)\WINNT\$@
527 $(CD) $(SRC)\WINNT\$@
531 client_talocale: afssvrcpa
533 $(DOCD) $(SRC)\WINNT\talocale
534 $(CD) $(SRC)\WINNT\talocale
538 client_cpa: client_talocale
540 $(DOCD) $(SRC)\WINNT\$@
541 $(CD) $(SRC)\WINNT\$@
545 client_config: client_cpa
547 $(DOCD) $(SRC)\WINNT\$@
548 $(CD) $(SRC)\WINNT\$@
552 client_exp: client_config
554 $(DOCD) $(SRC)\WINNT\$@
555 $(CD) $(SRC)\WINNT\$@
559 client_creds: client_exp
561 $(DOCD) $(SRC)\WINNT\$@
562 $(CD) $(SRC)\WINNT\$@
568 $(DOCD) $(SRC)\WINNT\$@
569 $(CD) $(SRC)\WINNT\$@
573 netidmgr_plugin: aklog
575 $(DOCD) $(SRC)\WINNT\$@
576 $(CD) $(SRC)\WINNT\$@
580 extra: netidmgr_plugin
581 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
583 $(DOCD) $(SRC)\WINNT\$@
584 $(CD) $(SRC)\WINNT\$@
588 echo ***** Skipping $@ ***** Not found.
597 echo Build Finished Successfully
601 # InstallShield dependencies
603 # Clean target for obj tree
605 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
606 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
608 nmake /nologo /f ntmakefile clean_version
611 # Language-only build target
613 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
618 -mkdir $(AFS_OBJDIR)\checked
619 -mkdir $(AFS_OBJDIR)\free
620 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
621 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
622 -mkdir $(DESTDIR)\checked
623 -mkdir $(DESTDIR)\free
624 -mkdir $(DESTDIR)\checked\bin
625 -mkdir $(DESTDIR)\free\bin
626 -@copy $(SRC)\config\NTLANG.BAT .
629 echo ***** Making Loopback Adapter Utility DLL
630 $(DOCD) $(SRC)\WINNT\install\$@
631 $(CD) $(SRC)\WINNT\install\$@
636 echo ***** Making NSIS Installer
637 $(DOCD) $(SRC)\WINNT\install\$@
638 $(CD) $(SRC)\WINNT\install\$@
643 echo ***** Making Wix MSI Installer
644 $(DOCD) $(SRC)\WINNT\install\$@
645 $(CD) $(SRC)\WINNT\install\$@
650 echo ***** afs_setup_utils
651 $(DOCD) $(SRC)\WINNT\afs_setup_utils
652 $(CD) $(SRC)\WINNT\afs_setup_utils
656 $(DOCD) $(SRC)\WINNT\install\$@
657 $(CD) $(SRC)\WINNT\install\$@
661 media: install InstallShield5 NSIS wix
663 install-nsis: install NSIS
665 install-wix: install wix
667 install-is5: install InstallShield5