# Copyright 2000, International Business Machines Corporation and others.
# All Rights Reserved.
#
# This software has been released under the terms of the IBM Public
# License.  For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html

# make compiler warnings fatal
AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -WX

# include the primary makefile
RELDIR=WINNT\afslegal
!INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
!INCLUDE ..\..\config\NTMakefile.version

############################################################################
# Build afslegal.exe

EXEFILE = $(DESTDIR)\root.server\usr\afs\bin\afslegal.exe

EXEOBJS = \
	$(OUT)\afslegal_stub.res \
	$(OUT)\afslegal.obj

EXELIBS = \
	$(DESTDIR)\lib\afs\talocale.lib \
	comctl32.lib

$(EXEFILE) : $(EXEOBJS)
	$(EXEGUILINK) $(EXELIBS)
        $(_VC_MANIFEST_EMBED_EXE)
	$(EXEPREP)
        $(CODESIGN_USERLAND)
        $(SYMSTORE_IMPORT)

############################################################################
install : $(EXEFILE) lang

lang ::
	$(CD) lang
	for /f %l in ('dir /B ??_??') do @$(NTLANG) %l $(MAKECMD) /nologo /f NTMakefile install
	$(CD) ..

############################################################################
# Dependencies

$(OUT)\afslegal_stub.res : AFS_component_version_number.h

mkdir:
	-mkdir $(OUT)\lang
	cd lang
	nmake /nologo /f ntmakefile SRC=$(SRC) OBJ=$(OBJ) mkdir
	cd ..

