2021-08-27 00:41:09 +00:00
|
|
|
ifeq (${_INCLUDE_MK_GCC_},)
|
|
|
|
_INCLUDE_MK_GCC_=1
|
2018-01-09 23:59:38 +00:00
|
|
|
CROSS=x86_64-w64-mingw32-
|
|
|
|
CC=${CROSS}gcc
|
|
|
|
RANLIB=${CROSS}ranlib
|
2011-07-12 17:42:20 +00:00
|
|
|
ONELIB=0
|
|
|
|
OSTYPE=windows
|
|
|
|
LINK=
|
2018-01-09 23:59:38 +00:00
|
|
|
AR=${CROSS}ar
|
|
|
|
CC_AR=${AR} -r ${LIBAR}
|
2018-01-10 00:28:55 +00:00
|
|
|
PARTIALLD=${CROSS}ld -r --whole-archive
|
2011-07-12 17:42:20 +00:00
|
|
|
PICFLAGS=
|
2021-11-28 21:10:51 +00:00
|
|
|
EXT_AR=lib
|
2021-08-27 00:41:09 +00:00
|
|
|
EXT_SO=dll
|
2022-12-10 18:23:37 +00:00
|
|
|
CFLAGS+=${PICFLAGS} -MD -DR2__WINDOWS__=1
|
2011-07-12 17:42:20 +00:00
|
|
|
CC_LIB=${CC} -shared -o
|
|
|
|
CFLAGS_INCLUDE=-I
|
2021-08-27 00:41:09 +00:00
|
|
|
LDFLAGS+=-static-libgcc
|
2011-07-12 17:42:20 +00:00
|
|
|
LDFLAGS_LINK=-l
|
|
|
|
LDFLAGS_LINKPATH=-L
|
|
|
|
CFLAGS_OPT0=-O0
|
|
|
|
CFLAGS_OPT1=-O1
|
|
|
|
CFLAGS_OPT2=-O2
|
|
|
|
CFLAGS_OPT3=-O3
|
|
|
|
CFLAGS_DEBUG=-g
|
2021-08-27 00:41:09 +00:00
|
|
|
endif
|