windows-misc-20050102
[openafs.git] / src / WINNT / afslegal / 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 # make compiler warnings fatal
9 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -WX
10
11 # include the primary makefile
12 RELDIR=WINNT\afslegal
13 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
14 !INCLUDE ..\..\config\NTMakefile.version
15
16 ############################################################################
17 # Build afslegal.exe
18
19 EXEFILE = $(DESTDIR)\root.server\usr\afs\bin\afslegal.exe
20
21 EXEOBJS = \
22         $(OUT)\afslegal_stub.res \
23         $(OUT)\afslegal.obj
24
25 EXELIBS = \
26         $(DESTDIR)\lib\afs\talocale.lib \
27         comctl32.lib
28
29 $(EXEFILE) : $(EXEOBJS)
30         $(EXEGUILINK) $(EXELIBS)
31         $(EXEPREP) 
32
33 ############################################################################
34 install : $(EXEFILE) lang
35
36 lang ::
37         $(CD) lang
38         for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile install
39         $(CD) ..
40
41 ############################################################################
42 # Dependencies
43
44 $(OUT)\afslegal_stub.res : AFS_component_version_number.h
45
46 mkdir:
47         -mkdir $(OUT)\lang
48         cd lang
49         nmake /nologo /f ntmakefile SRC=$(SRC) OBJ=$(OBJ) mkdir
50         cd ..
51