2017-03-25 06:57:50 +08:00
|
|
|
#******************************************************************************
|
2018-04-03 22:44:24 +08:00
|
|
|
# config.mingw.mk Make-It-Quick project
|
2017-03-25 06:57:50 +08:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
|
|
|
# File Description:
|
|
|
|
#
|
|
|
|
# Configuration file when building with MinGW
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
2018-04-03 21:15:09 +08:00
|
|
|
# (C) 1992-2018 Christophe de Dinechin <christophe@dinechin.org>
|
2018-04-03 22:44:24 +08:00
|
|
|
# This software is licensed under the GNU General Public License v3
|
|
|
|
# See LICENSE file for details.
|
2017-03-25 06:57:50 +08:00
|
|
|
#******************************************************************************
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Tools
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2018-04-05 23:25:12 +08:00
|
|
|
DEFINES_BUILDENV_mingw=CONFIG_MINGW UNICODE _WIN32 WIN32
|
|
|
|
OS_NAME_BUILDENV_mingw=windows
|
2017-03-25 06:57:50 +08:00
|
|
|
|
2018-04-05 23:25:12 +08:00
|
|
|
include $(MIQ)config.gnu.mk
|
2017-03-25 06:57:50 +08:00
|
|
|
|
2017-11-09 00:32:08 +08:00
|
|
|
# On Windows, DLLs have to go with the .exe
|
|
|
|
PREFIX_DLL:=$(PREFIX_DLL:$(PREFIX_LIB)=$(PREFIX_BIN))
|
|
|
|
|
2017-03-25 06:57:50 +08:00
|
|
|
# Windows overrides for extensions
|
|
|
|
EXE_EXT= .exe
|
2017-11-09 00:06:52 +08:00
|
|
|
LIB_EXT= .a
|
2017-03-25 06:57:50 +08:00
|
|
|
DLL_EXT= .dll
|
2017-04-14 01:16:37 +08:00
|
|
|
|
|
|
|
# MinGW has no 'install' program
|
|
|
|
INSTALL= cp
|
2017-12-15 01:29:40 +08:00
|
|
|
|
2017-12-15 18:24:42 +08:00
|
|
|
# Do not add an rpath option on Windows
|
2018-04-05 23:25:12 +08:00
|
|
|
MAKE_DLL= $(LD) -shared $(MIQ_LDFLAGS) $(MIQ_TOLINK)-o $@
|
2017-12-15 18:24:42 +08:00
|
|
|
|
|
|
|
# All code is PIC in MinGW, so avoid a warning
|
|
|
|
CFLAGS_PIC=
|