############################################################################
#
#   Copyright (C) 1999, Microsoft Corporation.
#
#   All rights reserved.
#
############################################################################

!include $(PROJECT_ROOT)\wmi\wbem\common\makefile.cmn
SOURCES_USED=$(PROJECT_ROOT)\wmi\wbem\common\makefile.cmn

TARGETNAME=wbemcore

TARGETPATH=obj
TARGETTYPE=DYNLINK

# The TARGETLIBS macro specifies additional libraries to link against your target
# image. Each library path specification should contain an asterisk (*)
# where the machine-specific subdirectory name should go.
TARGETLIBS= \
	$(ESSCLI_DLL_LIB) \
	$(WBEMCOMN_DLL_LIB) \
	$(STDLIBRARY_LIB) \
	$(WMIIDL_LIB) \
    $(WMIREPOSITIDL_LIB) \
	$(WBEMINT_LIB) \
	$(COREPROX_LIB) \
	$(SDK_LIB_PATH)\kernel32.lib \
	$(SDK_LIB_PATH)\ntdll.lib \
	$(SDK_LIB_PATH)\advapi32.lib \
	$(SDK_LIB_PATH)\user32.lib \
	$(SDK_LIB_PATH)\version.lib \
	$(SDK_LIB_PATH)\oleaut32.lib \
	$(SDK_LIB_PATH)\ole32.lib \
	$(SDK_LIB_PATH)\uuid.lib \
	$(SDK_LIB_PATH)\vccomsup.lib

# The INCLUDES variable specifies any include paths that are specific to
# this source directory. Separate multiple paths with single
# semicolons. Relative path specifications are okay.
INCLUDES=$(INCLUDES); \
	$(WBEMINT_INC); \
	$(ESSCLI_INC); \
	$(WBEMCORE_INC); \
        $(WMIREPOSITIDL_INC); \
        $(WBEMCOMN_INC); \
	$(MC_INC); \
	$(STDLIBRARY_INC); \
	$(WMIIDL_INC); \
	$(COREPROX_INC); \
	$(WBEMESS_INC); \
        $(COMMON)\wmiutils

# The developer defines the SOURCES macro. It contains a list of all the
# source files for this component. Specify each source file on a separate
# line using the line-continuation character. This minimizes merge
# conflicts if two developers are adding source files to the same component.
SOURCES= \
        coreq.cpp \
        wmitask.cpp \
        crep.cpp \
        localloc.cpp \
	WBEMCORE.RC \
        dynasty.cpp \
        WmiFinalizer.cpp \
        WmiArbitrator.cpp \
        oldsec.cpp \
        coresvc.cpp \
        sysclass.cpp \
	assocqp.cpp \
	assocqe.cpp \
	protoq.cpp \
	intprov.cpp \
	clicnt.cpp \
	wbemname.cpp \
	wbemq.cpp \
	sinks.cpp \
	cfgmgr.cpp \
	decor.cpp \
	callres.cpp \
	olesrvr.cpp \
	login.cpp \
	svcq.cpp \
	qengine.cpp \
	stdclass.cpp \
	secure.cpp \
	stack.cpp \
	wmimerger.cpp \
	mergerthrottling.cpp \
	internalmerger.cpp \
	mergerreq.cpp

C_DEFINES=$(C_DEFINES) /D__WINNT_BUILD__ /DBUILD_CORE /DWMI_NEW_FINALIZER /DUNICODE /D_UNICODE
USE_NATIVE_EH=ASYNC
USE_MSVCRT=1
USE_STL=1
DLLENTRY=_DllMainCRTStartup
DLLDEF=$(O)\wbemcore.def