cbbdba4abb183d83af21c52079993aed547432b6
[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         $(_VC_MANIFEST_EMBED_DLL)
32         $(DLLPREP)
33         $(CODESIGN_USERLAND)
34         $(SYMSTORE_IMPORT)
35
36
37 ############################################################################
38 # Definitions for generating versioninfo resource via RC
39
40 $(OUT)\afssvrcpa_stub.res: afssvrcpa_stub.rc AFS_component_version_number.h
41
42 ############################################################################
43 # Install target; primary makefile target
44
45 install: $(DLLFILE) lang
46
47
48 ############################################################################
49 # Language target
50
51 lang::
52         $(CD) lang
53         for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /e /f NTMakefile install
54         $(CD) ..
55
56
57 ############################################################################
58 # Local clean target; augments predefined clean target
59
60 clean::
61         $(CD) lang
62         @if exist AFS_component_version_number.h del AFS_component_version_number.h
63         for /f %l in ('dir /B ??_??') do ( if exist @$(NTLANG) do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean )
64         $(CD) ..
65
66 mkdir:
67         -mkdir $(OUT)\lang
68         cd lang
69         nmake /nologo /f ntmakefile SRC=$(SRC) OBJ=$(OBJ) mkdir
70         cd ..
71