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

SYNCHRONIZE_DRAIN=1

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

TARGETNAME=wbemess

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.
LINKLIBS=\
	$(COMDLLSV_LIB)
TARGETLIBS=\
	$(WBEMCOMN_DLL_LIB) \
	$(ESSCLI_DLL_LIB) \
	$(COREPROX_LIB) \
	$(WMIIDL_LIB) \
	$(WMIMSG_LIB) \
        $(WBEMINT_LIB) \
	$(STDLIBRARY_LIB) \
	$(NCOBJAPI_LIB) \
	$(SDK_LIB_PATH)\user32.lib \
	$(SDK_LIB_PATH)\advapi32.lib \
	$(SDK_LIB_PATH)\uuid.lib \
	$(SDK_LIB_PATH)\ole32.lib \
	$(SDK_LIB_PATH)\oleaut32.lib \
	$(SDK_LIB_PATH)\kernel32.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); \
        $(WMIMSG_INC); \
	$(WBEMCOMN_INC); \
	$(COREPROX_INC); \
	$(ESSCLI_INC); \
	$(COMLIB_INC); \
	$(WBEMINT_INC); \
	$(MC_INC); \
	$(NC_COMMON); \
	$(STDLIBRARY_INC)

# 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= \
        localloc.cpp \
    tempbind.cpp \
    delivrec.cpp \
	evsink.cpp \
    qsink.cpp \
	clscache.cpp \
	binding.cpp \
	evtools.cpp \
	filter.cpp \
	aggreg.cpp \
	poller.cpp \
	provreg.cpp \
	tempfilt.cpp \
	tempcons.cpp \
	eventrep.cpp \
	permbind.cpp \
	corefind.cpp \
	equeue.cpp \
	permcons.cpp \
	permfilt.cpp \
	consprov.cpp \
	wbemtss.cpp \
	essutils.cpp \
	postpone.cpp \
	nsrep.cpp \
	ess.cpp \
	esssink.cpp \
	essmain.cpp \
	tkncache.cpp \
    newobj.cpp \
	NCEvents.cpp \
    Quota.cpp \
	ess.rc
        
# Next, specify options for the compiler using C_DEFINES.
C_DEFINES=$(C_DEFINES) /DUSE_POLARITY /D_UNICODE /DUNICODE
#WIN32_WINNT_VERSION=0x0400
USER_C_FLAGS=/EHa
NTNOFPO=1

# Rem this out to get rid of the non-COM event calls.
C_DEFINES=$(C_DEFINES) /DUSE_NCEVENTS

USE_NATIVE_EH=1
DLLENTRY=_DllMainCRTStartup
USE_MSVCRT=1
# LINKER_STACKSIZE=/DEBUGTYPE:FIXUP

DLLDEF=$(O)\wbemess.def