make-it-quick/Makefile

54 lines
1.3 KiB
Makefile
Raw Normal View History

2017-03-26 07:02:34 +08:00
#******************************************************************************
# Makefile<build> 'build' project
2017-03-26 07:02:34 +08:00
#******************************************************************************
#
# 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
# Define configuration options
CONFIG= <stdio.h> \
<unistd.h> \
<nonexistent.h> \
<sys/time.h> \
<sys/improbable.h> \
<iostream> \
clearenv \
libm \
liboony \
sbrk
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.test:
2017-03-26 07:02:34 +08:00
@echo Output has `$(OBJPRODUCTS) | wc -c` characters, should be 35