Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / WINNT / client_cpa / lang / NTMakefile
1 # Copyright (C)  1998  Transarc Corporation.  All rights reserved.
2
3 ############################################################################
4
5 # allow the resource compiler to search the dest\include tree
6
7 AFSDEV_AUXRCFLAGS = $(AFSDEV_AUXRCFLAGS) -I$(DESTDIR)\include -I..
8
9 # include the primary makefile
10
11 !INCLUDE ..\..\..\config\NTMakefile.$(SYS_NAME)
12 !INCLUDE ..\..\..\config\NTMakefile.version
13
14 ############################################################################
15 #
16 # LANGUAGE
17 #
18 # To select which language to build, run the ntlang.bat batch file
19 # before performing a build.
20 #
21
22 !IF ("$(LANGID)" == "") || ("$(LANGNAME)" == "") || ("$(LANGCP)" == "")
23 !ERROR Must select language before building (run NTLANG.BAT)
24 !ENDIF
25
26 ############################################################################
27 #
28 # BUILD TARGETS
29 #
30
31 DLLFILE = $(DESTDIR)\root.client\usr\vice\etc\afs_cpa_$(LANGID).dll
32
33 RCFILE = $(LANGNAME)\afs_cpa.rc
34
35 RESFILE = afs_cpa_$(LANGID).res
36
37 DLLOBJS = $(RESFILE)
38
39 ############################################################################
40
41 $(DLLFILE) : $(DLLOBJS)
42         $(DLLRESLINK)
43         $(DLLPREP) 
44
45 install : $(DLLFILE)
46
47 clean ::
48         @if exist *.res del *.res
49         @if exist RC*. del RC*.
50         @if exist RD*. del RD*.
51
52 ############################################################################
53 #
54 # Dependencies
55 #
56
57 $(RESFILE) : $(RCFILE) AFS_component_version_number.h
58         $(RC) /fo$(RESFILE) /c$(LANGCP) $(RCFILE)
59