~ubuntu-branches/ubuntu/raring/babel/raring-proposed

« back to all changes in this revision

Viewing changes to regression/include/runUCxx.make

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2008-08-01 07:56:58 UTC
  • mfrom: (3.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080801075658-9ezcrbh8dcs8lg70
Tags: 1.2.0.dfsg-6
Added libparsifal-dev as dependency to libsidl-dev (closes: #483324).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
##
2
 
## File:        make.runCxx
3
 
## Package:     Babel regression checks
4
 
## Revision:    $Revision: 4466 $
5
 
## Modified:    $Date: 2005-03-23 15:02:45 -0800 (Wed, 23 Mar 2005) $
6
 
## Description: automake makefile for run regression tests
7
 
##
8
 
## Copyright (c) 2000-2002, The Regents of the University of Calfornia.
9
 
## Produced at the Lawrence Livermore National Laboratory.
10
 
## Written by the Components Team <components@llnl.gov>
11
 
## UCRL-CODE-2002-054
12
 
## All rights reserved.
13
 
##
14
 
## This file is part of Babel. For more information, see
15
 
## http://www.llnl.gov/CASC/components/. Please read the COPYRIGHT file
16
 
## for Our Notice and the LICENSE file for the GNU Lesser General Public
17
 
## License.
18
 
##
19
 
## This program is free software; you can redistribute it and/or modify it
20
 
## under the terms of the GNU Lesser General Public License (as published by
21
 
## the Free Software Foundation) version 2.1 dated February 1999.
22
 
##
23
 
## This program is distributed in the hope that it will be useful, but
24
 
## WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
25
 
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
26
 
## conditions of the GNU Lesser General Public License for more details.
27
 
##
28
 
## You should have recieved a copy of the GNU Lesser General Public License
29
 
## along with this program; if not, write to the Free Software Foundation,
30
 
## Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31
 
 
32
 
 
33
 
 
34
 
 
35
 
 
36
 
OUTPUTSIDL=$(srcdir)/../../output/output.sidl
37
 
 
38
 
check_PROGRAMS    = $(STATIC_PROGS) $(SHARED_PROGS)
39
 
check_SCRIPTS     = runAll.sh
40
 
check_LTLIBRARIES = libClient.la
41
 
 
42
 
BABELDIR    = $(top_builddir)/bin
43
 
INCLUDEDIR  = $(top_builddir)/lib/sidlstubs/UCxx
44
 
INCLUDEDIR2 = .
45
 
LIBSIDL     = $(top_builddir)/runtime/sidl/libsidl.la
46
 
LIBSIDLSTUB = $(top_builddir)/lib/sidlstubs/UCxx/libsidlstub_ucxx.la
47
 
LIBSYNC     = ../../output/libC/libOutput.la
48
 
PUREBABELGEN=$(STUBSRCS) $(STUBHDRS) $(IORHDRS)
49
 
CLEANFILES=$(PUREBABELGEN) babel-temp babel-stamp \
50
 
        stamp-installcheck core
51
 
 
52
 
if SUPPORT_STATIC
53
 
if SUPPORT_FORTRAN77
54
 
  BABEL_STATIC_F77  = runUCxx2F77 
55
 
else
56
 
  BABEL_STATIC_F77  = 
57
 
endif
58
 
if SUPPORT_FORTRAN90
59
 
  BABEL_STATIC_F90  = runUCxx2F90
60
 
else
61
 
  BABEL_STATIC_F90  = 
62
 
endif
63
 
STATIC_PROGS       = runUCxx2C runUCxx2UCxx runUCxx2Cxx $(BABEL_STATIC_F77) $(BABEL_STATIC_F90)
64
 
 
65
 
runUCxx2C_SOURCES        = $(TESTFILE)
66
 
runUCxx2C_LDFLAGS        = -static
67
 
runUCxx2C_LDADD          = libClient.la ../libC/libImpl.la \
68
 
                          $(LIBSYNC) $(LIBSIDL)
69
 
 
70
 
runUCxx2UCxx_SOURCES      = $(TESTFILE)
71
 
runUCxx2UCxx_LDFLAGS      = -static
72
 
runUCxx2UCxx_LDADD        = libClient.la ../libUCxx/libImpl.la \
73
 
                          $(LIBSYNC) $(LIBSIDL)
74
 
 
75
 
runUCxx2Cxx_SOURCES      = $(TESTFILE)
76
 
runUCxx2Cxx_LDFLAGS      = -static
77
 
runUCxx2Cxx_LDADD        = libClient.la ../libCxx/libImpl.la \
78
 
                          $(LIBSYNC) $(LIBSIDL)
79
 
 
80
 
if SUPPORT_FORTRAN77
81
 
runUCxx2F77_SOURCES      = $(TESTFILE)
82
 
runUCxx2F77_LDFLAGS      = -static
83
 
runUCxx2F77_LDADD        = libClient.la ../libF77/libImpl.la \
84
 
                          $(LIBSYNC) $(LIBSIDL) $(FLIBS)
85
 
endif
86
 
 
87
 
if SUPPORT_FORTRAN90
88
 
runUCxx2F90_SOURCES      = $(TESTFILE)
89
 
runUCxx2F90_LDFLAGS      = -static
90
 
runUCxx2F90_LDADD        = libClient.la ../libF90/libImpl.la \
91
 
                          $(LIBSYNC) $(LIBSIDL) $(FCLIBS)
92
 
endif
93
 
endif
94
 
if SUPPORT_SHARED
95
 
SHARED_PROGS            = runAll
96
 
runAll_SOURCES          = $(TESTFILE)
97
 
runAll_LDFLAGS          = -dynamic
98
 
runAll_LDADD            = libClient.la $(LIBSYNC) $(LIBSIDL)
99
 
endif
100
 
 
101
 
nodist_libClient_la_SOURCES      = $(PUREBABELGEN)
102
 
libClient_la_LIBADD       = $(LIBSIDLSTUB) $(LIBSIDL)
103
 
libClient_la_LDFLAGS      = -no-undefined -rpath `pwd`/.libs \
104
 
                            -release @VERSION@
105
 
EXTRA_DIST = babel.make
106
 
AM_CPPFLAGS   = -I. -I$(INCLUDEDIR) -I$(INCLUDEDIR2)
107
 
 
108
 
$(PUREBABELGEN) : babel-stamp
109
 
        @if test -f $@; then \
110
 
          touch $@; \
111
 
        else \
112
 
          rm -f babel-stamp; \
113
 
          $(MAKE) $(AM_MAKEFLAGS) ; \
114
 
        fi
115
 
 
116
 
babel-stamp: $(SIDLFILE) $(OUTPUTSIDL)
117
 
        @rm -f babel-temp
118
 
        @touch babel-temp
119
 
        $(SHELL) $(BABELDIR)/babel --client=UCxx \
120
 
                --suppress-timestamp --exclude-external $(SIDLFILE) \
121
 
                $(OUTPUTSIDL)
122
 
        @mv -f babel-temp $@
123
 
 
124
 
clean-local:
125
 
        rm -f *.a *.so
126
 
        rm -rf ti_files
127
 
        test "X$(srcdir)" = "X." || rm -f babel.make
128
 
 
129
 
update-babel-make: babel-stamp
130
 
        if test "X$(srcdir)" != "X."; then \
131
 
           cp babel.make $(srcdir); \
132
 
        fi
133
 
 
134
 
check-local:
135
 
        @if test -f stamp-installcheck; then            \
136
 
          echo $(MAKE) $(AM_MAKEFLAGS) clean;           \
137
 
          $(MAKE) $(AM_MAKEFLAGS) clean;                \
138
 
        fi
139
 
        $(MAKE) $(AM_MAKEFLAGS) $(check_LTLIBRARIES) $(check_PROGRAMS) $(check_SCRIPTS) 
140
 
 
141
 
installcheck-local:
142
 
        @if test ! -f stamp-installcheck; then          \
143
 
          echo $(MAKE) $(AM_MAKEFLAGS) clean;           \
144
 
          $(MAKE) $(AM_MAKEFLAGS) clean;                \
145
 
        fi
146
 
        $(MAKE) $(AM_MAKEFLAGS)                         \
147
 
          BABELDIR=$(bindir)                            \
148
 
          LIBSIDL=$(libdir)/libsidl.la                  \
149
 
          INCLUDEDIR=$(includedir)/UCxx                 \
150
 
          LIBSIDLSTUB=$(libdir)/libsidlstub_ucxx.la     \
151
 
        $(check_LTLIBRARIES) $(check_PROGRAMS) $(check_SCRIPTS) 
152
 
        touch stamp-installcheck
153
 
 
154
 
# Make sure Makefile.in is newer than babel.make
155
 
dist-hook:
156
 
        touch -c $(distdir)/Makefile.in