# 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
!INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
!INCLUDE ..\..\config\NTMakefile.version

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

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

EXEOBJS = \
	afslegal_stub.res \
	afslegal.obj

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

$(EXEFILE) : $(EXEOBJS)
	$(EXEGUILINK) $(EXELIBS)
	$(EXEPREP) 

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

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

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

afslegal_stub.res : afslegal_stub.rc AFS_component_version_number.h
