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.
21 NTMAKE = nmake /nologo /f ntmakefile install9x
22 NTMAKELANG = nmake /nologo /f ntmakefile en_install
23 NTMAKE_HEADERS = nmake /nologo /f ntmakefile install_headers
24 NTMAKE_LIBUTILS = nmake /nologo /f ntmakefile install_libutils
25 NTMAKE_OBJS = nmake /nologo /f ntmakefile install_objs
29 # Standard install directory.
31 DESTDIR = $(AFSDEV_DESTDIR)
33 DESTDIR = $(AFSROOT)\DEST
39 ! ERROR Execute nmake from directory above src, e.g., afs\3.5.
41 ! IF (!EXIST($(DESTDIR)))
51 procmgmt_headers: config
57 afsreg_headers: config
59 $(CD) $(OBJ)\WINNT\afsreg
63 util: procmgmt_headers afsreg_headers
107 ! IF (EXIST($(OBJ)\des\NTMakefile))
112 $(CD) $(OBJ)\des_stub
137 $(CD) $(OBJ)\WINNT\$@
161 $(CD) $(OBJ)\WINNT\client_osi
165 libacl_headers: osi_headers
171 cm_headers: libacl_headers
173 $(CD) $(OBJ)\WINNT\afsd
185 $(CD) $(OBJ)\WINNT\afsd
237 libafsauthent: libafsrpc
243 libadmin: libafsauthent
249 client_talocale: libadmin
251 $(CD) $(OBJ)\WINNT\talocale
255 client_osi: client_talocale
257 $(CD) $(OBJ)\WINNT\$@
263 $(CD) $(OBJ)\WINNT\$@
269 $(CD) $(OBJ)\WINNT\$@
273 client_config: client_cpa
275 $(CD) $(OBJ)\WINNT\$@
279 client_exp: client_config
281 $(CD) $(OBJ)\WINNT\$@
286 #Leave last echo in - it helps the build reconize the last $(CD)
289 $(CD) $(OBJ)\WINNT\$@
292 echo ***** End of Build
294 install: start client_exp win9xpanel
298 # InstallShield dependencies
300 #Leave last echo in - it helps the build reconize the last $(CD)
302 echo ***** afs_setup_utils
303 $(CD) $(OBJ)\WINNT\afs_setup_utils
304 nmake -f ntmakefile install
307 $(CD) $(OBJ)\WINNT\install\Win9x
308 nmake /nologo /f NTMakefile isinstall
310 echo **** End of Install Scripts
314 # Clean target for obj tree
315 # Fake the version copy so clean will go through the complete cycle with undefines
317 if not exist .\src\config\NTMakefile.version copy .\src\config\NTMakefile.version-NOCML .\src\config\NTMakefile.version
318 nmake /nologo /f ntmake9x "NTMAKE = nmake /nologo /f ntmakefile clean" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile clean" "NTMAKE_LIBUTILS = nmake /nologo /f ntmakefile clean" "NTMAKE_OBJS = nmake /nologo /f ntmakefile clean" install
319 $(CD) $(OBJ)\WINNT\install\Win9x
320 nmake /nologo /f NTMakefile clean
322 $(DESTDIR)\BIN\rmbat $(DESTDIR)\include\*.* $(DESTDIR)\include\afs\*.* $(DESTDIR)\include\WINNT\*.* $(DESTDIR)\include\rx\*.*
323 $(DESTDIR)\BIN\rmbat $(DESTDIR)\LIB\*.LIB $(DESTDIR)\LIB\*.DLL $(DESTDIR)\LIB\AFS\*.LIB
324 $(DESTDIR)\BIN\rmbat $(DESTDIR)\root.client\usr\vice\etc\*.*
326 nmake /nologo /f ntmakefile clean_version
328 echo **** End of Clean
330 # Language-only build target
332 nmake /nologo /f ntmakefile "NTMAKE = nmake /nologo /f ntmakefile lang" "NTMAKE_HEADERS = nmake /nologo /f ntmakefile lang" install