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
21 #If AFS_OBJDIR is not defined then use obj as relative obj folder
23 AFS_OBJDIR=$(AFSROOT)\obj
26 DESTDIR=$(AFSROOT)\dest
30 NTMAKE = nmake /nologo /f ntmakefile install
31 NTMAKELANG = nmake /nologo /f ntmakefile en_US
32 NTMAKE_HEADERS = nmake /nologo /f ntmakefile install_headers
33 NTMAKE_OBJS = nmake /nologo /f ntmakefile install_objs
36 #debug statement support jumping to last know error
37 DOCD=$(SRC)\DOLASTCMP.BAT
46 procmgmt_headers:config
48 $(DOCD) $(SRC)\procmgmt
55 $(DOCD) $(SRC)\WINNT\afsreg
56 $(CD) $(SRC)\WINNT\afsreg
60 util: procmgmt_headers afsreg_headers
90 $(DOCD) $(SRC)\WINNT\$@
97 $(DOCD) $(SRC)\WINNT\$@
118 ! IF (EXIST($(SRC)\des\NTMakefile))
124 $(DOCD) $(SRC)\des_stub
125 $(CD) $(SRC)\des_stub
153 $(DOCD) $(SRC)\WINNT\$@
154 $(CD) $(SRC)\WINNT\$@
181 $(DOCD) $(SRC)\WINNT\client_osi
182 $(CD) $(SRC)\WINNT\client_osi
186 libacl_headers: osi_headers
188 $(DOCD) $(SRC)\libacl
193 cm_headers: libacl_headers
195 $(DOCD) $(SRC)\WINNT\afsd
196 $(CD) $(SRC)\WINNT\afsd
200 auth_headers: cm_headers
207 vlserver_headers: auth_headers
209 $(DOCD) $(SRC)\vlserver
210 $(CD) $(SRC)\vlserver
214 afsdobjs: vlserver_headers
216 $(DOCD) $(SRC)\WINNT\afsd
217 $(CD) $(SRC)\WINNT\afsd
355 $(DOCD) $(SRC)\WINNT\$@
356 $(CD) $(SRC)\WINNT\$@
374 libafsauthent: libafsrpc
381 tviced: libafsauthent
404 $(DOCD) $(SRC)\libadmin\$@
405 $(CD) $(SRC)\libadmin\$@
411 $(DOCD) $(SRC)\libadmin\$@
412 $(CD) $(SRC)\libadmin\$@
418 $(DOCD) $(SRC)\libadmin\$@
419 $(CD) $(SRC)\libadmin\$@
425 $(DOCD) $(SRC)\libadmin\$@
426 $(CD) $(SRC)\libadmin\$@
432 $(DOCD) $(SRC)\libadmin\$@
433 $(CD) $(SRC)\libadmin\$@
439 $(DOCD) $(SRC)\libadmin\$@
440 $(CD) $(SRC)\libadmin\$@
446 $(DOCD) $(SRC)\libadmin\$@
447 $(CD) $(SRC)\libadmin\$@
453 $(DOCD) $(SRC)\libadmin\test
454 $(CD) $(SRC)\libadmin\test
460 $(DOCD) $(SRC)\WINNT\$@
461 $(CD) $(SRC)\WINNT\$@
467 $(DOCD) $(SRC)\WINNT\$@
468 $(CD) $(SRC)\WINNT\$@
474 $(DOCD) $(SRC)\WINNT\$@
475 $(CD) $(SRC)\WINNT\$@
481 $(DOCD) $(SRC)\WINNT\$@
482 $(CD) $(SRC)\WINNT\$@
488 $(DOCD) $(SRC)\WINNT\$@
489 $(CD) $(SRC)\WINNT\$@
495 $(DOCD) $(SRC)\WINNT\$@
496 $(CD) $(SRC)\WINNT\$@
502 $(DOCD) $(SRC)\WINNT\$@
503 $(CD) $(SRC)\WINNT\$@
509 $(DOCD) $(SRC)\WINNT\$@
510 $(CD) $(SRC)\WINNT\$@
516 $(DOCD) $(SRC)\WINNT\$@
517 $(CD) $(SRC)\WINNT\$@
521 client_talocale: afssvrcpa
523 $(DOCD) $(SRC)\WINNT\talocale
524 $(CD) $(SRC)\WINNT\talocale
528 client_cpa: client_talocale
530 $(DOCD) $(SRC)\WINNT\$@
531 $(CD) $(SRC)\WINNT\$@
535 client_config: client_cpa
537 $(DOCD) $(SRC)\WINNT\$@
538 $(CD) $(SRC)\WINNT\$@
542 client_exp: client_config
544 $(DOCD) $(SRC)\WINNT\$@
545 $(CD) $(SRC)\WINNT\$@
549 client_creds: client_exp
551 $(DOCD) $(SRC)\WINNT\$@
552 $(CD) $(SRC)\WINNT\$@
558 $(DOCD) $(SRC)\WINNT\$@
559 $(CD) $(SRC)\WINNT\$@
564 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
566 $(DOCD) $(SRC)\WINNT\$@
567 $(CD) $(SRC)\WINNT\$@
571 echo ***** Skipping $@ ***** Not found.
580 echo Build Finished Successfully
584 # InstallShield dependencies
586 # Clean target for obj tree
588 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
589 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
591 nmake /nologo /f ntmakefile clean_version
594 # Language-only build target
596 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
601 -mkdir $(AFS_OBJDIR)\checked
602 -mkdir $(AFS_OBJDIR)\free
603 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
604 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
605 -mkdir $(DESTDIR)\checked
606 -mkdir $(DESTDIR)\free
607 -mkdir $(DESTDIR)\checked\bin
608 -mkdir $(DESTDIR)\free\bin
609 -@copy $(SRC)\config\NTLANG.BAT .
612 echo ***** Making Loopback Adapter Utility DLL
613 $(DOCD) $(SRC)\WINNT\install\$@
614 $(CD) $(SRC)\WINNT\install\$@
619 echo ***** Making NSIS Installer
620 $(DOCD) $(SRC)\WINNT\install\$@
621 $(CD) $(SRC)\WINNT\install\$@
626 echo ***** Making Wix MSI Installer
627 $(DOCD) $(SRC)\WINNT\install\$@
628 $(CD) $(SRC)\WINNT\install\$@
633 echo ***** afs_setup_utils
634 $(DOCD) $(SRC)\WINNT\afs_setup_utils
635 $(CD) $(SRC)\WINNT\afs_setup_utils
639 $(DOCD) $(SRC)\WINNT\install\$@
640 $(CD) $(SRC)\WINNT\install\$@
644 media: install InstallShield5 NSIS wix
646 install-nsis: install NSIS
648 install-wix: install wix
650 install-is5: install InstallShield5