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
25 DESTDIR=$(AFSROOT)\dest
28 NTMAKE = nmake /nologo /f ntmakefile install
29 NTMAKELANG = nmake /nologo /f ntmakefile en_US
30 NTMAKE_HEADERS = nmake /nologo /f ntmakefile install_headers
31 NTMAKE_OBJS = nmake /nologo /f ntmakefile install_objs
34 #debug statement support jumping to last know error
35 DOCD=$(SRC)\DOLASTCMP.BAT
44 procmgmt_headers:config
46 $(DOCD) $(SRC)\procmgmt
53 $(DOCD) $(SRC)\WINNT\afsreg
54 $(CD) $(SRC)\WINNT\afsreg
58 util: procmgmt_headers afsreg_headers
88 $(DOCD) $(SRC)\WINNT\$@
95 $(DOCD) $(SRC)\WINNT\$@
116 ! IF (EXIST($(SRC)\des\NTMakefile))
122 $(DOCD) $(SRC)\des_stub
123 $(CD) $(SRC)\des_stub
151 $(DOCD) $(SRC)\WINNT\$@
152 $(CD) $(SRC)\WINNT\$@
179 $(DOCD) $(SRC)\WINNT\client_osi
180 $(CD) $(SRC)\WINNT\client_osi
184 libacl_headers: osi_headers
186 $(DOCD) $(SRC)\libacl
191 cm_headers: libacl_headers
193 $(DOCD) $(SRC)\WINNT\afsd
194 $(CD) $(SRC)\WINNT\afsd
200 $(DOCD) $(SRC)\WINNT\afsd
201 $(CD) $(SRC)\WINNT\afsd
339 $(DOCD) $(SRC)\WINNT\$@
340 $(CD) $(SRC)\WINNT\$@
358 libafsauthent: libafsrpc
365 tviced: libafsauthent
388 $(DOCD) $(SRC)\libadmin\$@
389 $(CD) $(SRC)\libadmin\$@
395 $(DOCD) $(SRC)\libadmin\$@
396 $(CD) $(SRC)\libadmin\$@
402 $(DOCD) $(SRC)\libadmin\$@
403 $(CD) $(SRC)\libadmin\$@
409 $(DOCD) $(SRC)\libadmin\$@
410 $(CD) $(SRC)\libadmin\$@
416 $(DOCD) $(SRC)\libadmin\$@
417 $(CD) $(SRC)\libadmin\$@
423 $(DOCD) $(SRC)\libadmin\$@
424 $(CD) $(SRC)\libadmin\$@
430 $(DOCD) $(SRC)\libadmin\$@
431 $(CD) $(SRC)\libadmin\$@
437 $(DOCD) $(SRC)\libadmin\test
438 $(CD) $(SRC)\libadmin\test
444 $(DOCD) $(SRC)\WINNT\$@
445 $(CD) $(SRC)\WINNT\$@
451 $(DOCD) $(SRC)\WINNT\$@
452 $(CD) $(SRC)\WINNT\$@
458 $(DOCD) $(SRC)\WINNT\$@
459 $(CD) $(SRC)\WINNT\$@
465 $(DOCD) $(SRC)\WINNT\$@
466 $(CD) $(SRC)\WINNT\$@
472 $(DOCD) $(SRC)\WINNT\$@
473 $(CD) $(SRC)\WINNT\$@
479 $(DOCD) $(SRC)\WINNT\$@
480 $(CD) $(SRC)\WINNT\$@
486 $(DOCD) $(SRC)\WINNT\$@
487 $(CD) $(SRC)\WINNT\$@
491 client_talocale: afssvrcpa
493 $(DOCD) $(SRC)\WINNT\talocale
494 $(CD) $(SRC)\WINNT\talocale
498 client_osi: client_talocale
500 $(DOCD) $(SRC)\WINNT\$@
501 $(CD) $(SRC)\WINNT\$@
507 $(DOCD) $(SRC)\WINNT\$@
508 $(CD) $(SRC)\WINNT\$@
514 $(DOCD) $(SRC)\WINNT\$@
515 $(CD) $(SRC)\WINNT\$@
519 client_config: client_cpa
521 $(DOCD) $(SRC)\WINNT\$@
522 $(CD) $(SRC)\WINNT\$@
526 client_exp: client_config
528 $(DOCD) $(SRC)\WINNT\$@
529 $(CD) $(SRC)\WINNT\$@
533 client_creds: client_exp
535 $(DOCD) $(SRC)\WINNT\$@
536 $(CD) $(SRC)\WINNT\$@
541 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
543 $(DOCD) $(SRC)\WINNT\$@
544 $(CD) $(SRC)\WINNT\$@
548 echo ***** Skipping $@ ***** Not found.
557 echo Build Finished Successfully
561 # InstallShield dependencies
563 # Clean target for obj tree
565 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
566 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
568 nmake /nologo /f ntmakefile clean_version
571 # Language-only build target
573 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
578 -mkdir $(AFS_OBJDIR)\checked
579 -mkdir $(AFS_OBJDIR)\free
580 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
581 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
582 -mkdir $(DESTDIR)\checked
583 -mkdir $(DESTDIR)\free
584 -mkdir $(DESTDIR)\checked\bin
585 -mkdir $(DESTDIR)\free\bin
586 -@copy $(SRC)\config\NTLANG.BAT .
589 echo ***** Making NSIS Installer
590 $(DOCD) $(SRC)\WINNT\install\$@
591 $(CD) $(SRC)\WINNT\install\$@
596 # echo ***** Making MSI Installer
597 # $(DOCD) $(SRC)\WINNT\install\$@
598 # $(CD) $(SRC)\WINNT\install\$@
603 echo ***** afs_setup_utils
604 $(DOCD) $(SRC)\WINNT\afs_setup_utils
605 $(CD) $(SRC)\WINNT\afs_setup_utils
609 $(DOCD) $(SRC)\WINNT\install\$@
610 $(CD) $(SRC)\WINNT\install\$@
614 media: install InstallShield5 NSIS
616 install-nsis: install NSIS
618 install-msi: install msi
620 install-is5: install InstallShield5