# 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\afsusrmgr\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\TaAfsAccountManager_$(LANGID).dll

RCFILE = $(LANGNAME)\AfsUsrMgr.rc

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

DLLOBJS = $(RESFILE)

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

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

install : $(DLLFILE)

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