2012-08-10 11:35:38 +02:00
|
|
|
ifeq (${_INCLUDE_MK_GCC_},)
|
|
|
|
_INCLUDE_MK_GCC_=1
|
2011-09-10 02:32:48 +02:00
|
|
|
# osx port install mingw32-gcc
|
|
|
|
CC=i386-mingw32-gcc
|
|
|
|
RANLIB=i386-mingw32-ranlib
|
|
|
|
OSTYPE=windows
|
|
|
|
ONELIB=0
|
|
|
|
LINK=-shared
|
2014-04-18 17:18:48 +02:00
|
|
|
AR=i386-mingw32-ar
|
|
|
|
CC_AR=$(AR) -r ${LIBAR}
|
2011-09-10 02:32:48 +02:00
|
|
|
PICFLAGS=
|
|
|
|
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
|
|
|
CC_LIB=${CC} -shared -o
|
|
|
|
CFLAGS_INCLUDE=-I
|
2013-07-05 00:41:02 +02:00
|
|
|
LDFLAGS+=-static-libgcc
|
2011-09-10 02:32:48 +02:00
|
|
|
LDFLAGS_LINK=-l
|
|
|
|
LDFLAGS_LINKPATH=-L
|
|
|
|
CFLAGS_OPT0=-O0
|
|
|
|
CFLAGS_OPT1=-O1
|
|
|
|
CFLAGS_OPT2=-O2
|
|
|
|
CFLAGS_OPT3=-O3
|
|
|
|
CFLAGS_DEBUG=-g
|
2012-08-10 11:35:38 +02:00
|
|
|
endif
|