2019-03-22 23:35:00 +08:00
|
|
|
# ******************************************************************************
|
|
|
|
# config.auto.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
|
|
|
#
|
|
|
|
# Default configuration file invoked when the configuration is unknown
|
|
|
|
# In that case, we pick one based on the uname.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
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
|
|
|
|
|
|
|
# Identification of the default build environment
|
2017-12-13 05:08:38 +08:00
|
|
|
BUILDENV=$(BUILDENV_$(shell uname -s | sed s/CYGWIN.*/Cygwin/ | sed s/MINGW.*/MinGW/ | sed s/MSYS.*/MSYS/g))
|
2017-03-25 06:57:50 +08:00
|
|
|
BUILDENV_Darwin=$(shell clang --version > /dev/null 2>&1 && echo macosx-clang || echo macosx)
|
|
|
|
BUILDENV_Linux=linux
|
|
|
|
BUILDENV_Cygwin=cygwin
|
|
|
|
BUILDENV_MinGW=mingw
|
2017-12-13 05:08:38 +08:00
|
|
|
BUILDENV_MSYS=msys
|
2018-11-21 14:41:05 +08:00
|
|
|
BUILDENV_Haiku=haiku
|
2018-11-21 14:44:49 +08:00
|
|
|
BUILDENV_FreeBSD=bsd
|
2017-03-25 06:57:50 +08:00
|
|
|
|
|
|
|
# Just in case (leftovers from a former life ;-)
|
|
|
|
BUILDENV_HP-UX=hpux
|
|
|
|
BUILDENV_SunOS=sun
|
|
|
|
|
2018-04-05 23:25:12 +08:00
|
|
|
include $(MIQ)config.$(BUILDENV).mk
|
2017-03-25 06:57:50 +08:00
|
|
|
|
2017-03-27 01:10:12 +08:00
|
|
|
# Make sure 'all' remains the first target seen
|
|
|
|
all: $(TARGET)
|
|
|
|
|
2017-03-25 06:57:50 +08:00
|
|
|
hello: warn-buildenv
|
|
|
|
|
|
|
|
warn-buildenv:
|
|
|
|
@$(ECHO) "$(ERR_COLOR)"
|
|
|
|
@$(ECHO) "****************************************************************"
|
|
|
|
@$(ECHO) "* The BUILDENV environment variable is not set"
|
|
|
|
@$(ECHO) "* You will accelerate builds by setting it as appropriate for"
|
|
|
|
@$(ECHO) "* your system. The best guess is BUILDENV=$(BUILDENV)"
|
|
|
|
@$(ECHO) "* Attempting to build $(TARGET) with $(BUILDENV)" DIR=$(DIR)
|
|
|
|
@$(ECHO) "****************************************************************"
|
|
|
|
@$(ECHO) "$(DEF_COLOR)"
|