# Copyright (C)  1998  Transarc Corporation.  All rights reserved.

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

# 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.client\usr\vice\etc\afs_config_$(LANGID).dll

RCFILE = $(LANGNAME)\afs_config.rc

RESFILE = afs_config_$(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)

