1
#np# Typically the only line that needs to be edited in this file is the last
2
#np# line. Set 'SUBDIRS= (list all subdirectories that are autotool'ed here)'
3
#np# List all subdirectories even if one or more are configured/built only
7
# ************************************************************************
9
# Thyra: Interfaces and Support Code for the Interoperability of Abstract Numerical Algorithms
10
# Copyright (2004) Sandia Corporation
12
# Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
13
# license for use of this work by or on behalf of the U.S. Government.
15
# This library is free software; you can redistribute it and/or modify
16
# it under the terms of the GNU Lesser General Public License as
17
# published by the Free Software Foundation; either version 2.1 of the
18
# License, or (at your option) any later version.
20
# This library is distributed in the hope that it will be useful, but
21
# WITHOUT ANY WARRANTY; without even the implied warranty of
22
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
# Lesser General Public License for more details.
25
# You should have received a copy of the GNU Lesser General Public
26
# License along with this library; if not, write to the Free Software
27
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
29
# Questions? Contact Michael A. Heroux (maherou@sandia.gov)
31
# ************************************************************************
34
## #######################################################################
35
## Options to automake (rarely used - don't worry about it)
36
## #######################################################################
37
AUTOMAKE_OPTIONS = foreign
39
## #######################################################################
40
## Aclocal command (rarely used - don't worry about it)
41
## #######################################################################
42
ACLOCAL_AMFLAGS = -I config
45
# I believe that by switching to AUX_DIR(../../config) one
46
# could get rid of these.
48
## #######################################################################
49
## Additional files to be included in distribution for 'make dist'
50
## #######################################################################
51
EXTRA_DIST = bootstrap \
52
config/ac_cxx_have_std.m4 config/ac_cxx_have_stl.m4 \
53
config/ac_cxx_namespaces.m4 config/ac_cxx_mutable.m4 \
54
config/depcomp config/generate-makeoptions.pl \
55
config/strip_dup_incl_paths.pl config/strip_dup_libs.pl \
56
config/replace-install-prefix.pl config/string-replace.pl \
57
config/token-replace.pl
61
# I believe that by switching to AUX_DIR(../../config) one
62
# could get rid of these.
64
## #######################################################################
65
## Tools in the auxillary directory
66
## #######################################################################
67
AUX_DIST = config/install-sh config/missing config/mkinstalldirs
69
# Again, I hope that AUX_DIR(../../config) eliminates these
70
# config/install-sh config/missing config/mkinstalldirs
72
## #######################################################################
73
## Files to be deleted by 'make maintainer-clean'
74
## #######################################################################
75
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 autom4te.cache/* \
76
configure config.status config.log \
77
src/common/config-h.in src/common/stamp-h.in \
80
#The following line helps the test harness recover from build errors.
83
@echo "Trilinos package thyra built successfully"
85
## #######################################################################
86
## Subdirectories to be make'd recursively
87
## #######################################################################
89
#We now build tests and examples through separate make targets, rather than
90
#during "make". We still need to conditionally include the test and example
91
#in SUBDIRS, even though BUILD_TESTS and BUILD_EXAMPLES will never be
92
#defined, so that the tests and examples are included in the distribution
100
EXAMPLE_SUBDIR=example
103
if ENABLE_THYRA_EPETRA
104
BUILD_THYRA_EPETRA_TESTS=cd adapters/epetra/test && $(MAKE)
105
BUILD_THYRA_EPETRA_EXAMPLES=cd adapters/epetra/example && $(MAKE)
106
BUILD_THYRA_EPETRA_CLEAN_CMD=clean
107
BUILD_THYRA_EPETRA_INSTALL_CMD=install
110
if ENABLE_THYRA_EPETRAEXT
111
BUILD_THYRA_EPETRAEXT_EXAMPLES=cd adapters/epetraext/example && $(MAKE)
112
BUILD_THYRA_EPETRAEXT_CLEAN_CMD=clean
113
BUILD_THYRA_EPETRAEXT_INSTALL_CMD=install
119
@echo "Now building thyra tests."
121
cd $(top_builddir)/test && $(MAKE)
122
$(BUILD_THYRA_EPETRA_TESTS)
124
@echo "Finished building thyra tests."
128
@echo "thyra tests were disabled at configure time"
134
@echo "Now building thyra examples."
136
cd $(top_builddir)/example && $(MAKE)
137
$(BUILD_THYRA_EPETRA_EXAMPLES)
138
$(BUILD_THYRA_EPETRAEXT_EXAMPLES)
140
@echo "Finished building thyra examples."
143
cd $(top_builddir)/example && $(MAKE) install
144
$(BUILD_THYRA_EPETRA_EXAMPLES) $(BUILD_THYRA_EPETRA_INSTALL_CMD)
145
$(BUILD_THYRA_EPETRAEXT_EXAMPLES) $(BUILD_THYRA_EPETRAEXT_INSTALL_CMD)
148
@echo "thyra examples were disabled at configure time"
151
@echo "thyra examples were disabled at configure time"
155
cd $(top_builddir)/test && $(MAKE) clean
156
$(BUILD_THYRA_EPETRA_TESTS) $(BUILD_THYRA_EPETRA_CLEAN_CMD)
159
cd $(top_builddir)/example && $(MAKE) clean
160
$(BUILD_THYRA_EPETRA_EXAMPLES) $(BUILD_THYRA_EPETRA_CLEAN_CMD)
161
$(BUILD_THYRA_EPETRAEXT_EXAMPLES) $(BUILD_THYRA_EPETRAEXT_CLEAN_CMD)
164
$(MAKE) && $(MAKE) examples && $(MAKE) tests
167
$(MAKE) clean-examples && $(MAKE) clean-tests && $(MAKE) clean
170
$(MAKE) install && $(MAKE) install-examples
172
SUBDIRS = src adapters $(EXAMPLE_SUBDIR) $(TEST_SUBDIR)
174
## #######################################################################
175
## The below targets allow you to use the new
176
## testharness to run the test suite as make targets
177
## #######################################################################
179
TRILINOS_HOME_DIR=@abs_top_srcdir@/../..
180
TRILINOS_BUILD_DIR=@abs_top_builddir@/../..
181
TRILINOS_MPI_MAX_PROC=4
182
TRILINOS_TEST_CATEGORY=INSTALL
185
$(PERL_EXE) $(TRILINOS_HOME_DIR)/commonTools/test/utilities/runtests \
186
--trilinos-dir=$(TRILINOS_HOME_DIR) \
188
--build-dir=$(TRILINOS_BUILD_DIR) \
189
--category=$(TRILINOS_TEST_CATEGORY) \
190
--output-dir=@abs_top_builddir@/test/runtests-results \
195
$(PERL_EXE) $(TRILINOS_HOME_DIR)/commonTools/test/utilities/runtests \
196
--trilinos-dir=$(TRILINOS_HOME_DIR) \
198
--mpi-go=$(TRILINOS_MPI_GO) \
199
--build-dir=$(TRILINOS_BUILD_DIR) \
200
--max-proc=$(TRILINOS_MPI_MAX_PROC) \
201
--category=$(TRILINOS_TEST_CATEGORY) \
202
--output-dir=@abs_top_builddir@/test/runtests-results \
209
THYRA_CHECK_COMM=serial
212
## #######################################################################
213
## Export makefile stuff
214
## #######################################################################
217
cd test ; ../example/generate-sample-output.pl
218
cd example/external ; $(MAKE) sample-makefile
219
cd $(top_builddir)/adapters ; $(MAKE) sample-output
222
if USING_EXPORT_MAKEFILES
225
mkdir -p $(DESTDIR)$(includedir)
226
cp $(top_builddir)/Makefile.export.thyra $(DESTDIR)$(includedir)/.
227
$(PERL_EXE) $(top_srcdir)/config/replace-install-prefix.pl \
228
--exec-prefix=$(exec_prefix) \
229
--my-export-makefile=Makefile.export.thyra \
230
--my-abs-top-srcdir=@abs_top_srcdir@ \
231
--my-abs-incl-dirs=@abs_top_builddir@/src:@abs_top_srcdir@/src:@abs_top_srcdir@/adapters/epetra/src:@abs_top_srcdir@/adapters/tpetra/src:@abs_top_srcdir@/adapters/epetraext/src/model_evaluator \
232
--my-abs-lib-dirs=@abs_top_builddir@/src:@abs_top_builddir@/adapters/epetra/src:@abs_top_builddir@/adapters/tpetra/src:@abs_top_builddir@/adapters/epetraext/src \
233
--dep-package-abs-builddirs=@abs_top_builddir@/../rtop:@abs_top_builddir@/../epetra:@abs_top_builddir@/../tpetra:@abs_top_builddir@/../epetraext
234
$(PERL_EXE) $(top_srcdir)/config/generate-makeoptions.pl $(top_builddir)/src/Makefile THYRA > $(DESTDIR)$(includedir)/Makefile.export.thyra.macros
237
rm -f $(includedir)/Makefile.export.thyra
238
rm -f $(includedir)/Makefile.export.thyra.macros