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
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>
12
## All rights reserved.
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
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.
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.
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
36
OUTPUTSIDL=$(srcdir)/../../output/output.sidl
38
check_PROGRAMS = $(STATIC_PROGS) $(SHARED_PROGS)
39
check_SCRIPTS = runAll.sh
40
check_LTLIBRARIES = libClient.la
42
BABELDIR = $(top_builddir)/bin
43
INCLUDEDIR = $(top_builddir)/lib/sidlstubs/UCxx
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
54
BABEL_STATIC_F77 = runUCxx2F77
59
BABEL_STATIC_F90 = runUCxx2F90
63
STATIC_PROGS = runUCxx2C runUCxx2UCxx runUCxx2Cxx $(BABEL_STATIC_F77) $(BABEL_STATIC_F90)
65
runUCxx2C_SOURCES = $(TESTFILE)
66
runUCxx2C_LDFLAGS = -static
67
runUCxx2C_LDADD = libClient.la ../libC/libImpl.la \
70
runUCxx2UCxx_SOURCES = $(TESTFILE)
71
runUCxx2UCxx_LDFLAGS = -static
72
runUCxx2UCxx_LDADD = libClient.la ../libUCxx/libImpl.la \
75
runUCxx2Cxx_SOURCES = $(TESTFILE)
76
runUCxx2Cxx_LDFLAGS = -static
77
runUCxx2Cxx_LDADD = libClient.la ../libCxx/libImpl.la \
81
runUCxx2F77_SOURCES = $(TESTFILE)
82
runUCxx2F77_LDFLAGS = -static
83
runUCxx2F77_LDADD = libClient.la ../libF77/libImpl.la \
84
$(LIBSYNC) $(LIBSIDL) $(FLIBS)
88
runUCxx2F90_SOURCES = $(TESTFILE)
89
runUCxx2F90_LDFLAGS = -static
90
runUCxx2F90_LDADD = libClient.la ../libF90/libImpl.la \
91
$(LIBSYNC) $(LIBSIDL) $(FCLIBS)
96
runAll_SOURCES = $(TESTFILE)
97
runAll_LDFLAGS = -dynamic
98
runAll_LDADD = libClient.la $(LIBSYNC) $(LIBSIDL)
101
nodist_libClient_la_SOURCES = $(PUREBABELGEN)
102
libClient_la_LIBADD = $(LIBSIDLSTUB) $(LIBSIDL)
103
libClient_la_LDFLAGS = -no-undefined -rpath `pwd`/.libs \
105
EXTRA_DIST = babel.make
106
AM_CPPFLAGS = -I. -I$(INCLUDEDIR) -I$(INCLUDEDIR2)
108
$(PUREBABELGEN) : babel-stamp
109
@if test -f $@; then \
113
$(MAKE) $(AM_MAKEFLAGS) ; \
116
babel-stamp: $(SIDLFILE) $(OUTPUTSIDL)
119
$(SHELL) $(BABELDIR)/babel --client=UCxx \
120
--suppress-timestamp --exclude-external $(SIDLFILE) \
127
test "X$(srcdir)" = "X." || rm -f babel.make
129
update-babel-make: babel-stamp
130
if test "X$(srcdir)" != "X."; then \
131
cp babel.make $(srcdir); \
135
@if test -f stamp-installcheck; then \
136
echo $(MAKE) $(AM_MAKEFLAGS) clean; \
137
$(MAKE) $(AM_MAKEFLAGS) clean; \
139
$(MAKE) $(AM_MAKEFLAGS) $(check_LTLIBRARIES) $(check_PROGRAMS) $(check_SCRIPTS)
142
@if test ! -f stamp-installcheck; then \
143
echo $(MAKE) $(AM_MAKEFLAGS) clean; \
144
$(MAKE) $(AM_MAKEFLAGS) clean; \
146
$(MAKE) $(AM_MAKEFLAGS) \
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
154
# Make sure Makefile.in is newer than babel.make
156
touch -c $(distdir)/Makefile.in