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\$@
147 ubik_headers: rxdebug
170 $(DOCD) $(SRC)\WINNT\$@
171 $(CD) $(SRC)\WINNT\$@
198 $(DOCD) $(SRC)\WINNT\client_osi
199 $(CD) $(SRC)\WINNT\client_osi
203 libacl_headers: osi_headers
205 $(DOCD) $(SRC)\libacl
210 cm_headers: libacl_headers
212 $(DOCD) $(SRC)\WINNT\afsd
213 $(CD) $(SRC)\WINNT\afsd
217 auth_headers: cm_headers
224 vlserver_headers: auth_headers
226 $(DOCD) $(SRC)\vlserver
227 $(CD) $(SRC)\vlserver
231 afsdobjs: vlserver_headers
233 $(DOCD) $(SRC)\WINNT\afsd
234 $(CD) $(SRC)\WINNT\afsd
372 $(DOCD) $(SRC)\WINNT\$@
373 $(CD) $(SRC)\WINNT\$@
391 libafsauthent: libafsrpc
398 tviced: libafsauthent
414 $(DOCD) $(SRC)\WINNT\$@
415 $(CD) $(SRC)\WINNT\$@
421 $(DOCD) $(SRC)\WINNT\$@
422 $(CD) $(SRC)\WINNT\$@
428 $(DOCD) $(SRC)\WINNT\$@
429 $(CD) $(SRC)\WINNT\$@
435 $(DOCD) $(SRC)\WINNT\$@
436 $(CD) $(SRC)\WINNT\$@
449 $(DOCD) $(SRC)\libadmin\$@
450 $(CD) $(SRC)\libadmin\$@
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\test
499 $(CD) $(SRC)\libadmin\test
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\$@
533 $(DOCD) $(SRC)\WINNT\$@
534 $(CD) $(SRC)\WINNT\$@
538 client_talocale: afssvrcpa
540 $(DOCD) $(SRC)\WINNT\talocale
541 $(CD) $(SRC)\WINNT\talocale
545 client_cpa: client_talocale
547 $(DOCD) $(SRC)\WINNT\$@
548 $(CD) $(SRC)\WINNT\$@
552 client_config: client_cpa
554 $(DOCD) $(SRC)\WINNT\$@
555 $(CD) $(SRC)\WINNT\$@
559 client_exp: client_config
561 $(DOCD) $(SRC)\WINNT\$@
562 $(CD) $(SRC)\WINNT\$@
566 client_creds: client_exp
568 $(DOCD) $(SRC)\WINNT\$@
569 $(CD) $(SRC)\WINNT\$@
575 $(DOCD) $(SRC)\WINNT\$@
576 $(CD) $(SRC)\WINNT\$@
587 netidmgr_plugin: xstat
589 $(DOCD) $(SRC)\WINNT\$@
590 $(CD) $(SRC)\WINNT\$@
594 extra: netidmgr_plugin
595 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
597 $(DOCD) $(SRC)\WINNT\$@
598 $(CD) $(SRC)\WINNT\$@
602 echo ***** Skipping $@ ***** Not found.
613 echo Build Finished Successfully
616 # Clean target for obj tree
618 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
619 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
621 nmake /nologo /f ntmakefile clean_version
624 # Language-only build target
626 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
631 -mkdir $(AFS_OBJDIR)\checked
632 -mkdir $(AFS_OBJDIR)\free
633 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
634 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
635 -mkdir $(DESTDIR)\checked
636 -mkdir $(DESTDIR)\free
637 -mkdir $(DESTDIR)\checked\bin
638 -mkdir $(DESTDIR)\free\bin
639 -@copy $(SRC)\config\NTLANG.BAT .
642 echo ***** Making Loopback Adapter Utility DLL
643 $(DOCD) $(SRC)\WINNT\install\$@
644 $(CD) $(SRC)\WINNT\install\$@
649 echo ***** Making NSIS Installer
650 $(DOCD) $(SRC)\WINNT\install\$@
651 $(CD) $(SRC)\WINNT\install\$@
656 echo ***** Making Wix MSI Installer
657 $(DOCD) $(SRC)\WINNT\install\$@
658 $(CD) $(SRC)\WINNT\install\$@
662 media: install NSIS wix
664 install-nsis: install NSIS
666 install-wix: install wix