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