windows-cleanup-20041018
[openafs.git] / src / WINNT / afssvrcpa / NTMakefile
index 0c6378c..c9dfd82 100644 (file)
@@ -1,19 +1,23 @@
-# Copyright (C)  1998  Transarc Corporation.  All rights reserved.
-#
-
+# Copyright 2000, International Business Machines Corporation and others.
+# All Rights Reserved.
+# 
+# This software has been released under the terms of the IBM Public
+# License.  For details, see the LICENSE file in the top-level source
+# directory or online at http://www.openafs.org/dl/license10.html
+
+RELDIR=WINNT\afssvrcpa
 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
 !INCLUDE ..\..\config\NTMakefile.version
 
-
 ############################################################################
 # Definitions for building a DLL.
 
 DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\afsserver.cpl
 
 DLLOBJS =\
-       afssvrcpa_stub.res \
-       cpl_interface.obj \
-       AFS_component_version_number.obj
+       $(OUT)\cpl_interface.obj \
+       $(OUT)\AFS_component_version_number.obj \
+       $(OUT)\afssvrcpa_stub.res 
 
 DLLLIBS =\
        $(DESTDIR)\lib\afs\afsreg.lib \
@@ -30,9 +34,7 @@ $(DLLFILE): $(DLLOBJS)
 ############################################################################
 # Definitions for generating versioninfo resource via RC
 
-afssvrcpa_stub.res: afssvrcpa_stub.rc AFS_component_version_number.h
-       $(RC) $*.rc
-
+$(OUT)\afssvrcpa_stub.res: afssvrcpa_stub.rc AFS_component_version_number.h
 
 ############################################################################
 # Install target; primary makefile target
@@ -45,7 +47,7 @@ install: $(DLLFILE) lang
 
 lang::
        $(CD) lang
-       for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile install
+       for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /e /f NTMakefile install
        $(CD) ..
 
 
@@ -53,4 +55,13 @@ lang::
 # Local clean target; augments predefined clean target
 
 clean::
+       $(CD) lang
+       for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean
+       $(CD) ..
+
+mkdir:
+       -mkdir $(OUT)\lang
+       cd lang
+       nmake /nologo /f ntmakefile SRC=$(SRC) OBJ=$(OBJ) mkdir
+       cd ..