# 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

RELDIR=WINNT\afsapplib\lang
!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\TaAfsAppLib_$(LANGID).dll

RCFILE = $(LANGNAME)\afsapplib.rc

RESFILE = $(OUT)\afsapplib_$(LANGID).res

DLLOBJS = $(RESFILE)

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

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

install : $(DLLFILE)

clean ::
	@if exist $(OUT)\*.res del $(OUT)\*.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)

mkdir:
