Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
5.0 KiB

  1. # In order for this makefile to build, the LIB and INCLUDE
  2. # environment variables must be set to the appropriate framework
  3. # directories for the WBEM SDK.
  4. !IF "$(CFG)" == ""
  5. CFG=pchprov - Win32 Release
  6. !MESSAGE No configuration specified. Defaulting to "$(CFG)"
  7. !ENDIF
  8. DEF_FILE=pchprov.def
  9. !IF "$(CFG)" != "pchprov - Win32 Release" && "$(CFG)" != "pchprov - Win32 Debug"
  10. !MESSAGE Invalid configuration "$(CFG)" specified.
  11. !MESSAGE You can specify a configuration when running NMAKE
  12. !MESSAGE by defining the macro CFG on the command line. For example:
  13. !MESSAGE
  14. !MESSAGE NMAKE /f "pchprov.mak" CFG="pchprov - Win32 Debug"
  15. !MESSAGE
  16. !MESSAGE Possible choices for configuration are:
  17. !MESSAGE
  18. !MESSAGE "pchprov - Win32 Release"
  19. !MESSAGE "pchprov - Win32 Debug"
  20. !MESSAGE
  21. !ERROR An invalid configuration is specified.
  22. !ENDIF
  23. !IF "$(OS)" == "Windows_NT"
  24. NULL=
  25. !ELSE
  26. NULL=nul
  27. !ENDIF
  28. !IF "$(CFG)" == "pchprov - Win32 Release"
  29. OUTDIR=.\Release
  30. ALL : "$(OUTDIR)\pchprov.dll"
  31. CLEAN :
  32. -@erase "$(OUTDIR)\*.OBJ"
  33. -@erase "$(OUTDIR)\vc50.idb"
  34. -@erase "$(OUTDIR)\pchprov.dll"
  35. -@erase "$(OUTDIR)\pchprov.pch"
  36. -@erase "$(OUTDIR)\pchprov.exp"
  37. -@erase "$(OUTDIR)\pchprov.lib"
  38. "$(OUTDIR)" :
  39. if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  40. CPP=cl.exe
  41. CPP_PROJ=/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" -DUSE_POLARITY -D_WINDLL\
  42. /Fp"$(OUTDIR)\pchprov.pch" /YX /Fo"$(OUTDIR)\\" /Fd"$(OUTDIR)\\" /FD /c
  43. CPP_OBJS=.\Release/
  44. .cpp{$(CPP_OBJS)}.obj:
  45. $(CPP) @<<
  46. $(CPP_PROJ) $<
  47. <<
  48. LINK32=link.exe
  49. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
  50. advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
  51. odbccp32.lib framedyn.lib /nologo /subsystem:windows /dll /incremental:no\
  52. /pdb:"$(OUTDIR)\pchprov.pdb" /machine:I386 /out:"$(OUTDIR)\pchprov.dll"\
  53. /implib:"$(OUTDIR)\pchprov.lib"
  54. LINK32_OBJS= \
  55. "$(OUTDIR)\MAINDLL.OBJ" \
  56. "$(OUTDIR)\PCH_CDROM.obj" "$(OUTDIR)\PCH_Codec.obj" "$(OUTDIR)\PCH_Device.obj" "$(OUTDIR)\PCH_DeviceDriver.obj" "$(OUTDIR)\PCH_Drive.obj" "$(OUTDIR)\PCH_Driver.obj" "$(OUTDIR)\PCH_FileUpload.obj" "$(OUTDIR)\PCH_Module.obj" "$(OUTDIR)\PCH_NetworkAdapter.obj" "$(OUTDIR)\PCH_NetworkConnection.obj" "$(OUTDIR)\PCH_NetworkProtocol.obj" "$(OUTDIR)\PCH_OLERegistration.obj" "$(OUTDIR)\PCH_Printer.obj" "$(OUTDIR)\PCH_PrinterDriver.obj" "$(OUTDIR)\PCH_PrintJob.obj" "$(OUTDIR)\PCH_ProgramGroup.obj" "$(OUTDIR)\PCH_ResourceDMA.obj" "$(OUTDIR)\PCH_ResourceIORange.obj" "$(OUTDIR)\PCH_ResourceIRQ.obj" "$(OUTDIR)\PCH_ResourceMemRange.obj" "$(OUTDIR)\PCH_RunningTask.obj" "$(OUTDIR)\PCH_StartUp.obj" "$(OUTDIR)\PCH_Sysinfo.obj" "$(OUTDIR)\PCH_WINSOCK.obj"
  57. "$(OUTDIR)\pchprov.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  58. $(LINK32) @<<
  59. $(LINK32_FLAGS) $(LINK32_OBJS) /def:$(DEF_FILE)
  60. <<
  61. !ELSEIF "$(CFG)" == "pchprov - Win32 Debug"
  62. OUTDIR=.\debug
  63. ALL : "$(OUTDIR)\pchprov.dll"
  64. CLEAN :
  65. -@erase "$(OUTDIR)\*.OBJ"
  66. -@erase "$(OUTDIR)\vc50.idb"
  67. -@erase "$(OUTDIR)\vc50.pdb"
  68. -@erase "$(OUTDIR)\pchprov.dll"
  69. -@erase "$(OUTDIR)\pchprov.pch"
  70. -@erase "$(OUTDIR)\pchprov.exp"
  71. -@erase "$(OUTDIR)\pchprov.ilk"
  72. -@erase "$(OUTDIR)\pchprov.lib"
  73. -@erase "$(OUTDIR)\pchprov.pdb"
  74. "$(OUTDIR)" :
  75. if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  76. CPP=cl.exe
  77. CPP_PROJ=/nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" -DUSE_POLARITY -D_WINDLL\
  78. /Fp"$(OUTDIR)\pchprov.pch" /YX /Fo"$(OUTDIR)\\" /Fd"$(OUTDIR)\\" /FD /c
  79. CPP_OBJS=.\debug/
  80. .cpp{$(CPP_OBJS)}.obj:
  81. $(CPP) @<<
  82. $(CPP_PROJ) $<
  83. <<
  84. LINK32=link.exe
  85. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
  86. advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
  87. odbccp32.lib msvcrtd.lib framedyd.lib /nologo /subsystem:windows /dll\
  88. /incremental:yes /pdb:"$(OUTDIR)\pchprov.pdb" /debug /machine:I386\
  89. /out:"$(OUTDIR)\pchprov.dll" /implib:"$(OUTDIR)\pchprov.lib" /pdbtype:sept /NODEFAULTLIB
  90. LINK32_OBJS= \
  91. "$(OUTDIR)\MAINDLL.OBJ" \
  92. "$(OUTDIR)\PCH_CDROM.obj" "$(OUTDIR)\PCH_Codec.obj" "$(OUTDIR)\PCH_Device.obj" "$(OUTDIR)\PCH_DeviceDriver.obj" "$(OUTDIR)\PCH_Drive.obj" "$(OUTDIR)\PCH_Driver.obj" "$(OUTDIR)\PCH_FileUpload.obj" "$(OUTDIR)\PCH_Module.obj" "$(OUTDIR)\PCH_NetworkAdapter.obj" "$(OUTDIR)\PCH_NetworkConnection.obj" "$(OUTDIR)\PCH_NetworkProtocol.obj" "$(OUTDIR)\PCH_OLERegistration.obj" "$(OUTDIR)\PCH_Printer.obj" "$(OUTDIR)\PCH_PrinterDriver.obj" "$(OUTDIR)\PCH_PrintJob.obj" "$(OUTDIR)\PCH_ProgramGroup.obj" "$(OUTDIR)\PCH_ResourceDMA.obj" "$(OUTDIR)\PCH_ResourceIORange.obj" "$(OUTDIR)\PCH_ResourceIRQ.obj" "$(OUTDIR)\PCH_ResourceMemRange.obj" "$(OUTDIR)\PCH_RunningTask.obj" "$(OUTDIR)\PCH_StartUp.obj" "$(OUTDIR)\PCH_Sysinfo.obj" "$(OUTDIR)\PCH_WINSOCK.obj"
  93. "$(OUTDIR)\pchprov.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  94. $(LINK32) @<<
  95. $(LINK32_FLAGS) $(LINK32_OBJS) /def:$(DEF_FILE)
  96. <<
  97. !ENDIF
  98. !IF "$(CFG)" == "pchprov - Win32 Release" || "$(CFG)" == "pchprov - Win32 Debug"
  99. SOURCE=.\MAINDLL.CPP
  100. "$(OUTDIR)\MAINDLL.OBJ" : $(SOURCE) "$(OUTDIR)"
  101. !ENDIF