patch-from-shadow-to-jaltman-bkbox-20031120
[openafs.git] / src / WINNT / afsapplib / lang / 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 # allow the resource compiler to search the dest\include tree
9
10 AFSDEV_AUXRCFLAGS = $(AFSDEV_AUXRCFLAGS) -I$(DESTDIR)\include -I..
11
12 # include the primary makefile
13
14 RELDIR=WINNT\afsapplib\lang
15 !INCLUDE ..\..\..\config\NTMakefile.$(SYS_NAME)
16 !INCLUDE ..\..\..\config\NTMakefile.version
17
18 ############################################################################
19 #
20 # LANGUAGE
21 #
22 # To select which language to build, run the ntlang.bat batch file
23 # before performing a build.
24 #
25
26 !IF ("$(LANGID)" == "") || ("$(LANGNAME)" == "") || ("$(LANGCP)" == "")
27 !ERROR Must select language before building (run NTLANG.BAT)
28 !ENDIF
29
30 ############################################################################
31 #
32 # BUILD TARGETS
33 #
34
35 DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\TaAfsAppLib_$(LANGID).dll
36
37 RCFILE = $(LANGNAME)\afsapplib.rc
38
39 RESFILE = $(OUT)\afsapplib_$(LANGID).res
40
41 DLLOBJS = $(RESFILE)
42
43 ############################################################################
44
45 $(DLLFILE) : $(DLLOBJS)
46         $(DLLRESLINK)
47         $(DLLPREP) 
48
49 install : $(DLLFILE)
50
51 clean ::
52         @if exist $(OUT)\*.res del $(OUT)\*.res
53         @if exist RC*. del RC*.
54         @if exist RD*. del RD*.
55
56 ############################################################################
57 #
58 # Dependencies
59 #
60
61 $(RESFILE) : $(RCFILE) AFS_component_version_number.h
62         $(RC) /fo$(RESFILE) /c$(LANGCP) $(RCFILE)
63
64 mkdir: