windows-cleanup-20041018
[openafs.git] / src / WINNT / afssvrcpa / NTMakefile
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 RELDIR=WINNT\afssvrcpa
9 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\..\config\NTMakefile.version
11
12 ############################################################################
13 # Definitions for building a DLL.
14
15 DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\afsserver.cpl
16
17 DLLOBJS =\
18         $(OUT)\cpl_interface.obj \
19         $(OUT)\AFS_component_version_number.obj \
20         $(OUT)\afssvrcpa_stub.res 
21
22 DLLLIBS =\
23         $(DESTDIR)\lib\afs\afsreg.lib \
24         $(DESTDIR)\lib\afs\TaLocale.lib \
25         comctl32.lib
26
27 DEFFILE = afssvrcpa.def
28
29 $(DLLFILE): $(DLLOBJS)
30         $(DLLGUILINK)  $(DLLLIBS) /DEF:$(DEFFILE)
31         $(DLLPREP)
32
33
34 ############################################################################
35 # Definitions for generating versioninfo resource via RC
36
37 $(OUT)\afssvrcpa_stub.res: afssvrcpa_stub.rc AFS_component_version_number.h
38
39 ############################################################################
40 # Install target; primary makefile target
41
42 install: $(DLLFILE) lang
43
44
45 ############################################################################
46 # Language target
47
48 lang::
49         $(CD) lang
50         for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /e /f NTMakefile install
51         $(CD) ..
52
53
54 ############################################################################
55 # Local clean target; augments predefined clean target
56
57 clean::
58         $(CD) lang
59         for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean
60         $(CD) ..
61
62 mkdir:
63         -mkdir $(OUT)\lang
64         cd lang
65         nmake /nologo /f ntmakefile SRC=$(SRC) OBJ=$(OBJ) mkdir
66         cd ..
67