# rcsid : $Id: NTMakefile,v 1.5.4.2 2008/07/02 12:49:02 jaltman Exp $

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:ConfigureClientService \
	-EXPORT:ConfigureServerService \
	-EXPORT:AbortMsiImmediate \
	-EXPORT:UninstallNsisInstallation \
        -EXPORT:CreateAFSClientAdminGroup \
        -EXPORT:RemoveAFSClientAdminGroup

DLLLIBFILES=\
	msi.lib advapi32.lib netapi32.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)

install: $(DLLFILE)

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