2017-03-26 07:02:34 +08:00
|
|
|
#******************************************************************************
|
2018-04-03 22:44:24 +08:00
|
|
|
# Makefile<make-it-quick> Make-It-Quick project
|
2017-03-26 07:02:34 +08:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
|
|
|
# File Description:
|
|
|
|
#
|
2018-04-03 22:44:24 +08:00
|
|
|
# Top-level makefile for 'make-it-quick'
|
2017-03-26 07:02:34 +08:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
2018-04-03 21:15:09 +08:00
|
|
|
# (C) 2017-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-26 07:02:34 +08:00
|
|
|
#******************************************************************************
|
|
|
|
|
2019-03-07 01:11:40 +08:00
|
|
|
# Package description
|
|
|
|
PACKAGE_NAME=make-it-quick
|
|
|
|
PACKAGE_DESCRIPTION=A simple auto-configuring build system for C and C++ programs
|
|
|
|
PACKAGE_URL=http://github.com/c3d/make-it-quick
|
|
|
|
|
2018-04-03 22:44:24 +08:00
|
|
|
# Things to install
|
|
|
|
HDR_INSTALL= \
|
2018-04-04 01:10:42 +08:00
|
|
|
rules.mk \
|
2018-04-04 01:23:37 +08:00
|
|
|
config.mk \
|
|
|
|
$(wildcard config.*.mk) \
|
2019-03-15 17:17:05 +08:00
|
|
|
$(MIQ_OBJDIR)config.system-setup.mk
|
2018-04-04 01:10:42 +08:00
|
|
|
|
2019-03-15 17:17:05 +08:00
|
|
|
PREFIX_CONFIG=$(PREFIX_SHR)$(PACKAGE_DIR)config/
|
|
|
|
PACKAGE_INSTALL_LIB=$(DESTDIR)$(PREFIX_CONFIG)
|
2018-04-04 01:10:42 +08:00
|
|
|
LIB_INSTALL=$(wildcard config/check*.c)
|
2019-03-15 19:10:44 +08:00
|
|
|
DOC_INSTALL= README.md AUTHORS NEWS
|
2018-05-17 20:30:19 +08:00
|
|
|
TESTS=example/
|
2018-04-03 22:44:24 +08:00
|
|
|
|
2019-03-15 17:17:05 +08:00
|
|
|
# Make sure we generate the config.system
|
|
|
|
MIQ_MAKEFILE_INSTALL=yes
|
|
|
|
|
2018-04-05 23:25:12 +08:00
|
|
|
MIQ=./
|
2019-03-15 17:17:05 +08:00
|
|
|
-include configured.mk
|
2018-04-05 23:25:12 +08:00
|
|
|
include $(MIQ)rules.mk
|
2017-03-26 07:02:34 +08:00
|
|
|
|
2019-03-07 01:21:18 +08:00
|
|
|
# Install the check*.c files as data
|
|
|
|
INSTALL_LIB=$(INSTALL_DATA)
|
|
|
|
|
2019-03-15 17:17:05 +08:00
|
|
|
# Generation of the system setup file
|
|
|
|
SYSTEM_SETUP= \
|
|
|
|
$(SYSCONFIG:%=SYSCONFIG?="$(SYSCONFIG)") \
|
|
|
|
$(PREFIX:%=PREFIX?="$(PREFIX)") \
|
|
|
|
$(PREFIX_BIN:%=PREFIX_BIN?="$(PREFIX_BIN)") \
|
|
|
|
$(PREFIX_SBIN:%=PREFIX_SBIN?="$(PREFIX_SBIN)") \
|
|
|
|
$(PREFIX_HDR:%=PREFIX_HDR?="$(PREFIX_HDR)") \
|
|
|
|
$(PREFIX_SHR:%=PREFIX_SHR?="$(PREFIX_SHR)") \
|
|
|
|
$(PREFIX_LIB:%=PREFIX_LIB?="$(PREFIX_LIB)") \
|
|
|
|
$(PREFIX_DLL:%=PREFIX_DLL?="$(PREFIX_DLL)") \
|
|
|
|
$(PREFIX_LIBEXEC:%=PREFIX_LIBEXEC?="$(PREFIX_LIBEXEC)") \
|
|
|
|
$(PREFIX_MAN:%=PREFIX_MAN?="$(PREFIX_MAN)") \
|
2019-03-15 19:10:44 +08:00
|
|
|
$(PREFIX_DOC:%=PREFIX_DOC?="$(PREFIX_DOC)") \
|
2019-03-15 17:17:05 +08:00
|
|
|
$(PREFIX_VAR:%=PREFIX_VAR?="$(PREFIX_VAR)") \
|
|
|
|
CONFIG_SOURCES="$(PREFIX_CONFIG)"
|
|
|
|
|
|
|
|
$(MIQ_OBJDIR)config.system-setup.mk:
|
|
|
|
$(PRINT_GENERATE) ( $(SYSTEM_SETUP:%=echo %;) true ) > $@
|