2017-03-26 07:02:34 +08:00
|
|
|
#******************************************************************************
|
|
|
|
# Makefile<build> 'build' project
|
|
|
|
#******************************************************************************
|
|
|
|
#
|
|
|
|
# File Description:
|
|
|
|
#
|
|
|
|
# A sample maefile for 'build'
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
|
|
|
# (C) 2017 Christophe de Dinechin <christophe@dinechin.org>
|
|
|
|
# This software is licensed under the GNU General Public License v3
|
|
|
|
# See file COPYING for details.
|
|
|
|
#******************************************************************************
|
|
|
|
|
|
|
|
# Define the path to 'build' (can be a git submodule in your project)
|
|
|
|
BUILD=./
|
|
|
|
|
|
|
|
# Define the source code
|
|
|
|
SOURCES=hello.cpp
|
|
|
|
|
|
|
|
# Define the product of the build (.exe will be removed for Unix builds)
|
|
|
|
PRODUCTS=hello.exe
|
|
|
|
|
2017-05-02 17:08:14 +08:00
|
|
|
# Define configuration options
|
|
|
|
CONFIG= HAVE_<stdio.h> \
|
|
|
|
HAVE_<unistd.h> \
|
|
|
|
HAVE_<nonexistent.h> \
|
|
|
|
HAVE_<sys/time.h> \
|
|
|
|
HAVE_<sys/improbable.h> \
|
2017-05-02 21:39:45 +08:00
|
|
|
HAVE_<iostream> \
|
2017-05-02 22:03:17 +08:00
|
|
|
HAVE_clearenv \
|
|
|
|
HAVE_libm \
|
2017-05-03 20:47:18 +08:00
|
|
|
HAVE_liboony \
|
|
|
|
HAVE_sbrk
|
2017-05-02 17:08:14 +08:00
|
|
|
|
2017-03-26 07:02:34 +08:00
|
|
|
# Define what to test
|
|
|
|
TESTS=product count-characters
|
|
|
|
|
|
|
|
# Define what to benchmark
|
|
|
|
BENCHMARKS=product
|
|
|
|
|
|
|
|
# Include the makefile rules
|
|
|
|
include $(BUILD)rules.mk
|
|
|
|
|
|
|
|
count-characters.runtest:
|
|
|
|
@echo Output has `$(OBJPRODUCTS) | wc -c` characters, should be 35
|
2017-05-02 17:08:14 +08:00
|
|
|
|