|
|
@ -62,11 +62,6 @@ RTLIB = /MT |
|
|
|
RTLIBD = /MTd
|
|
|
|
RTLIBD = /MTd
|
|
|
|
!ENDIF |
|
|
|
!ENDIF |
|
|
|
|
|
|
|
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
# Detect compiler version.
|
|
|
|
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
!INCLUDE ..\msvc_ver.inc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
# Verify that current subdir is below the c-ares source one
|
|
|
|
# Verify that current subdir is below the c-ares source one
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
# ---------------------------------------------------------
|
|
|
@ -148,30 +143,13 @@ CFLAGS = /DWIN32 |
|
|
|
EX_LIBS_REL = ws2_32.lib advapi32.lib kernel32.lib iphlpapi.lib
|
|
|
|
EX_LIBS_REL = ws2_32.lib advapi32.lib kernel32.lib iphlpapi.lib
|
|
|
|
EX_LIBS_DBG = ws2_32.lib advapi32.lib kernel32.lib iphlpapi.lib
|
|
|
|
EX_LIBS_DBG = ws2_32.lib advapi32.lib kernel32.lib iphlpapi.lib
|
|
|
|
|
|
|
|
|
|
|
|
# -------------------------------------------------
|
|
|
|
|
|
|
|
# Switches that depend on ancient compiler versions
|
|
|
|
|
|
|
|
# -------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!IF $(CC_VERS_NUM) == 60
|
|
|
|
|
|
|
|
PDB_NONE = /pdb:none
|
|
|
|
|
|
|
|
PDBTYPE_CONSOLIDATE = /pdbtype:consolidate
|
|
|
|
|
|
|
|
!ELSE |
|
|
|
|
|
|
|
!UNDEF PDB_NONE |
|
|
|
|
|
|
|
!UNDEF PDBTYPE_CONSOLIDATE |
|
|
|
|
|
|
|
!ENDIF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!IF $(CC_VERS_NUM) <= 70 |
|
|
|
|
|
|
|
RT_ERROR_CHECKING = /GZ
|
|
|
|
|
|
|
|
!ELSE |
|
|
|
|
|
|
|
RT_ERROR_CHECKING = /RTCsu
|
|
|
|
|
|
|
|
!ENDIF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ----------------------------
|
|
|
|
# ----------------------------
|
|
|
|
# Assorted commands and flags
|
|
|
|
# Assorted commands and flags
|
|
|
|
# ----------------------------
|
|
|
|
# ----------------------------
|
|
|
|
|
|
|
|
|
|
|
|
CC_CMD_REL = cl.exe /nologo $(RTLIB) /DNDEBUG /O2 /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS
|
|
|
|
CC_CMD_REL = cl.exe /nologo $(RTLIB) /DNDEBUG /O2 /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS
|
|
|
|
CC_CMD_DBG = cl.exe /nologo $(RTLIBD) /D_DEBUG /Od /Zi /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS $(RT_ERROR_CHECKING)
|
|
|
|
CC_CMD_DBG = cl.exe /nologo $(RTLIBD) /D_DEBUG /Od /Zi /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /RTCsu
|
|
|
|
CC_CFLAGS = $(CFLAGS) /I. /I../src/lib /I../include /I $(GTEST_ROOT)/include /W3 /EHsc /FD
|
|
|
|
CC_CFLAGS = $(CFLAGS) /I. /I../src/lib /I../include /I $(GTEST_ROOT)/include /W3 /EHsc /FD
|
|
|
|
|
|
|
|
|
|
|
|
RC_CMD_REL = rc.exe /l 0x409 /d "NDEBUG"
|
|
|
|
RC_CMD_REL = rc.exe /l 0x409 /d "NDEBUG"
|
|
|
@ -181,8 +159,8 @@ LINK_CMD_LIB = link.exe /lib /nologo |
|
|
|
LINK_CMD_DLL = link.exe /dll /nologo /incremental:no /fixed:no
|
|
|
|
LINK_CMD_DLL = link.exe /dll /nologo /incremental:no /fixed:no
|
|
|
|
LINK_CMD_EXE = link.exe /nologo /incremental:no /fixed:no /subsystem:console
|
|
|
|
LINK_CMD_EXE = link.exe /nologo /incremental:no /fixed:no /subsystem:console
|
|
|
|
|
|
|
|
|
|
|
|
LINK_CMD_EXE_REL = $(LINK_CMD_EXE) /release $(PDB_NONE)
|
|
|
|
LINK_CMD_EXE_REL = $(LINK_CMD_EXE) /release
|
|
|
|
LINK_CMD_EXE_DBG = $(LINK_CMD_EXE) /debug $(PDBTYPE_CONSOLIDATE)
|
|
|
|
LINK_CMD_EXE_DBG = $(LINK_CMD_EXE) /debug
|
|
|
|
|
|
|
|
|
|
|
|
# ---------------------------------
|
|
|
|
# ---------------------------------
|
|
|
|
# Configuration dependent settings
|
|
|
|
# Configuration dependent settings
|
|
|
@ -213,7 +191,7 @@ CC_CMD = $(CC_CMD_DBG) |
|
|
|
!IF "$(CFG)" == "dll-release" |
|
|
|
!IF "$(CFG)" == "dll-release" |
|
|
|
CARES_TARGET = $(DYN_LIB_REL).dll
|
|
|
|
CARES_TARGET = $(DYN_LIB_REL).dll
|
|
|
|
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY
|
|
|
|
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY
|
|
|
|
CARES_LFLAGS = /release $(EX_LIBS_REL) /implib:$(PROG_OUTDIR)\$(IMP_LIB_REL).lib $(PDB_NONE)
|
|
|
|
CARES_LFLAGS = /release $(EX_LIBS_REL) /implib:$(PROG_OUTDIR)\$(IMP_LIB_REL).lib
|
|
|
|
SPROG_CFLAGS = /DCARES_NO_DEPRECATED
|
|
|
|
SPROG_CFLAGS = /DCARES_NO_DEPRECATED
|
|
|
|
SPROG_LFLAGS = /libpath:$(LIB_OUTDIR) $(EX_LIBS_REL) $(IMP_LIB_REL).lib
|
|
|
|
SPROG_LFLAGS = /libpath:$(LIB_OUTDIR) $(EX_LIBS_REL) $(IMP_LIB_REL).lib
|
|
|
|
CARES_LINK = $(LINK_CMD_DLL)
|
|
|
|
CARES_LINK = $(LINK_CMD_DLL)
|
|
|
@ -226,7 +204,7 @@ RC_CMD = $(RC_CMD_REL) |
|
|
|
!IF "$(CFG)" == "dll-debug" |
|
|
|
!IF "$(CFG)" == "dll-debug" |
|
|
|
CARES_TARGET = $(DYN_LIB_DBG).dll
|
|
|
|
CARES_TARGET = $(DYN_LIB_DBG).dll
|
|
|
|
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY /DDEBUGBUILD
|
|
|
|
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY /DDEBUGBUILD
|
|
|
|
CARES_LFLAGS = /debug $(EX_LIBS_DBG) /implib:$(PROG_OUTDIR)\$(IMP_LIB_DBG).lib /pdb:$(PROG_OUTDIR)\$(DYN_LIB_DBG).pdb $(PDBTYPE_CONSOLIDATE)
|
|
|
|
CARES_LFLAGS = /debug $(EX_LIBS_DBG) /implib:$(PROG_OUTDIR)\$(IMP_LIB_DBG).lib /pdb:$(PROG_OUTDIR)\$(DYN_LIB_DBG).pdb
|
|
|
|
SPROG_CFLAGS = /DCARES_NO_DEPRECATED
|
|
|
|
SPROG_CFLAGS = /DCARES_NO_DEPRECATED
|
|
|
|
SPROG_LFLAGS = /libpath:$(LIB_OUTDIR) $(EX_LIBS_DBG) $(IMP_LIB_DBG).lib
|
|
|
|
SPROG_LFLAGS = /libpath:$(LIB_OUTDIR) $(EX_LIBS_DBG) $(IMP_LIB_DBG).lib
|
|
|
|
CARES_LINK = $(LINK_CMD_DLL)
|
|
|
|
CARES_LINK = $(LINK_CMD_DLL)
|
|
|
|