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)
35 NTMAKE = nmake /nologo /f ntmakefile install
36 NTMAKELANG = nmake /nologo /f ntmakefile en_US
37 NTMAKE_HEADERS = nmake /nologo /f ntmakefile install_headers
38 NTMAKE_OBJS = nmake /nologo /f ntmakefile install_objs
40 #debug statement support jumping to last know error
41 DOCD=$(SRC)\DOLASTCMP.BAT
50 procmgmt_headers: config
52 $(DOCD) $(SRC)\procmgmt
59 $(DOCD) $(SRC)\WINNT\afsreg
60 $(CD) $(SRC)\WINNT\afsreg
71 util: procmgmt_headers afsreg_headers lwp_headers
101 $(DOCD) $(SRC)\WINNT\$@
102 $(CD) $(SRC)\WINNT\$@
108 $(DOCD) $(SRC)\WINNT\$@
109 $(CD) $(SRC)\WINNT\$@
148 ubik_headers: rxdebug
171 $(DOCD) $(SRC)\WINNT\$@
172 $(CD) $(SRC)\WINNT\$@
199 $(DOCD) $(SRC)\WINNT\client_osi
200 $(CD) $(SRC)\WINNT\client_osi
204 libacl_headers: osi_headers
206 $(DOCD) $(SRC)\libacl
211 cm_headers: libacl_headers
213 $(DOCD) $(SRC)\WINNT\afsd
214 $(CD) $(SRC)\WINNT\afsd
218 auth_headers: cm_headers
225 vlserver_headers: auth_headers
227 $(DOCD) $(SRC)\vlserver
228 $(CD) $(SRC)\vlserver
232 afsdobjs: vlserver_headers
234 $(DOCD) $(SRC)\WINNT\afsd
235 $(CD) $(SRC)\WINNT\afsd
373 $(DOCD) $(SRC)\WINNT\$@
374 $(CD) $(SRC)\WINNT\$@
392 libafsauthent: libafsrpc
399 tviced: libafsauthent
415 $(DOCD) $(SRC)\WINNT\$@
416 $(CD) $(SRC)\WINNT\$@
422 $(DOCD) $(SRC)\WINNT\$@
423 $(CD) $(SRC)\WINNT\$@
429 $(DOCD) $(SRC)\WINNT\$@
430 $(CD) $(SRC)\WINNT\$@
436 $(DOCD) $(SRC)\WINNT\$@
437 $(CD) $(SRC)\WINNT\$@
450 $(DOCD) $(SRC)\libadmin\$@
451 $(CD) $(SRC)\libadmin\$@
457 $(DOCD) $(SRC)\libadmin\$@
458 $(CD) $(SRC)\libadmin\$@
464 $(DOCD) $(SRC)\libadmin\$@
465 $(CD) $(SRC)\libadmin\$@
471 $(DOCD) $(SRC)\libadmin\$@
472 $(CD) $(SRC)\libadmin\$@
478 $(DOCD) $(SRC)\libadmin\$@
479 $(CD) $(SRC)\libadmin\$@
485 $(DOCD) $(SRC)\libadmin\$@
486 $(CD) $(SRC)\libadmin\$@
492 $(DOCD) $(SRC)\libadmin\$@
493 $(CD) $(SRC)\libadmin\$@
499 $(DOCD) $(SRC)\libadmin\test
500 $(CD) $(SRC)\libadmin\test
506 $(DOCD) $(SRC)\WINNT\$@
507 $(CD) $(SRC)\WINNT\$@
513 $(DOCD) $(SRC)\WINNT\$@
514 $(CD) $(SRC)\WINNT\$@
520 $(DOCD) $(SRC)\WINNT\$@
521 $(CD) $(SRC)\WINNT\$@
527 $(DOCD) $(SRC)\WINNT\$@
528 $(CD) $(SRC)\WINNT\$@
534 $(DOCD) $(SRC)\WINNT\$@
535 $(CD) $(SRC)\WINNT\$@
539 client_talocale: afssvrcpa
541 $(DOCD) $(SRC)\WINNT\talocale
542 $(CD) $(SRC)\WINNT\talocale
546 client_cpa: client_talocale
548 $(DOCD) $(SRC)\WINNT\$@
549 $(CD) $(SRC)\WINNT\$@
553 client_config: client_cpa
555 $(DOCD) $(SRC)\WINNT\$@
556 $(CD) $(SRC)\WINNT\$@
560 client_exp: client_config
562 $(DOCD) $(SRC)\WINNT\$@
563 $(CD) $(SRC)\WINNT\$@
567 client_creds: client_exp
569 $(DOCD) $(SRC)\WINNT\$@
570 $(CD) $(SRC)\WINNT\$@
576 $(DOCD) $(SRC)\WINNT\$@
577 $(CD) $(SRC)\WINNT\$@
588 netidmgr_plugin: xstat
590 $(DOCD) $(SRC)\WINNT\$@
591 $(CD) $(SRC)\WINNT\$@
595 extra: netidmgr_plugin
596 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
598 $(DOCD) $(SRC)\WINNT\$@
599 $(CD) $(SRC)\WINNT\$@
603 echo ***** Skipping $@ ***** Not found.
614 echo Build Finished Successfully
617 # Clean target for obj tree
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" install
620 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
622 nmake /nologo /f ntmakefile clean_version
625 # Language-only build target
627 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
632 -mkdir $(AFS_OBJDIR)\checked
633 -mkdir $(AFS_OBJDIR)\free
634 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
635 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
636 -mkdir $(DESTDIR)\checked
637 -mkdir $(DESTDIR)\free
638 -mkdir $(DESTDIR)\checked\bin
639 -mkdir $(DESTDIR)\free\bin
640 -@copy $(SRC)\config\NTLANG.BAT .
644 $(DOCD) $(DOC)\man-pages
645 $(CD) $(DOC)\man-pages
650 echo ***** Making Loopback Adapter Utility DLL
651 $(DOCD) $(SRC)\WINNT\install\$@
652 $(CD) $(SRC)\WINNT\install\$@
658 $(DOCD) $(DOC)\man-pages
659 $(CD) $(DOC)\man-pages
663 NSIS: loopback man-pages
664 echo ***** Making NSIS Installer
665 $(DOCD) $(SRC)\WINNT\install\$@
666 $(CD) $(SRC)\WINNT\install\$@
670 wix: loopback man-pages
671 echo ***** Making Wix MSI Installer
672 $(DOCD) $(SRC)\WINNT\install\$@
673 $(CD) $(SRC)\WINNT\install\$@
677 media: install man-pages NSIS wix
679 install-nsis: install man-pages NSIS
681 install-wix: install man-pages wix