#-------------------------------------------------------------------------------
#   This file is part of the "Finite Volume Mesh" library, intended to provide
#   finite volume mesh and associated fields I/O and manipulation services.
#
#   Copyright (C) 2004-2006  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) @BFT_CPPFLAGS@ @MPI_CPPFLAGS@
AM_CFLAGS   =
AM_LDFLAGS  = @BFT_CPPFLAGS@ @HDF5_LDFLAGS@ @MED_LDFLAGS@ @CGNS_LDFLAGS@ \
              @MPI_LDFLAGS@
LDADD = $(top_builddir)/src/libfvm.la \
        @BFT_LIBS@ @HDF5_LIBS@ @MED_LIBS@ @CGNS_LIBS@ @MPI_LIBS@

testsdir = $(bindir)/fvm_tests

tests_PROGRAMS = \
fvm_interface_test

fvm_interface_test_SOURCES = fvm_interface_test.c


# To link without libtool, replace libfvm.la above by .libs/libfvm.so
# and uncomment the following line:
# fvm_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