2017-03-25 06:57:50 +08:00
|
|
|
#******************************************************************************
|
2017-12-13 05:08:38 +08:00
|
|
|
# config.auto.mk Recorder project
|
2017-03-25 06:57:50 +08:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
|
|
|
# File Description:
|
|
|
|
#
|
|
|
|
# Default configuration file invoked when the configuration is unknown
|
|
|
|
# In that case, we pick one based on the uname.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
|
|
|
# (C) 1992-2017 Christophe de Dinechin <christophe@dinechin.org>
|
|
|
|
#This software is licensed under the GNU General Public License v3
|
|
|
|
#See file COPYING for details.
|
|
|
|
#******************************************************************************
|
|
|
|
|
|
|
|
# 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
|
2017-03-25 06:57:50 +08:00
|
|
|
|
|
|
|
# Just in case (leftovers from a former life ;-)
|
|
|
|
BUILDENV_HP-UX=hpux
|
|
|
|
BUILDENV_SunOS=sun
|
|
|
|
|
|
|
|
include $(BUILD)config.$(BUILDENV).mk
|
|
|
|
|
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)"
|