#-------------------------------------------------------------------------------
# This file is part of the "Base Functions and Types" library, intended to
# simplify and enhance portability, memory and I/O use for scientific codes.
#
# Copyright (C) 2004 EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#-------------------------------------------------------------------------------
# To disable dependency tracking
# AUTOMAKE_OPTIONS = no-dependencies
AUTOMAKE_OPTIONS = foreign
#include directories
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src
# Add any debug flags
if DEBUG
DEBUG_CPPFLAGS = -DDEBUG
else
DEBUG_CPPFLAGS = -DNDEBUG
endif
# Main part
AM_CPPFLAGS = $(DEBUG_CPPFLAGS)
AM_CFLAGS =
AM_LDFLAGS =
testsdir = $(bindir)/bft_tests
tests_PROGRAMS = \
bft_test \
bft_backtrace_test \
bft_error_test \
bft_mem_usage_test \
bft_mem_test \
bft_printf_test
bft_test_SOURCES = bft_test.c
bft_backtrace_test_SOURCES = bft_backtrace_test.c
bft_error_test_SOURCES = bft_error_test.c
bft_mem_usage_test_SOURCES = bft_mem_usage_test.c
bft_mem_test_SOURCES = bft_mem_test.c
bft_printf_test_SOURCES = bft_printf_test.c
bft_test_LDADD = $(top_builddir)/src/libbft.la
bft_test_LDFLAGS =
bft_backtrace_test_LDADD = $(top_builddir)/src/libbft.la
bft_backtrace_test_LDFLAGS =
bft_error_test_LDADD = $(top_builddir)/src/libbft.la
bft_error_test_LDFLAGS =
bft_mem_usage_test_LDADD = $(top_builddir)/src/libbft.la
bft_mem_usage_test_LDFLAGS =
bft_mem_test_LDADD = $(top_builddir)/src/libbft.la
bft_mem_test_LDFLAGS =
bft_printf_test_LDADD = $(top_builddir)/src/libbft.la
bft_printf_test_LDFLAGS =
# To link without libtool, replace libbft.la above by .libs/libbft.so
# and uncomment the following line:
# bft_test_LINK = $(CC) -o $@
install:
@echo "Test programs not installed by default;" \
echo "use make install-test if preferred."
install-tests: install-testsPROGRAMS
uninstall-tests: uninstall-testsPROGRAMS
syntax highlighted by Code2HTML, v. 0.9.1