# 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

# allow the resource compiler to search the dest\include tree

AFSDEV_AUXRCFLAGS = $(AFSDEV_AUXRCFLAGS) -I$(DESTDIR)\include -I..

# include the primary makefile

!INCLUDE ..\..\..\config\NTMakefile.$(SYS_NAME)
!INCLUDE ..\..\..\config\NTMakefile.version

############################################################################
#
# LANGUAGE
#
# To select which language to build, run the ntlang.bat batch file
# before performing a build.
#

!IF ("$(LANGID)" == "") || ("$(LANGNAME)" == "") || ("$(LANGCP)" == "")
!ERROR Must select language before building (run NTLANG.BAT)
!ENDIF

############################################################################
#
# BUILD TARGETS
#

DLLFILE = $(DESTDIR)\root.server\usr\afs\bin\afssvrcfg_$(LANGID).dll

RCFILE = $(LANGNAME)\afscfg.rc

RESFILE = afscfg_$(LANGID).res

DLLOBJS = $(RESFILE)

############################################################################

$(DLLFILE) : $(DLLOBJS)
	$(DLLRESLINK)
	$(DLLPREP) 

install : $(DLLFILE)

clean ::
	@if exist *.res del *.res
	@if exist RC*. del RC*.
	@if exist RD*. del RD*.

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

$(RESFILE) : $(RCFILE) AFS_component_version_number.h
	$(RC) /fo$(RESFILE) /c$(LANGCP) $(RCFILE)

