title: nmake compilation error
body: <p>I'm very new to C and am trying to compile to a specific <code>.so</code> module for Apache, but I'm running into problems.</p>
  
  <p>The fatal error from <code>nmake</code> I get is appended below. Where does the prepend of "cl" to the command come from? The batch file that I execute is also appended.</p>
  
  <p>Any help would be dearly appreciated. </p>
  
  <h2>Windows command-line output</h2>
  
  <pre><code>    cl /nologo /W3 /WX /LD /MT /Ot /Ox /Oi /Oy /Ob2 /GF /Gy /I include  /I "..\httpd\i
  nclude" /I "..\httpd\srclib\apr\include" /I "..\httpd\srclib\apr-util\include" /I "..\http
  d\os\win32" /I "C:\Program Files\Microsoft SDKs\Windows\v7.0A\include" /I "C:\Program File
  s\Microsoft Visual Studio 10.0\VC\include" /D WIN32 /c %CD%\src\mod_auth_sspi.c /FoRelease
  \mod_auth_sspi.obj
  'cl' is not recognized as an internal or external command,
  operable program or batch file.
  NMAKE : fatal error U1077: 'cl' : return code '0x1'
  Stop.
  </code></pre>
  
  <h2>Modified make.bat from <a href="http://mod-auth-sspi.svn.sourceforge.net/viewvc/mod-auth-sspi/branches/ennio/" rel="nofollow">here</a></h2>
  
  <pre><code>echo off
  
  ::Configuration Area
  set PLATSDKDIR=C:\Program Files\Microsoft SDKs\Windows\v7.0A
  REM I could not find SetEnv anywhere for Win7 / VS2010:
  REM set SDK_Init=c:\Programs\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.Cmd
  REM maybe could use setx XXX somehow for the above?
  set MSVCDIR=C:\Program Files\Microsoft Visual Studio 10.0\VC
  set NMAKE_Opts=/NOLOGO
  set APACHE22_HOME=..\httpd
  REM i am not sure what the meaning of the above paramater is, do i need to point to apache source code or apache server to compile?
  set APSRC=1
  set NMAKEHOME=C:\Program Files\Microsoft Visual Studio 10.0\VC\bin
  set BUILD_TYPE=Release
  set DEBUG=0
  
  REM %SDK_Init% not set so have commented this out 
  REM call "%SDK_Init%" /%BUILD_TYPE%
  call "%NMAKEHOME%\nmake" %NMAKE_Opts% "MSVCDIR=%MSVCDIR%" "PLATSDKDIR=%PLATSDKDIR%" "APACHE22_HOME=%APACHE22_HOME%" "APSRC=%APSRC%" "DEBUG=%DEBUG%" dist
  @echo.
  pause 
  </code></pre>