Skip to content
Snippets Groups Projects
Commit 4fefe203 authored by Thimo Neubauer's avatar Thimo Neubauer
Browse files

always pass the precompiled lib-parts from common which the grid

implementation may use, added comments

[[Imported from SVN: r1085]]
parent 94bdc175
No related branches found
No related tags found
No related merge requests found
# $Id$
#
## estimate which tests can be built
#
if MPI
YPROG = test-yaspgrid
YRUN = run-yaspgrid
......@@ -21,6 +25,10 @@ if UG
UPROG = $(DO_UGTEST)
endif
#
## define the lists of tests to build and run
#
# tests where program to build and program to run are equal
NORMALTESTS = test-sgrid $(APROG) $(UPROG)
......@@ -30,21 +38,28 @@ TESTS = $(NORMALTESTS) $(YRUN)
# programs just to build when "make check" is used
check_PROGRAMS = $(NORMALTESTS) $(YPROG)
# define the programs
#
## common flags
#
# grids may use functions from common (e.g. standard streams)
AM_LDFLAGS = $(top_builddir)/common/libcommon.la
#
## define the programs
#
test_sgrid_SOURCES = test-sgrid.cc
test_sgrid_LDFLAGS = ../../common/libcommon.la
test_yaspgrid_SOURCES = test-yaspgrid.cc
test_yaspgrid_CXXFLAGS = $(AM_CPPFLAGS) $(MPI_CPPFLAGS)
# !! last lib a bit weird...
test_yaspgrid_LDFLAGS = $(MPI_LDFLAGS) $(MPI_LIBS) ../../common/libcommon.la
test_yaspgrid_LDADD = $(MPI_LDFLAGS) $(MPI_LIBS)
# this implicitly checks the autoconf-test as well...
test_albert_SOURCES = test-albert.cc
test_albert_CPPFLAGS = $(AM_CPPFLAGS) $(ALBERT_CPPFLAGS)
test_albert_LDFLAGS = $(ALBERT_LDFLAGS) $(ALBERT_LIBS)
test_albert_LDADD = $(ALBERT_LDFLAGS) $(ALBERT_LIBS)
test_ug_SOURCES = test-ug.cc
test_ug_CPPFLAGS = $(AM_CPPFLAGS) $(UG_CPPFLAGS) $(AMIRAMESH_CPPFLAGS)
test_ug_LDFLAGS = $(UG_LDFLAGS) $(UG_LIBS) $(AMIRAMESH_LDFLAGS) $(AMIRAMESH_LIBS)
test_ug_LDADD = $(UG_LDFLAGS) $(UG_LIBS) $(AMIRAMESH_LDFLAGS) $(AMIRAMESH_LIBS)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment