From: Jeffrey Altman Date: Thu, 10 Jul 2008 19:17:44 +0000 (+0000) Subject: windows-install-loopback-ddk-20080710 X-Git-Tag: openafs-devel-1_5_61~983 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4f5b808414c958e7629c83f93d610b57c54274ac;p=packages%2Fo%2Fopenafs.git windows-install-loopback-ddk-20080710 LICENSE MIT Add support for dynamically determining which ddk include path should be used. The NTDDKDIR variable used to be set to the specific directory in which netcfgx.h was located. Now it is set to the top-level of the DDK install tree. The specific directory that contains netcfgx.h varies based upon whether the DDK is 3790.1830 or 6000. Test for file existence and specify the one that works. --- diff --git a/src/WINNT/install/loopback/NTMakefile b/src/WINNT/install/loopback/NTMakefile index a14bce246..4b781455e 100644 --- a/src/WINNT/install/loopback/NTMakefile +++ b/src/WINNT/install/loopback/NTMakefile @@ -28,6 +28,17 @@ DLLLIBFILES=\ LINK=link +# Figure out which DDK include path we require +!IF EXIST ($(NTDDKDIR)\netcfgx.h) +DDK_INCL = $(NTDDKDIR) +!ELSEIF EXIST ($(NTDDKDIR)\INC\WNET\netcfgx.h) +DDK_INCL = $(NTDDKDIR)\INC\WNET +!ELSEIF EXIST ($(NTDDKDIR)\INC\API\netcfgx.h) +DDK_INCL = $(NTDDKDIR)\INC\API +!ELSE +!ERROR netcfgx.h header file cannot be found. DDK improperly configured. +!ENDIF + # afsloopback.dll DLLSOURCEFILES = loopbackutils.cpp renameconnection.cpp wmi.cpp @@ -46,7 +57,7 @@ $(OUT)\renameconnection.obj: renameconnection.cpp $(STATICC2OBJ) -c -DUNICODE -D_UNICODE /Fo$@ $** $(OUT)\wmi.obj: wmi.cpp - $(STATICC2OBJ) -I$(NTDDKDIR) -c -DUNICODE -D_UNICODE /Fo$@ $** + $(STATICC2OBJ) -I$(DDK_INCL) -c -DUNICODE -D_UNICODE /Fo$@ $** $(DLLFILE): $(DLLOBJFILES) $(DLLRES) $(LINK) -DLL $(DLLEXPORTS) -OUT:$@ $** $(DLLLIBFILES)