2019-03-22 23:35:00 +08:00
|
|
|
# ******************************************************************************
|
|
|
|
# config.macosx-clang.mk make-it-quick project
|
|
|
|
# ******************************************************************************
|
2017-03-25 06:57:50 +08:00
|
|
|
#
|
2019-03-22 23:35:00 +08:00
|
|
|
# File description:
|
2017-03-25 06:57:50 +08:00
|
|
|
#
|
|
|
|
# This is the shared makefile configuration when building with Clang on OSX
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
2019-03-22 23:35:00 +08:00
|
|
|
# ******************************************************************************
|
|
|
|
# This software is licensed under the GNU General Public License v3
|
|
|
|
# (C) 2017-2019, Christophe de Dinechin <christophe@dinechin.org>
|
|
|
|
# ******************************************************************************
|
|
|
|
# This file is part of make-it-quick
|
2019-03-16 01:54:07 +08:00
|
|
|
#
|
2019-03-22 23:35:00 +08:00
|
|
|
# make-it-quick is free software: you can r redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
2019-03-16 01:54:07 +08:00
|
|
|
#
|
2019-03-22 23:35:00 +08:00
|
|
|
# make-it-quick is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2019-03-16 01:54:07 +08:00
|
|
|
#
|
2019-03-22 23:35:00 +08:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with make-it-quick, in a file named COPYING.
|
|
|
|
# If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
# ******************************************************************************
|
2017-03-25 06:57:50 +08:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Configuration definitions
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2018-04-05 23:25:12 +08:00
|
|
|
DEFINES_BUILDENV_macosx-clang=CONFIG_MACOSX
|
|
|
|
OS_NAME_BUILDENV_macosx-clang=macosx
|
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
|
|
|
|
|
|
|
DLL_EXT= .dylib
|
2019-03-17 02:44:54 +08:00
|
|
|
TEST_ENV= DYLD_LIBRARY_PATH=$(OUTPUT)
|
|
|
|
|
2018-05-26 17:17:39 +08:00
|
|
|
|
|
|
|
# For macOS, the convention is to put the version number before extension,
|
|
|
|
# e.g. where Linux would have libfoo.so.1.3.2, macOS has libfoo.1.3.2.dylib
|
2018-11-10 02:38:44 +08:00
|
|
|
MIQ_DLLBASE= $(@:%.install_dll=%)
|
|
|
|
MIQ_DLLNAME= $(MIQ_DLLBASE:%$(DLL_EXT)=%$(PRODUCTS_VERSION:%=.$(MIQ_V_VERSION))$(DLL_EXT))
|
2018-11-09 19:25:19 +08:00
|
|
|
MIQ_SONAME= $(MIQ_SOBASE:%$(DLL_EXT)=%)$(MIQ_V_MAJOR:%=.%)$(DLL_EXT)
|
2018-05-26 17:17:39 +08:00
|
|
|
MIQ_SONAME_OPT= $(PRODUCTS_VERSION:%=-Wl,-install_name -Wl,$(MIQ_SONAME))
|
2017-03-25 06:57:50 +08:00
|
|
|
|
|
|
|
# On MacOSX, we will use basic frameworks e.g. for string and filesystem functions
|
2018-04-05 23:25:12 +08:00
|
|
|
LDFLAGS_BUILDENV_macosx-clang= -framework CoreFoundation \
|
|
|
|
-framework CoreServices
|
2018-06-20 01:07:49 +08:00
|
|
|
|
|
|
|
# Special case x11 package, missing on macOS, and unusual location - A bit yucky
|
2019-03-19 22:53:05 +08:00
|
|
|
export PKG_CONFIG_PATH:=$(PKG_CONFIG_PATH):$(abspath $(MIQ))
|