2019-03-22 23:35:00 +08:00
|
|
|
# ******************************************************************************
|
|
|
|
# Makefile make-it-quick project
|
|
|
|
# ******************************************************************************
|
2017-03-26 07:02:34 +08:00
|
|
|
#
|
2019-03-22 23:35:00 +08:00
|
|
|
# File description:
|
2017-03-26 07:02:34 +08:00
|
|
|
#
|
2018-04-03 22:44:24 +08:00
|
|
|
# Top-level makefile for 'make-it-quick'
|
2017-03-26 07:02:34 +08:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
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-26 07:02:34 +08:00
|
|
|
|
2019-03-07 01:11:40 +08:00
|
|
|
# Package description
|
|
|
|
PACKAGE_NAME=make-it-quick
|
2021-02-09 18:04:58 +08:00
|
|
|
PACKAGE_VERSION=0.2.7
|
2019-03-07 01:11:40 +08:00
|
|
|
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
|
|
|
|
2020-12-19 03:51:12 +08:00
|
|
|
PREFIX.config=$(PREFIX.share)$(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
|
2020-12-19 03:51:12 +08:00
|
|
|
INSTALL.lib=$(INSTALL.data)
|
2019-03-07 01:21:18 +08:00
|
|
|
|
2019-03-15 17:17:05 +08:00
|
|
|
# Generation of the system setup file
|
|
|
|
SYSTEM_SETUP= \
|
|
|
|
$(SYSCONFIG:%=SYSCONFIG?="$(SYSCONFIG)") \
|
|
|
|
$(PREFIX:%=PREFIX?="$(PREFIX)") \
|
2020-12-19 03:51:12 +08:00
|
|
|
$(PREFIX.bin:%=PREFIX.bin?="$(PREFIX.bin)") \
|
|
|
|
$(PREFIX.sbin:%=PREFIX.sbin?="$(PREFIX.sbin)") \
|
|
|
|
$(PREFIX.hdr:%=PREFIX.hdr?="$(PREFIX.hdr)") \
|
|
|
|
$(PREFIX.share:%=PREFIX.share?="$(PREFIX.share)") \
|
|
|
|
$(PREFIX.lib:%=PREFIX.lib?="$(PREFIX.lib)") \
|
|
|
|
$(PREFIX.dll:%=PREFIX.dll?="$(PREFIX.dll)") \
|
|
|
|
$(PREFIX.libexec:%=PREFIX.libexec?="$(PREFIX.libexec)") \
|
|
|
|
$(PREFIX.man:%=PREFIX.man?="$(PREFIX.man)") \
|
|
|
|
$(PREFIX.doc:%=PREFIX.doc?="$(PREFIX.doc)") \
|
|
|
|
$(PREFIX.var:%=PREFIX.var?="$(PREFIX.var)") \
|
|
|
|
CONFIG_SOURCES="$(PREFIX.config)"
|
2019-03-15 17:17:05 +08:00
|
|
|
|
|
|
|
$(MIQ_OBJDIR)config.system-setup.mk:
|
|
|
|
$(PRINT_GENERATE) ( $(SYSTEM_SETUP:%=echo %;) true ) > $@
|