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.

288 lines
9.8 KiB

  1. ############################################################################
  2. #
  3. # Copyright (C) 2000, Microsoft Corporation.
  4. #
  5. # All rights reserved.
  6. #
  7. ############################################################################
  8. MIDL_TLBDIR=$(O)
  9. PASS0_CLIENTDIR=$(O)
  10. PASS0_SERVERDIR=$(O)
  11. PASS0_SOURCEDIR=$(O)
  12. PASS0_HEADERDIR=$(O)
  13. !ifdef WMIMFC
  14. USE_MFC=1
  15. MFC_VER=42
  16. !ifdef WMIUNICODE
  17. USE_MFCUNICODE=1
  18. !endif
  19. !endif
  20. !ifdef WMIUNICODE
  21. WMICHARTYPE=UNICODE
  22. C_DEFINES=$(C_DEFINES) /DUNICODE /D_UNICODE
  23. !else
  24. WMICHARTYPE=ANSI
  25. C_DEFINES=$(C_DEFINES) /D_MBCS
  26. !endif
  27. !ifdef WMIAUTOPRECOMP
  28. # Link-time code generation and /YX are incompatible; disable link-time code
  29. # generation (YX shouldn't be used anyway; it's slow)
  30. FORCENATIVEOBJECT = TRUE
  31. USER_C_FLAGS=/Fp$(O)\ /YX$(WMIAUTOPRECOMP)
  32. !endif
  33. !ifdef WMIAUTOPRECOMPSHARED
  34. # Link-time code generation and /YX are incompatible; disable link-time code
  35. # generation (YX shouldn't be used anyway; it's slow)
  36. FORCENATIVEOBJECT = TRUE
  37. USER_C_FLAGS=/Fp$(O)\ /YX$(WMIAUTOPRECOMPSHARED)
  38. INCLUDES=..;$(INCLUDES)
  39. !endif
  40. !ifdef WMIPRECOMP
  41. PRECOMPILED_INCLUDE=precomp.h
  42. PRECOMPILED_CXX=1
  43. !endif
  44. !ifdef WMIPRECOMPSHARED
  45. PRECOMPILED_INCLUDE=..\precomp.h
  46. PRECOMPILED_CXX=1
  47. INCLUDES=..;$(INCLUDES)
  48. !endif
  49. WMIROOT = $(PROJECT_ROOT)\wmi\wbem
  50. ADAPTERS = $(WMIROOT)\Adapters
  51. COMMON = $(WMIROOT)\common
  52. PROVIDERS = $(WMIROOT)\Providers
  53. SCRIPTING = $(WMIROOT)\Scripting
  54. SDK = $(WMIROOT)\SDK
  55. SETUP = $(WMIROOT)\Setup
  56. SHELL = $(WMIROOT)\Shell
  57. WINMGMT = $(WMIROOT)\WinMgmt
  58. XML = $(WMIROOT)\XMLTransport
  59. TEST = $(WMIROOT)\BVT
  60. HELP = $(SDK)\HELP
  61. MOFS = $(PROVIDERS)\mofs
  62. ADAPTERS_REVERSE_DREDGE = $(ADAPTERS)\WMIReversePerformanceMonitor\system
  63. ADAPTERS_REVERSE_DREDGE_LIB = $(ADAPTERS)\WMIReversePerformanceMonitor\system\$(O)\WmiApRef.lib
  64. ARTWORK = $(COMMON)\Artwork
  65. ARTWORK_WIN32ICONS = $(ARTWORK)\Win32Icons
  66. ACTIVEXSUITE = $(SDK)\ActiveX
  67. ACTIVEXCONTROLS = $(ACTIVEXSUITE)\Controls
  68. ACTIVEX_OCX_SOURCES_INC = $(ACTIVEXCONTROLS)\ocx\sources.inc
  69. ACTIVEX_WBEMUTIL_INC = $(ACTIVEXCONTROLS)\MsgDlg
  70. ACTIVEX_WBEMUTIL_LIB = $(ACTIVEXCONTROLS)\MsgDlg\$(O)\WBEMUtils.lib
  71. ACTIVEX_WBEMLOGINDLG_INC = $(ACTIVEXCONTROLS)\LoginDlg
  72. ACTIVEX_WBEMLOGINDLG_LIB = $(ACTIVEXCONTROLS)\LoginDlg\$(O)\WBEMLoginDlg.lib
  73. ACTIVEX_WBEMGRID_INC = $(ACTIVEXCONTROLS)\CommonDlls\hmmvgrid
  74. ACTIVEX_WBEMGRID_LIB = $(ACTIVEXCONTROLS)\CommonDlls\hmmvgrid\$(O)\WBEMGrid.lib
  75. ADSI_INC = $(ADAPTERS)\ADSI
  76. ADSI_LIB = $(ADAPTERS)\ADSI\$(O)\ADSExt.lib
  77. PSSUTILLIB_INC = $(SDK)\psstools\utillib
  78. PSSUTILLIB_LIB = $(SDK)\psstools\utillib\$(O)\utillib.lib
  79. WMIIDL_INC = $(COMMON)\idl\wbemuuid\$(O)
  80. WMIIDL_LIB = $(COMMON)\idl\wbemuuid\$(O)\wbemuuid.lib
  81. UMIIDL_INC = $(COMMON)\idl\umiuuid\$(O)
  82. UMIIDL_LIB = $(COMMON)\idl\umiuuid\$(O)\umiuuid.lib
  83. WMIIDL_SRC_INC = $(COMMON)\idl
  84. WMIREPOSITIDL_INC = $(COMMON)\idl\reposit\$(O)
  85. WMIREPOSITIDL_LIB = $(COMMON)\idl\reposit\$(O)\reposit.lib
  86. WBEMINT_INC = $(COMMON)\idl\wbemint\$(O)
  87. WBEMINT_LIB = $(COMMON)\idl\wbemint\$(O)\wbemint.lib
  88. WMIMSG_INC = $(COMMON)\idl\wmimsg\$(O)
  89. WMIMSG_LIB = $(COMMON)\idl\wmimsg\$(O)\wmimuuid.lib
  90. WBEMDCPLIDL_INC = $(WINMGMT)\esscomp\decoupled\idl\$(O)
  91. WBEMDCPLIDL_LIB = $(WINMGMT)\esscomp\decoupled\idl\$(O)\wbemdcpl.lib
  92. WMIMSGTEST_INC = $(WINMGMT)\msg\test\idl\$(O)
  93. WBEMPRV_COMN_LIB = $(WINMGMT)\ProvSubSys\Common\$(O)\wmiprvss.lib
  94. WBEMPRV_COMN_INC = $(WINMGMT)\ProvSubSys\Common\include
  95. WBEMPSSSERVER_INC = $(WINMGMT)\ProvSubSys\Server\include
  96. WBEMPSSPROV_INC = $(WINMGMT)\ProvSubSys\Provider\include
  97. WBEMPSSCLIENT_INC = $(WINMGMT)\ProvSubSys\Client\include
  98. WMIXMLIDL_SRC = $(XML)\server\wmixmlidl
  99. WMIXMLIDL_INC = $(XML)\server\wmixmlidl\$(O)
  100. WMIXMLIDL_LIB = $(XML)\server\wmixmlidl\$(O)\wmixmlidl.lib
  101. WMIXMLSTIDL_INC = $(XML)\server\xmltrans\idl\uuid\$(O)
  102. WMIXMLSTIDL_LIB = $(XML)\server\xmltrans\idl\uuid\$(O)\wmixmlst.lib
  103. WMIXMLTRANSFIDL_INC = $(XML)\compiler\control\xmltransf\$(O)
  104. WMIXMLTRANSFIDL_LIB = $(XML)\compiler\control\uuid\$(O)\xmltrnsf.lib
  105. WMIXMLCLIENT_INC = $(XML)\client\includes
  106. WMIXMLTRANSCLIHELP_LIB = $(XML)\client\HelperSources\$(O)\XMLTransportClientHelper.lib
  107. WMI2XML_INC = $(XML)\Server\wmi2xml
  108. MC_INC = $(WINMGMT)\mc\$(O)
  109. ODBCDRIVER = $(ADAPTERS)\ODBC
  110. PSSTOOLS = $(SDK)\PSSTOOLS
  111. SDKSAMPL = $(SDK)\Samples
  112. ATLUI = $(SHELL)\ATLUI
  113. MMFUTIL_INC = $(ATLUI)\MMFUtil
  114. MMFUTIL_LIB = $(ATLUI)\MMFUtil\$(O)\mmfutil.lib
  115. ATLUICOMMON_INC = $(ATLUI)\common
  116. ATLUICOMMON_LIB = $(ATLUI)\common\$(WMICHARTYPE)\$(O)\common.lib
  117. ATLUISNAPINS_INC =$(ATLUI)\inc\snapins.inc
  118. STDLIBRARY_INC = $(COMMON)\stdlibrary
  119. STDLIBRARY_LIB = $(COMMON)\stdlibrary\$(WMICHARTYPE)\$(O)\stdlibrary.lib
  120. UTILLIB_INC = $(COMMON)\utillib\include
  121. UTILLIB_LIB = $(COMMON)\utillib\$(WMICHARTYPE)\$(O)\utillib.lib
  122. UTILLIB_DEBUG_LIB = $(COMMON)\utillib\$(WMICHARTYPE)_DEBUG\$(O)\utillib.lib
  123. WDMLIB_INC = $(COMMON)\wdmlib
  124. WDMLIB_LIB = $(COMMON)\wdmlib\$(O)\wdmlib.lib
  125. BVTLIB_INC = $(TEST)\whistler\bvtapilib
  126. BVTLIB_LIB = $(TEST)\whistler\bvtapilib\$(O)\bvtapilib.lib
  127. CONTAINER_INC=$(COMMON)\containers\include
  128. CONTAINER_SRC=$(COMMON)\containers
  129. NTEVENT_INC = $(PROVIDERS)\NTEventProvider\include
  130. NTEVENT_CORE_INC = $(PROVIDERS)\NTEventProvider\core
  131. NTEVENT_CORE_LIB = $(PROVIDERS)\NTEventProvider\core\$(O)\provcore.lib
  132. SNMPPROVIDER = $(PROVIDERS)\SNMPProvider
  133. SNMP_MFC_INC = $(SNMPPROVIDER)\common\snmpmfc\include
  134. SNMP_MFC_LIB = $(SNMPPROVIDER)\common\snmpmfc\$(WMICHARTYPE)\$(O)\snmpmfc.lib
  135. SNMP_THRD_INC = $(SNMPPROVIDER)\common\thrdlog\include
  136. SNMP_THRD_LIB = $(SNMPPROVIDER)\common\thrdlog\$(O)\snmpthrd.lib
  137. SNMP_CLASSLIB_INC = $(SNMPPROVIDER)\common\sclcomm\include
  138. SNMP_CLASSLIB_LIB = $(SNMPPROVIDER)\common\sclcomm\$(O)\snmpcl.lib
  139. SNMP_SMIR_INC = $(SNMPPROVIDER)\smir\include
  140. SNMP_SMI2SMIR_DIR = $(SNMPPROVIDER)\compilers\smi2smir
  141. WIN32PROVIDER = $(PROVIDERS)\Win32Provider
  142. WIN32THUNK = $(WIN32PROVIDER)\thunk
  143. CIMWIN32_LIB_INC = $(WIN32PROVIDER)\common
  144. CIMWIN32_WIN2K_LIB = $(WIN32PROVIDER)\common\W2K\$(O)\cimwin32library.lib
  145. CIMWIN32_WINNT_LIB = $(WIN32PROVIDER)\common\NT\$(O)\cimwin32library.lib
  146. CIMWIN32_ANSI_LIB = $(WIN32PROVIDER)\common\ANSI\$(O)\cimwin32library.lib
  147. MOENGINE_INC = $(SDK)\MOEngine\Include
  148. MOENGINE_LIB = $(SDK)\MOEngine\$(O)\MOEngine.lib
  149. FRAMEDYN_PRIVATE = $(SDK)\FrameDyn\PRIVATE
  150. FRAMEWORK = $(PROVIDERS)\Framework
  151. FRAMEWORK_MFC_INC = $(FRAMEWORK)\provmfc\include
  152. FRAMEWORK_MFC_LIB = $(FRAMEWORK)\provmfc\$(WMICHARTYPE)\$(O)\provmfc.lib
  153. FRAMEWORK_EXPT_INC = $(FRAMEWORK)\provexpt\include
  154. # Using .obj here since using a lib causes ambiguity when msvcrt.lib is also
  155. # included. This obj has new and delete overrides, and so does msvcrt.lib.
  156. FRAMEWORK_EXPT_LIB = $(FRAMEWORK)\provexpt\$(WMICHARTYPE)\$(O)\provexpt.obj
  157. FRAMEWORK_THRD_INC = $(FRAMEWORK)\thrdlog\include
  158. FRAMEWORK_THRD_LIB = $(FRAMEWORK)\thrdlog\$(WMICHARTYPE)\$(O)\provthrd.lib
  159. FRAMEWORK_PARSER_INC = $(FRAMEWORK)\pathprsr\include
  160. FRAMEWORK_PARSER_LIB = $(FRAMEWORK)\pathprsr\$(WMICHARTYPE)\$(O)\pathprsr.lib
  161. # Using .obj here since using a lib causes ambiguity when msvcrt.lib is also
  162. # included. This obj has new and delete overrides, and so does msvcrt.lib.
  163. COMMON_NEWTHROW_INC = $(COMMON)\NewThrow
  164. COMMON_NEWTHROW_LIB = $(COMMON)\NewThrow\$(O)\NewThrow.obj
  165. CORELIB_INC = $(WINMGMT)\corelib
  166. COMLIB_INC = $(WINMGMT)\comlib
  167. COMDLLSV_LIB = $(WINMGMT)\comlib\comdllsv\$(O)\comdllsv.lib
  168. COMEXESV_LIB = $(WINMGMT)\comlib\comexesv\$(O)\comexesv.lib
  169. COREPROX_INC = $(WINMGMT)\MARSHALERS\COREPROX
  170. COREPROX_LIB = $(WINMGMT)\MARSHALERS\COREPROX\$(O)\fastprox.lib
  171. SAMLIB_INC = $(WINMGMT)\samlib
  172. SAMLIB_LIB = $(WINMGMT)\samlib\$(O)\samlib.lib
  173. LOCALLOC_OBJ = $(WINMGMT)\corelib\$(O)\localloc.obj
  174. ESSCLI_INC = $(WINMGMT)\esscli
  175. ESSCLI_DLL_LIB = $(WINMGMT)\esscli\esscdll\$(O)\esscli.lib
  176. ESSCLI_STATIC_LIB = $(WINMGMT)\esscli\essclib\$(O)\esscli.lib
  177. ESSLIB_INC = $(WINMGMT)\esslib
  178. ESSLIB_LIB = $(WINMGMT)\esslib\$(O)\esslib.lib
  179. MINIMFC_INC = $(WINMGMT)\minimfc
  180. MINIMFC_LIB = $(WINMGMT)\minimfc\$(O)\minimfc.lib
  181. MOFCOMP_DLL_INC = $(WINMGMT)\mofcomp_dll
  182. MOFCOMP_DLL_LIB = $(WINMGMT)\mofcomp_dll\$(O)\mofd.lib
  183. TRANLIB_INC = $(WINMGMT)\MARSHALERS\SHARED
  184. TRANLIB_LIB = $(WINMGMT)\MARSHALERS\SHARED\$(O)\tranlib.lib
  185. WBEMCORE_INC = $(WINMGMT)\coredll
  186. WBEMCORE_WIN2K_LIB = $(WINMGMT)\coredll\Win2K\$(O)\wbemcore.lib
  187. WBEMCORE_WIN9X_LIB = $(WINMGMT)\coredll\Win9x\$(O)\wbemcore.lib
  188. WBEMCORE_MILLEN_LIB = $(WINMGMT)\coredll\Millen\$(O)\wbemcore.lib
  189. WBEMCOMN_INC = $(WINMGMT)\wbemcomn
  190. WBEMCOMN_DLL_LIB = $(WINMGMT)\wbemcomn\comndll\$(O)\wbemcomn.lib
  191. WBEMCOMN_STATIC_LIB = $(WINMGMT)\wbemcomn\comnlib\$(O)\wbemcomn.lib
  192. WBEMESS_INC = $(WINMGMT)\ESS3
  193. WBEMESS_LIB = $(WINMGMT)\ESS3\$(O)\wbemess.lib
  194. WBEMMCP_INC = $(WINMGMT)\MARSHALERS\PROXY
  195. WBEMMSP_INC = $(WINMGMT)\MARSHALERS\STUB
  196. WBEMTEST_INC = $(WINMGMT)\wbemtest
  197. SECOBJ_INC = $(WINMGMT)\SECOBJ
  198. SECOBJ_LIB = $(WINMGMT)\SECOBJ\$(O)\SECOBJ.LIB
  199. NC = $(WINMGMT)\ESSCOMP\NONCOM
  200. NC_COMMON = $(NC)\COMMON
  201. BLOB_DECODER_INC = $(NC)\COMMON\$(O)
  202. BLOB_DECODER_LIB = $(NC)\COMMON\$(O)\BlobDcdr.lib
  203. NC_UTILS = $(NC)\UTILS
  204. NC_UTILS_LIB = $(NC_UTILS)\$(O)\UTILS.LIB
  205. NCOBJAPI_LIB = $(NC)\NCObjAPI\$(O)\NCObjAPI.lib
  206. VSA = $(WINMGMT)\ESSCOMP\VSA
  207. VSA_COMMON = $(VSA)\COMMON
  208. VSA_IDL = $(VSA)\COMMON\$(O)
  209. VSA_LIB = $(VSA)\COMMON\$(O)\LecPlgIn.lib
  210. !if "$(WMIPLATFORM)" == "WIN2K"
  211. WBEMCORE_LIB = $(WBEMCORE_WIN2K_LIB)
  212. CIMWIN32_LIB = $(CIMWIN32_WIN2K_LIB)
  213. !elseif "$(WMIPLATFORM)" == "WINNT"
  214. WBEMCORE_LIB = $(WBEMCORE_WIN2K_LIB)
  215. CIMWIN32_LIB = $(CIMWIN32_WINNT_LIB)
  216. ALT_PROJECT_TARGET=nt4
  217. !elseif "$(WMIPLATFORM)" == "WIN9X"
  218. WBEMCORE_LIB = $(WBEMCORE_WIN9X_LIB)
  219. CIMWIN32_LIB = $(CIMWIN32_ANSI_LIB)
  220. ALT_PROJECT_TARGET=chicago
  221. !elseif "$(WMIPLATFORM)" == "MILLEN"
  222. WBEMCORE_LIB = $(WBEMCORE_MILLEN_LIB)
  223. CIMWIN32_LIB = $(CIMWIN32_ANSI_LIB)
  224. ALT_PROJECT_TARGET=millennium
  225. !else
  226. WBEMCORE_LIB = $(WBEMCORE_WIN2K_LIB)
  227. CIMWIN32_LIB = $(CIMWIN32_WIN2K_LIB)
  228. !endif
  229. BUFFER_OVERFLOW_CHECKS=1