2014-04-11 09:48:37 +02:00
|
|
|
include build/platform-arch.mk
|
|
|
|
ifeq ($(ASM_ARCH), x86)
|
|
|
|
ifeq ($(ENABLE64BIT), Yes)
|
|
|
|
ASMFLAGS += -f win64
|
|
|
|
ASMFLAGS_PLATFORM = -DWIN64
|
|
|
|
CFLAGS += -DWIN64
|
|
|
|
else
|
|
|
|
ASMFLAGS += -f win32 -DPREFIX
|
|
|
|
CFLAGS += -DWIN32
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
CFLAGS += -DWIN32
|
|
|
|
endif
|
|
|
|
ifeq ($(ASM_ARCH), arm)
|
|
|
|
CCAS = gas-preprocessor.pl -as-type armasm -force-thumb -- armasm
|
|
|
|
endif
|
|
|
|
|
2014-02-12 21:12:33 +01:00
|
|
|
CC=cl
|
2013-12-27 23:01:38 +01:00
|
|
|
CXX=cl
|
|
|
|
AR=lib
|
|
|
|
CXX_O=-Fo$@
|
2014-01-17 09:58:13 +01:00
|
|
|
CFLAGS += -nologo -W3 -EHsc -fp:precise -Zc:wchar_t -Zc:forScope -DGTEST_HAS_TR1_TUPLE=0
|
2013-12-27 23:01:38 +01:00
|
|
|
CXX_LINK_O=-nologo -Fe$@
|
|
|
|
AR_OPTS=-nologo -out:$@
|
2014-04-10 03:46:42 +02:00
|
|
|
CFLAGS_OPT=-O2 -Ob1 -Oy- -Zi -GF -Gm- -GS -Gy -DNDEBUG
|
2014-04-29 10:40:32 +02:00
|
|
|
CFLAGS_DEBUG=-Od -Oy- -ZI -RTC1 -D_DEBUG
|
2013-12-27 23:01:38 +01:00
|
|
|
CFLAGS_M32=
|
|
|
|
CFLAGS_M64=
|
|
|
|
LINK_LIB=$(1).lib
|
|
|
|
LIBSUFFIX=lib
|
|
|
|
LIBPREFIX=
|
2014-01-23 15:14:09 +01:00
|
|
|
EXEEXT=.exe
|
2014-03-18 10:21:46 +01:00
|
|
|
OBJ=obj
|
2014-02-19 10:51:50 +01:00
|
|
|
SHAREDLIBSUFFIX=dll
|
|
|
|
SHARED=-LD
|
2014-05-04 14:54:16 +02:00
|
|
|
SHLDFLAGS=-link -def:wels.def -implib:$(PROJECT_NAME)_dll.lib
|
|
|
|
EXTRA_LIBRARY=$(PROJECT_NAME)_dll.lib
|