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
160 $(DOCD) $(SRC)\WINNT\$@
161 $(CD) $(SRC)\WINNT\$@
188 $(DOCD) $(SRC)\WINNT\client_osi
189 $(CD) $(SRC)\WINNT\client_osi
193 libacl_headers: osi_headers
195 $(DOCD) $(SRC)\libacl
200 cm_headers: libacl_headers
202 $(DOCD) $(SRC)\WINNT\afsd
203 $(CD) $(SRC)\WINNT\afsd
216 $(DOCD) $(SRC)\WINNT\afsd
217 $(CD) $(SRC)\WINNT\afsd
348 $(DOCD) $(SRC)\WINNT\$@
349 $(CD) $(SRC)\WINNT\$@
367 libafsauthent: libafsrpc
374 tviced: libafsauthent
397 $(DOCD) $(SRC)\libadmin\$@
398 $(CD) $(SRC)\libadmin\$@
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\test
447 $(CD) $(SRC)\libadmin\test
453 $(DOCD) $(SRC)\WINNT\$@
454 $(CD) $(SRC)\WINNT\$@
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\$@
500 client_talocale: afssvrcpa
502 $(DOCD) $(SRC)\WINNT\talocale
503 $(CD) $(SRC)\WINNT\talocale
507 client_osi: client_talocale
509 $(DOCD) $(SRC)\WINNT\$@
510 $(CD) $(SRC)\WINNT\$@
516 $(DOCD) $(SRC)\WINNT\$@
517 $(CD) $(SRC)\WINNT\$@
523 $(DOCD) $(SRC)\WINNT\$@
524 $(CD) $(SRC)\WINNT\$@
528 client_config: client_cpa
530 $(DOCD) $(SRC)\WINNT\$@
531 $(CD) $(SRC)\WINNT\$@
535 client_exp: client_config
537 $(DOCD) $(SRC)\WINNT\$@
538 $(CD) $(SRC)\WINNT\$@
542 client_creds: client_exp
544 $(DOCD) $(SRC)\WINNT\$@
545 $(CD) $(SRC)\WINNT\$@
551 $(DOCD) $(SRC)\WINNT\$@
552 $(CD) $(SRC)\WINNT\$@
557 ! IF EXIST($(SRC)\WINNT\extra) && EXIST($(SRC)\WINNT\extra\NTMakefile)
559 $(DOCD) $(SRC)\WINNT\$@
560 $(CD) $(SRC)\WINNT\$@
564 echo ***** Skipping $@ ***** Not found.
573 echo Build Finished Successfully
577 # InstallShield dependencies
579 # Clean target for obj tree
581 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
582 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
584 nmake /nologo /f ntmakefile clean_version
587 # Language-only build target
589 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install
592 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\checked\
593 -xcopy /q /t /e $(SRC)\*.* $(AFS_OBJDIR)\free\
594 -mkdir $(DESTDIR)\checked
595 -mkdir $(DESTDIR)\free
596 -mkdir $(DESTDIR)\checked\bin
597 -mkdir $(DESTDIR)\free\bin
598 -@copy $(SRC)\config\NTLANG.BAT .
601 echo ***** Making NSIS Installer
602 $(DOCD) $(SRC)\WINNT\install\$@
603 $(CD) $(SRC)\WINNT\install\$@
608 # echo ***** Making MSI Installer
609 # $(DOCD) $(SRC)\WINNT\install\$@
610 # $(CD) $(SRC)\WINNT\install\$@
615 echo ***** afs_setup_utils
616 $(DOCD) $(SRC)\WINNT\afs_setup_utils
617 $(CD) $(SRC)\WINNT\afs_setup_utils
621 $(DOCD) $(SRC)\WINNT\install\$@
622 $(CD) $(SRC)\WINNT\install\$@
626 media: install InstallShield5 NSIS
628 install-nsis: install NSIS
630 install-msi: install msi
632 install-is5: install InstallShield5