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\$@
156 $(DOCD) $(SRC)\WINNT\$@
157 $(CD) $(SRC)\WINNT\$@
184 $(DOCD) $(SRC)\WINNT\client_osi
185 $(CD) $(SRC)\WINNT\client_osi
189 libacl_headers: osi_headers
191 $(DOCD) $(SRC)\libacl
196 cm_headers: libacl_headers
198 $(DOCD) $(SRC)\WINNT\afsd
199 $(CD) $(SRC)\WINNT\afsd
203 auth_headers: cm_headers
210 vlserver_headers: auth_headers
212 $(DOCD) $(SRC)\vlserver
213 $(CD) $(SRC)\vlserver
217 afsdobjs: vlserver_headers
219 $(DOCD) $(SRC)\WINNT\afsd
220 $(CD) $(SRC)\WINNT\afsd
358 $(DOCD) $(SRC)\WINNT\$@
359 $(CD) $(SRC)\WINNT\$@
377 libafsauthent: libafsrpc
384 tviced: libafsauthent
407 $(DOCD) $(SRC)\libadmin\$@
408 $(CD) $(SRC)\libadmin\$@
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\test
457 $(CD) $(SRC)\libadmin\test
463 $(DOCD) $(SRC)\WINNT\$@
464 $(CD) $(SRC)\WINNT\$@
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\$@
524 client_talocale: afssvrcpa
526 $(DOCD) $(SRC)\WINNT\talocale
527 $(CD) $(SRC)\WINNT\talocale
531 client_cpa: client_talocale
533 $(DOCD) $(SRC)\WINNT\$@
534 $(CD) $(SRC)\WINNT\$@
538 client_config: client_cpa
540 $(DOCD) $(SRC)\WINNT\$@
541 $(CD) $(SRC)\WINNT\$@
545 client_exp: client_config
547 $(DOCD) $(SRC)\WINNT\$@
548 $(CD) $(SRC)\WINNT\$@
552 client_creds: client_exp
554 $(DOCD) $(SRC)\WINNT\$@
555 $(CD) $(SRC)\WINNT\$@
561 $(DOCD) $(SRC)\WINNT\$@
562 $(CD) $(SRC)\WINNT\$@
566 netidmgr_plugin: aklog
568 $(DOCD) $(SRC)\WINNT\$@
569 $(CD) $(SRC)\WINNT\$@
573 extra: netidmgr_plugin
574 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
576 $(DOCD) $(SRC)\WINNT\$@
577 $(CD) $(SRC)\WINNT\$@
581 echo ***** Skipping $@ ***** Not found.
590 echo Build Finished Successfully
594 # InstallShield dependencies
596 # Clean target for obj tree
598 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
599 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
601 nmake /nologo /f ntmakefile clean_version
604 # Language-only build target
606 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
611 -mkdir $(AFS_OBJDIR)\checked
612 -mkdir $(AFS_OBJDIR)\free
613 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
614 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
615 -mkdir $(DESTDIR)\checked
616 -mkdir $(DESTDIR)\free
617 -mkdir $(DESTDIR)\checked\bin
618 -mkdir $(DESTDIR)\free\bin
619 -@copy $(SRC)\config\NTLANG.BAT .
622 echo ***** Making Loopback Adapter Utility DLL
623 $(DOCD) $(SRC)\WINNT\install\$@
624 $(CD) $(SRC)\WINNT\install\$@
629 echo ***** Making NSIS Installer
630 $(DOCD) $(SRC)\WINNT\install\$@
631 $(CD) $(SRC)\WINNT\install\$@
636 echo ***** Making Wix MSI Installer
637 $(DOCD) $(SRC)\WINNT\install\$@
638 $(CD) $(SRC)\WINNT\install\$@
643 echo ***** afs_setup_utils
644 $(DOCD) $(SRC)\WINNT\afs_setup_utils
645 $(CD) $(SRC)\WINNT\afs_setup_utils
649 $(DOCD) $(SRC)\WINNT\install\$@
650 $(CD) $(SRC)\WINNT\install\$@
654 media: install InstallShield5 NSIS wix
656 install-nsis: install NSIS
658 install-wix: install wix
660 install-is5: install InstallShield5