~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/thyra/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
4
 
#np# conditionally.
5
 
 
6
 
# @HEADER
7
 
# ************************************************************************
8
 
9
 
# Thyra: Interfaces and Support Code for the Interoperability of Abstract Numerical Algorithms
10
 
#                 Copyright (2004) Sandia Corporation
11
 
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.
14
 
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.
19
 
#  
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.
24
 
#  
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
28
 
# USA
29
 
# Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
30
 
31
 
# ************************************************************************
32
 
# @HEADER
33
 
 
34
 
## #######################################################################
35
 
## Options to automake (rarely used - don't worry about it)
36
 
## #######################################################################
37
 
AUTOMAKE_OPTIONS = foreign
38
 
 
39
 
## #######################################################################
40
 
## Aclocal command (rarely used - don't worry about it)
41
 
## #######################################################################
42
 
ACLOCAL_AMFLAGS = -I config
43
 
 
44
 
#
45
 
#       I believe that by switching to AUX_DIR(../../config) one 
46
 
#       could get rid of these.
47
 
#
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
58
 
 
59
 
 
60
 
#
61
 
#       I believe that by switching to AUX_DIR(../../config) one 
62
 
#       could get rid of these.
63
 
#
64
 
## #######################################################################
65
 
## Tools in the auxillary directory 
66
 
## #######################################################################
67
 
AUX_DIST = config/install-sh config/missing config/mkinstalldirs 
68
 
#
69
 
#  Again, I hope that AUX_DIR(../../config) eliminates these
70
 
#  config/install-sh config/missing config/mkinstalldirs 
71
 
 
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 \
78
 
  $(AUX_DIST) 
79
 
 
80
 
#The following line helps the test harness recover from build errors.
81
 
 
82
 
all-local:
83
 
        @echo "Trilinos package thyra built successfully"
84
 
 
85
 
## #######################################################################
86
 
## Subdirectories to be make'd recursively
87
 
## #######################################################################
88
 
 
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
93
 
#tarball.
94
 
 
95
 
if SUB_TEST
96
 
TEST_SUBDIR=test
97
 
endif
98
 
 
99
 
if SUB_EXAMPLE
100
 
EXAMPLE_SUBDIR=example
101
 
endif
102
 
 
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
108
 
endif
109
 
 
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
114
 
endif
115
 
 
116
 
if BUILD_TESTS
117
 
tests: examples
118
 
        @echo ""
119
 
        @echo "Now building thyra tests."
120
 
        @echo ""
121
 
        cd $(top_builddir)/test && $(MAKE)
122
 
        $(BUILD_THYRA_EPETRA_TESTS)
123
 
        @echo ""
124
 
        @echo "Finished building thyra tests."
125
 
        @echo ""
126
 
else
127
 
tests:
128
 
        @echo "thyra tests were disabled at configure time"
129
 
endif
130
 
 
131
 
if BUILD_EXAMPLES
132
 
examples:
133
 
        @echo ""
134
 
        @echo "Now building thyra examples."
135
 
        @echo ""
136
 
        cd $(top_builddir)/example && $(MAKE)
137
 
        $(BUILD_THYRA_EPETRA_EXAMPLES)
138
 
        $(BUILD_THYRA_EPETRAEXT_EXAMPLES)
139
 
        @echo ""
140
 
        @echo "Finished building thyra examples."
141
 
        @echo ""
142
 
install-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)
146
 
else
147
 
examples:
148
 
        @echo "thyra examples were disabled at configure time"
149
 
 
150
 
install-examples:
151
 
        @echo "thyra examples were disabled at configure time"
152
 
endif
153
 
 
154
 
clean-tests:
155
 
        cd $(top_builddir)/test && $(MAKE) clean
156
 
        $(BUILD_THYRA_EPETRA_TESTS) $(BUILD_THYRA_EPETRA_CLEAN_CMD)
157
 
 
158
 
clean-examples:
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)
162
 
 
163
 
everything:
164
 
        $(MAKE) && $(MAKE) examples && $(MAKE) tests
165
 
 
166
 
clean-everything:
167
 
        $(MAKE) clean-examples && $(MAKE) clean-tests && $(MAKE) clean
168
 
 
169
 
install-everything:
170
 
        $(MAKE) install && $(MAKE) install-examples
171
 
 
172
 
SUBDIRS = src adapters $(EXAMPLE_SUBDIR) $(TEST_SUBDIR)
173
 
 
174
 
## #######################################################################
175
 
## The below targets allow you to use the new
176
 
## testharness to run the test suite as make targets
177
 
## #######################################################################
178
 
 
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
183
 
 
184
 
runtests-serial :
185
 
        $(PERL_EXE) $(TRILINOS_HOME_DIR)/commonTools/test/utilities/runtests \
186
 
  --trilinos-dir=$(TRILINOS_HOME_DIR) \
187
 
  --comm=serial \
188
 
  --build-dir=$(TRILINOS_BUILD_DIR) \
189
 
  --category=$(TRILINOS_TEST_CATEGORY) \
190
 
  --output-dir=@abs_top_builddir@/test/runtests-results \
191
 
  --verbosity=1 \
192
 
  --packages=thyra
193
 
 
194
 
runtests-mpi :
195
 
        $(PERL_EXE) $(TRILINOS_HOME_DIR)/commonTools/test/utilities/runtests \
196
 
  --trilinos-dir=$(TRILINOS_HOME_DIR) \
197
 
  --comm=mpi \
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 \
203
 
  --verbosity=1 \
204
 
  --packages=thyra
205
 
 
206
 
if HAVE_MPI
207
 
THYRA_CHECK_COMM=mpi
208
 
else
209
 
THYRA_CHECK_COMM=serial
210
 
endif
211
 
 
212
 
## #######################################################################
213
 
## Export makefile stuff
214
 
## #######################################################################
215
 
 
216
 
sample-output:
217
 
        cd test ; ../example/generate-sample-output.pl
218
 
        cd example/external ; $(MAKE) sample-makefile
219
 
        cd $(top_builddir)/adapters ; $(MAKE) sample-output
220
 
 
221
 
 
222
 
if USING_EXPORT_MAKEFILES
223
 
 
224
 
install-exec-hook:      
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
235
 
 
236
 
uninstall-hook:
237
 
        rm -f $(includedir)/Makefile.export.thyra
238
 
        rm -f $(includedir)/Makefile.export.thyra.macros
239
 
 
240
 
else 
241
 
 
242
 
install-exec-hook:
243
 
 
244
 
uninstall-hook:
245
 
 
246
 
endif