Linux-6.9: file_lock mbrs moved to file_lock_core
[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\afsroken.lib \
24         $(DESTDIR)\lib\afs\afsreg.lib \
25         $(DESTDIR)\lib\afs\TaLocale.lib \
26         comctl32.lib
27
28 DEFFILE = afssvrcpa.def
29
30 $(DLLFILE): $(DLLOBJS)
31         $(DLLGUILINK)  $(DLLLIBS) /DEF:$(DEFFILE)
32         $(_VC_MANIFEST_EMBED_DLL)
33         $(DLLPREP)
34         $(CODESIGN_USERLAND)
35         $(SYMSTORE_IMPORT)
36
37
38 ############################################################################
39 # Definitions for generating versioninfo resource via RC
40
41 $(OUT)\afssvrcpa_stub.res: afssvrcpa_stub.rc AFS_component_version_number.h
42
43 ############################################################################
44 # Install target; primary makefile target
45
46 install: $(DLLFILE) lang
47
48
49 ############################################################################
50 # Language target
51
52 lang::
53         $(CD) lang
54         for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /e /f NTMakefile install
55         $(CD) ..
56
57
58 ############################################################################
59 # Local clean target; augments predefined clean target
60
61 clean::
62         $(CD) lang
63         @if exist AFS_component_version_number.h del AFS_component_version_number.h
64         for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile clean
65         $(CD) ..
66
67 mkdir:
68         -mkdir $(OUT)\lang
69         cd lang
70         nmake /nologo /f ntmakefile SRC=$(SRC) OBJ=$(OBJ) mkdir
71         cd ..
72