# rcsid : $Id$

RELDIR=WINNT\install\wix\custom
!INCLUDE ..\..\..\..\config\NTMakefile.$(SYS_NAME)
!INCLUDE ..\..\..\..\config\NTMakefile.version

MEDIABINDIR = $(DESTDIR)\WinInstall\Dll

DLLFILE = $(MEDIABINDIR)\afscustom.dll

DLLRES = $(OUT)\afscustom.res

DLLEXPORTS=\
	-EXPORT:InstallNetProvider \
	-EXPORT:UninstallNetProvider \
	-EXPORT:InstallRedirNetProvider 	\
	-EXPORT:UninstallRedirNetProvider 	\
	-EXPORT:ConfigureClientService \
	-EXPORT:ConfigureServerService \
	-EXPORT:AbortMsiImmediate \
	-EXPORT:UninstallNsisInstallation \
        -EXPORT:CreateAFSClientAdminGroup \
        -EXPORT:RemoveAFSClientAdminGroup \
	-EXPORT:BackupAFSClientRegistryKeys \
	-EXPORT:RestoreAFSClientRegistryKeys \
	-EXPORT:DetectSavedConfiguration

DLLLIBFILES=\
	msi.lib advapi32.lib netapi32.lib setupapi.lib

LINK=link

# afscustom.dll

$(OUT)\afscustom.obj: afscustom.cpp
	$(CC) -ML -c /Fo$@ $**

$(DLLRES): afscustom.rc AFS_component_version_number.h

$(DLLFILE): $(OUT)\afscustom.obj $(DLLRES)
	$(LINK) -DLL $(DLLEXPORTS) \
	  -OUT:$@ $** $(DLLLIBFILES)
        $(_VC_MANIFEST_EMBED_DLL)
        $(CODESIGN_USERLAND)
        $(SYMSTORE_IMPORT)

install: $(DLLFILE)

clean	::
	$(DEL) $(DLLRES)
	$(DEL) $(OUT)\afscustom.obj
	$(DEL) $(DLLFILE)
	$(DEL) AFS_component_version_number.h
