make-it-quick/config.auto.mk

49 lines
1.7 KiB
Makefile

#******************************************************************************
# config.auto.mk Make-It-Quick project
#******************************************************************************
#
# File Description:
#
# Default configuration file invoked when the configuration is unknown
# In that case, we pick one based on the uname.
#
#
#
#
#
#
#******************************************************************************
# (C) 1992-2018 Christophe de Dinechin <christophe@dinechin.org>
# This software is licensed under the GNU General Public License v3
# See LICENSE file for details.
#******************************************************************************
# Identification of the default build environment
BUILDENV=$(BUILDENV_$(shell uname -s | sed s/CYGWIN.*/Cygwin/ | sed s/MINGW.*/MinGW/ | sed s/MSYS.*/MSYS/g))
BUILDENV_Darwin=$(shell clang --version > /dev/null 2>&1 && echo macosx-clang || echo macosx)
BUILDENV_Linux=linux
BUILDENV_Cygwin=cygwin
BUILDENV_MinGW=mingw
BUILDENV_MSYS=msys
# Just in case (leftovers from a former life ;-)
BUILDENV_HP-UX=hpux
BUILDENV_SunOS=sun
include $(MIQ)config.$(BUILDENV).mk
# Make sure 'all' remains the first target seen
all: $(TARGET)
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)"