anchor.diff:  EXIT /B
   
   
  -:SUBNMAKEx86
  -nmake /NOLOGO /f "makefile.mak" %1
  -IF %ERRORLEVEL% NEQ 0 CALL :SUBMSG "ERROR" "Compilation failed!"
  -EXIT /B
  -
  -:SUBNMAKEx64
  -nmake /NOLOGO /f "makefile.mak" x64=1 %1
  +:SUBNMAKE
  +nmake /NOLOGO /f "makefile.mak" %~1 %2
   IF %ERRORLEVEL% NEQ 0 CALL :SUBMSG "ERROR" "Compilation failed!"
   EXIT /B
   
  
positive.code: SET "FPATH=%WDKBASEDIR%\bin\x86;%WDKBASEDIR%\bin\x86\x86;%SDKDIR%\Bin"
  SET "PATH=%FPATH%"
  
  TITLE Building Notepad2 x86...
  ECHO. && ECHO.
  
  IF /I "%BUILDTYPE%" == "Build" (
  CALL :SUBNMAKEx86
  GOTO :x64
  )
  
  IF /I "%BUILDTYPE%" == "Rebuild" (
  CALL :SUBNMAKEx86 clean
  CALL :SUBNMAKEx86
  GOTO :x64
  )
  
  IF /I "%BUILDTYPE%" == "Clean" CALL :SUBNMAKEx86 clean
  
  
  :x64
  SET "LIB=%WDKBASEDIR%\lib\crt\amd64;%WDKBASEDIR%\lib\win7\amd64"
  SET "FPATH=%WDKBASEDIR%\bin\x86;%WDKBASEDIR%\bin\x86\amd64;%SDKDIR%\Bin"
  SET "PATH=%FPATH%"
  
  TITLE Building Notepad2 x64...
  ECHO. && ECHO.
  
  IF /I "%BUILDTYPE%" == "Build" (
  CALL :SUBNMAKEx64
  GOTO :END
  )
  
  IF /I "%BUILDTYPE%" == "Rebuild" (
  CALL :SUBNMAKEx64 clean
  CALL :SUBNMAKEx64
  GOTO :END
  )
  
  IF /I "%BUILDTYPE%" == "Clean" CALL :SUBNMAKEx64 clean
  
  
  :END
  
negative.code: REM Check for the switches
  IF "%1" == "" (
  SET BUILDTYPE=Build
  SET ARCH=all
  ) ELSE (
  IF /I "%1" == "Build" SET BUILDTYPE=Build
  IF /I "%1" == "/Build" SET BUILDTYPE=Build
  IF /I "%1" == "-Build" SET BUILDTYPE=Build
  IF /I "%1" == "--Build" SET BUILDTYPE=Build
  IF /I "%1" == "Clean" SET BUILDTYPE=Clean
  IF /I "%1" == "/Clean" SET BUILDTYPE=Clean
  IF /I "%1" == "-Clean" SET BUILDTYPE=Clean
  IF /I "%1" == "--Clean" SET BUILDTYPE=Clean
  IF /I "%1" == "Rebuild" SET BUILDTYPE=Rebuild
  IF /I "%1" == "/Rebuild" SET BUILDTYPE=Rebuild
  IF /I "%1" == "-Rebuild" SET BUILDTYPE=Rebuild
  IF /I "%1" == "--Rebuild" SET BUILDTYPE=Rebuild
  IF /I "%2" == "x86" SET ARCH=x86
  IF /I "%2" == "/x86" SET ARCH=x86
  IF /I "%2" == "-x86" SET ARCH=x86
  IF /I "%2" == "--x86" SET ARCH=x86
  IF /I "%2" == "x64" SET ARCH=x64
  IF /I "%2" == "/x64" SET ARCH=x64
  IF /I "%2" == "-x64" SET ARCH=x64
  IF /I "%2" == "--x64" SET ARCH=x64
  IF /I "%2" == "all" SET ARCH=all
  IF /I "%2" == "/all" SET ARCH=all
  IF /I "%2" == "-all" SET ARCH=all
  IF /I "%2" == "--all" SET ARCH=all
  GOTO :START
  )
  
  
  