7c8894c3ff3bf66c14ac32a88c7d237489263418
[openafs.git] / src / WINNT / eventlog / 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 !INCLUDE ..\..\..\config\NTMakefile.$(SYS_NAME)
9 !INCLUDE ..\..\..\config\NTMakefile.version
10
11 ############################################################################
12 #
13 # LANGUAGE
14 #
15 # To select which language to build, run the ntlang.bat batch file
16 # before performing a build.
17 #
18
19 !IF ("$(LANGID)" == "") || ("$(LANGNAME)" == "") || ("$(LANGCP)" == "")
20 !ERROR Must select language before building (run NTLANG.BAT)
21 !ENDIF
22
23 ############################################################################
24 INCFILEDIR = $(DESTDIR)\include\WINNT
25
26 INCFILES =\
27         $(INCFILEDIR)\afsevent.h
28
29 ############################################################################
30 DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\afseventmsg_$(LANGID).dll
31
32 DLLRESFILE = afseventmsg_$(LANGID).res
33
34 DLLRCFILE = afseventmsg.rc
35
36 EVENTRCFILE = $(LANGNAME)\event.rc
37
38 EVENTRESFILE = $(LANGNAME)\event.res
39
40 DLLOBJS = $(DLLRESFILE)
41
42 $(DLLFILE): $(DLLOBJS)
43         $(DLLCONLINK)
44         $(DLLPREP)
45
46 ############################################################################
47 # Generate versioninfo resources
48
49 $(DLLRESFILE): $(DLLRCFILE) $(EVENTRCFILE) AFS_component_version_number.h
50         $(RC) /fo$(DLLRESFILE) /c$(LANGCP) /I$(LANGNAME) /I.. $(DLLRCFILE)
51
52 ############################################################################
53
54 $(INCFILEDIR)\afsevent.h: $(LANGNAME)\afsevent.h
55         $(COPY) $(LANGNAME)\afsevent.h $@
56
57 $(LANGNAME)\afsevent.h: ..\logevent.h $(LANGNAME)\event.h
58         $(DEL) $(LANGNAME)\afsevent.h
59         $(COPY) ..\logevent.h + $(LANGNAME)\event.h $(LANGNAME)\afsevent.h
60
61 $(LANGNAME)\event.h $(LANGNAME)\event.rc: $(LANGNAME)\event.mc
62         $(CD) $(LANGNAME)
63         $(MC) event.mc
64         $(CD) ..
65
66 ############################################################################
67 install: $(INCFILES) $(DLLFILE)
68
69 install9x: install
70
71 clean::
72         $(DEL) $(INCFILES) $(DLLFILE)