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