1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
|
##
## File: Makefile.am
## Package: Babel makefiles
## Revision: $Revision: 4434 $
## Modified: $Date: 2005-03-17 09:05:29 -0800 (Thu, 17 Mar 2005) $
## Description: automake makefile to build the sidl runtime library
##
## Copyright (c) 2000-2002, The Regents of the University of Calfornia.
## Produced at the Lawrence Livermore National Laboratory.
## Written by the Components Team <components@llnl.gov>
## UCRL-CODE-2002-054
## All rights reserved.
##
## This file is part of Babel. For more information, see
## http://www.llnl.gov/CASC/components/. Please read the COPYRIGHT file
## for Our Notice and the LICENSE file for the GNU Lesser General Public
## License.
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License (as published by
## the Free Software Foundation) version 2.1 dated February 1999.
##
## This program is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
## conditions of the GNU Lesser General Public License for more details.
##
## You should have recieved a copy of the GNU Lesser General Public License
## along with this program; if not, write to the Free Software Foundation,
## Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dist_data_DATA = sidl.sidl
execincldir = $(exec_prefix)/include
nodist_execincl_HEADERS = babel_config.h
DISTCLEANFILES=babel_config.h
#(gkk) Seems all IOR.c's require sidl_BaseClass__get_data.
#(gkk) So we'll install this one Impl.h.... for now
include_HEADERS = $(STUBHDRS) $(IORHDRS) $(CUSTOMHDRS) sidl_BaseClass_Impl.h
lib_LTLIBRARIES = libsidl.la
nodist_libsidl_la_SOURCES = $(STUBSRCS) $(STUBHDRS) $(IORSRCS) $(IORHDRS) \
$(SKELSRCS) $(SKELHDRS)
libsidl_la_SOURCES = $(IMPLSRCS) $(IMPLHDRS) ltdl.c $(CUSTOMSRCS) $(CUSTOMHDRS)
libsidl_la_DEPENDENCIES = ../sidlx/babel-stamp
libsidl_la_LIBADD = $(LIBADD_DL) $(CHASM_LIBS) $(LIBXML2_LIB)
libsidl_la_LDFLAGS = -no-undefined -release $(VERSION)
$(libsidl_la_OBJECTS) $(nodist_libsidl_la_OBJECTS) : babel_config.h
EXTRA_DIST = $(SRCS_EXCLUDED) ltdl.h ignore_me.h.in \
libsidl.scl.in scl.dtd changeundef.py
AM_CPPFLAGS=$(CHASM_CFLAGS) $(LIBXML2_CFLAGS) $(JNI_INCLUDES) -I$(srcdir)/../sidlx
SRCS_EXCLUDED = $(FORTRAN_EXCLUDED) $(PYTHON_EXCLUDED) $(JAVA_EXCLUDED)
SRCS_INCLUDED = $(FORTRAN_SOURCES) $(PYTHON_SOURCES) $(JAVA_SOURCES)
if SUPPORT_FORTRAN77
FORTRAN_SOURCES = sidlfortran.c sidlf90array.c
else
if SUPPORT_FORTRAN90
FORTRAN_SOURCES = sidlfortran.c sidlf90array.c
else
FORTRAN_EXCLUDED = sidlfortran.c sidlf90array.c
endif
endif
if SUPPORT_PYTHON
PYTHON_SOURCES = sidl_Python.c
else
PYTHON_EXCLUDED = sidl_Python.c
endif
if SUPPORT_JAVA
JAVA_SOURCES = sidl_Java.c
else
JAVA_EXCLUDED = sidl_Java.c
endif
CUSTOMHDRS = \
sidlArray.h \
sidlAsserts.h \
sidlAssertUtils.h \
sidlMemory.h \
sidl_Exception.h \
sidlType.h \
sidl_search_scl.h \
sidlfortran.h \
sidlf90array.h \
sidl_Java.h \
sidl_Python.h \
sidl_String.h \
sidl_bool_IOR.h \
sidl_char_IOR.h \
sidl_dcomplex_IOR.h \
sidl_double_IOR.h \
sidl_fcomplex_IOR.h \
sidl_float_IOR.h \
sidl_header.h \
sidl_int_IOR.h \
sidl_long_IOR.h \
sidl_opaque_IOR.h \
sidl_string_IOR.h \
sidl_interface_IOR.h \
sidl_ucxx.hh \
sidl_cxx.hh \
sidl_thread.h \
sidl_net.h \
sidl_hashtable.h \
sidl_hashtable_private.h
CUSTOMSRCS = \
$(FORTRAN_SOURCES) \
$(JAVA_SOURCES) \
$(PYTHON_SOURCES) \
sidlAssertUtils.c \
sidl_String.c \
sidlArray.c \
sidlMemory.c \
sidl_bool_IOR.c \
sidl_search_scl.c \
sidl_char_IOR.c \
sidl_int_IOR.c \
sidl_long_IOR.c \
sidl_float_IOR.c \
sidl_double_IOR.c \
sidl_fcomplex_IOR.c \
sidl_dcomplex_IOR.c \
sidl_opaque_IOR.c \
sidl_string_IOR.c \
sidl_interface_IOR.c \
sidl_thread.c \
sidl_net.c \
sidl_hashtable.c
$(STUBSRCS) $(STUBHDRS) $(IORSRCS) $(IORHDRS) $(SKELSRCS) $(SKELHDRS) $(IMPLSRCS) $(IMPLHDRS) : babel-stamp
@if test -f $@; then \
touch $@; \
else \
rm -f babel-stamp; \
$(MAKE) $(AM_MAKEFLAGS) babel-stamp; \
fi
libsidl.scl:
sed -e 's,@@DIR@@,'`pwd`',g' < $(srcdir)/libsidl.scl.in > libsidl.scl
../sidlx/babel-stamp: babel-stamp
cd ../sidlx && $(MAKE) $(AM_MAKEFLAGS) babel-stamp
if BABEL_RUNTIME_ONLY
babel-stamp:
touch babel-stamp
CLEANFILES = babel-stamp babel-temp
else
babel-stamp: $(srcdir)/sidl.sidl libsidl.scl
@rm -f babel-temp
@touch babel-temp
$(SHELL) ../../bin/babel --suppress-timestamp --no-default-repository\
--generate-sidl-stdlib --vpath=$(srcdir) $(srcdir)/sidl.sidl
@if test "X$(srcdir)" != "X." ; then \
list='$(CUSTOMHDRS)'; \
for i in $$list; do \
echo cp $(srcdir)/$$i . ; \
cp $(srcdir)/$$i . ;\
done; \
fi
@mv -f babel-temp $@
CLEANFILES = babel-stamp babel-temp libsidl.scl $(STUBSRCS) $(STUBHDRS) $(IORSRCS) \
$(IORHDRS) $(SKELHDRS) $(SKELSRCS) libsidl.scl
clean-local:
test "X$(srcdir)" = "X." || rm -f $(IMPLSRCS) $(IMPLHDRS) $(CUSTOMHDRS)
endif
install-data-hook:
sed -e 's,@@DIR@@,$(DESTDIR)$(libdir),g' < $(srcdir)/libsidl.scl.in \
> libsidl_inst.scl
$(INSTALL_DATA) libsidl_inst.scl $(DESTDIR)$(libdir)/libsidl.scl
rm -f libsidl_inst.scl
uninstall-hook:
rm -f $(DESTDIR)$(libdir)/libsidl.scl
babel_config.h: babel_internal.h
sed -e 's,babel_internal,babel_config,g' \
-e 's,PACKAGE,BABEL_PACKAGE,g' \
< $< > $@
AUTOHEADER = @AUTOHEADER@ \
&& cd sidl \
&& @PYTHON@ changeundef.py \
babel_internal.h.in \
&& rm -f babel_internal.h.in.bak
include babel.make
# Make sure Makefile.in is newer than babel.make
dist-hook:
touch -c $(distdir)/Makefile.in
|