windows-version-info-20070919
[openafs.git] / src / WINNT / install / wix / custom / NTMakefile
1 # rcsid : $Id$
2
3 RELDIR=WINNT\install\wix\custom
4 !INCLUDE ..\..\..\..\config\NTMakefile.$(SYS_NAME)
5 !INCLUDE ..\..\..\..\config\NTMakefile.version
6
7 MEDIABINDIR = $(DESTDIR)\WinInstall\Dll
8
9 DLLFILE = $(MEDIABINDIR)\afscustom.dll
10
11 DLLRES = $(OUT)\afscustom.res
12
13 DLLEXPORTS=\
14         -EXPORT:InstallNetProvider \
15         -EXPORT:UninstallNetProvider \
16         -EXPORT:ConfigureClientService \
17         -EXPORT:ConfigureServerService \
18         -EXPORT:AbortMsiImmediate \
19         -EXPORT:UninstallNsisInstallation \
20         -EXPORT:CreateAFSClientAdminGroup \
21         -EXPORT:RemoveAFSClientAdminGroup
22
23 DLLLIBFILES=\
24         msi.lib advapi32.lib netapi32.lib
25
26 LINK=link
27
28 # afscustom.dll
29
30 $(OUT)\afscustom.obj: afscustom.cpp
31         $(CC) -ML -c /Fo$@ $**
32
33 $(DLLRES): afscustom.rc AFS_component_version_number.h
34
35 $(DLLFILE): $(OUT)\afscustom.obj $(DLLRES)
36         $(LINK) -DLL $(DLLEXPORTS) \
37           -OUT:$@ $** $(DLLLIBFILES)
38         $(_VC_MANIFEST_EMBED_DLL)
39
40 install: $(DLLFILE)
41
42 clean   ::
43         $(DEL) $(DLLRES)
44         $(DEL) $(OUT)\afscustom.obj
45         $(DEL) $(DLLFILE)
46         $(DEL) AFS_component_version_number.h