CC = cl.exe
LINKER = link.exe
MC = mc.exe
MT = mt.exe
RC = rc.exe

MESSAGES_H = messages.h
RESOURCE_H = resource.h
RESOURCE_RC = resource.rc
DESC_H = $(PROJECTNAME)_desc.h
RESOURCE_RES = $(PROJECTNAME).res

INCS = /I $(PROJECTDIR) /I .\ /I ..\include /I ..\..\..\include

COMMON_FLAGS = /nologo /O2 /Ob1 /GF /FD /EHsc /MT /Gy /W3 /c /D _WINDOWS /D _WIN32_WINNT=0x0500 \
	/D _CONSOLE /D UNICODE /D _UNICODE /D HAVE_WINLDAP_H /D HAVE_ASSERT_H \
	/D ZABBIX_SERVICE /D "_VC80_UPGRADE=0x0600" /D HAVE_IPV6

CFLAGS = $(INCS) $(ADD_CFLAGS) $(COMMON_FLAGS) /TC

CPPFLAGS = $(INCS) $(ADD_CFLAGS) $(COMMON_FLAGS) /TP

LFLAGS = /NOLOGO $(ADD_LFLAGS) /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:"$(TARGETNAME).$(TARGETEXT).manifest" \
	/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:CONSOLE /DYNAMICBASE:NO \
	/PDB:$(TARGETDIR)\$(TARGETNAME).pdb

RFLAGS = $(ADD_RFLAGS) /d _WINDOWS
