2018-04-03 22:44:24 +08:00
|
|
|
#******************************************************************************
|
|
|
|
# Makefile<example> Make-It-Quick project
|
|
|
|
#******************************************************************************
|
|
|
|
#
|
|
|
|
# File Description:
|
|
|
|
#
|
|
|
|
# A makefile example for the Make-It-Quick project
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
|
|
|
# (C) 2017-2018 Christophe de Dinechin <christophe@dinechin.org>
|
|
|
|
# This software is licensed under the GNU General Public License v3
|
|
|
|
# See LICENSE file for details.
|
|
|
|
#******************************************************************************
|
|
|
|
|
|
|
|
# Define the source code
|
|
|
|
SOURCES=hello.cpp
|
2018-04-05 23:25:12 +08:00
|
|
|
SOURCES_world=world.c log-name.c
|
2018-04-03 22:44:24 +08:00
|
|
|
|
|
|
|
# Define libraries we use in that project
|
|
|
|
LIBRARIES=lib1/lib1.dll lib2/lib2.lib
|
|
|
|
|
|
|
|
# Define the product of the build (.exe will be removed for Unix builds)
|
2018-04-05 23:25:12 +08:00
|
|
|
PRODUCTS=hello.exe world.exe
|
2018-04-03 22:44:24 +08:00
|
|
|
|
|
|
|
# Define configuration options
|
|
|
|
CONFIG= <stdio.h> \
|
|
|
|
<unistd.h> \
|
|
|
|
<nonexistent.h> \
|
|
|
|
<sys/time.h> \
|
|
|
|
<sys/improbable.h> \
|
|
|
|
<iostream> \
|
|
|
|
clearenv \
|
|
|
|
libm \
|
|
|
|
liboony \
|
|
|
|
sbrk
|
|
|
|
|
|
|
|
# Define what to test
|
|
|
|
TESTS=product count-characters
|
|
|
|
|
|
|
|
# Define what to benchmark
|
|
|
|
BENCHMARKS=product
|
|
|
|
|
|
|
|
# Define what to test
|
|
|
|
TESTS=product count-characters
|
|
|
|
|
|
|
|
# Define what to benchmark
|
|
|
|
BENCHMARKS=product
|
|
|
|
|
|
|
|
# Include the makefile rules
|
2018-04-05 23:25:12 +08:00
|
|
|
MIQ=make-it-quick/
|
|
|
|
include $(MIQ)rules.mk
|
2018-04-03 22:44:24 +08:00
|
|
|
|
|
|
|
count-characters.test:
|
|
|
|
@echo Output has `$(TEST_ENV) $(OBJPRODUCTS) | wc -c` characters, should be 35
|