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
|
##
## File: Makefile.am
## Package: Babel examples
## Copyright: (c) 2000-2001 The Regents of the University of California
## Revision: $Revision: 4434 $
## Modified: $Date: 2005-03-17 09:05:29 -0800 (Thu, 17 Mar 2005) $
## Description: automake makefile for cca hello server example
##
if SUPPORT_FORTRAN77
check_LTLIBRARIES = libHelloServer.la
endif
BABELDIR = $(top_builddir)
INCLUDEDIR = $(top_builddir)/runtime/sidl
LIBSIDL = $(top_builddir)/runtime/sidl/libsidl.la
PUREBABELGEN = $(STUBSRCS) $(IORSRCS) $(IORHDRS) $(SKELSRCS)
HANDTUNEDGEN = $(IMPLSRCS)
CLEANFILES = $(PUREBABELGEN) $(STUBDOCS) $(STUBFORTRANINC) babel-temp babel-stamp stamp-installcheck
nodist_libHelloServer_la_SOURCES = $(PUREBABELGEN)
libHelloServer_la_SOURCES = $(HANDTUNEDGEN)
libHelloServer_la_LIBADD = $(LIBSIDL)
libHelloServer_la_LDFLAGS = -no-undefined -rpath `pwd`/.libs -release @VERSION@ -module
libHelloServer_LINK = $(F77LINK)
EXTRA_DIST = hello-server.sidl babel.make
AM_CPPFLAGS = -I. -I$(INCLUDEDIR)
$(PUREBABELGEN) $(HANDTUNEDGEN) : babel-stamp
@if test -f $@; then \
touch $@ ; \
else \
$(MAKE) $(AM_MAKEFLAGS) babel-stamp ;\
fi
babel-stamp: $(srcdir)/hello-server.sidl
@rm -f babel-temp
@touch babel-temp
rm -f ../repository/HelloServer*.xml
$(SHELL) $(BABELDIR)/bin/babel --text=xml \
--repository-path=../repository \
--output-directory=../repository $(srcdir)/hello-server.sidl
$(SHELL) $(BABELDIR)/bin/babel --vpath="$(srcdir)" --server=f77 \
--repository-path=../repository \
--suppress-timestamp HelloServer
rm -f libHelloServer.scl
echo "<?xml version=\"1.0\" ?>" > libHelloServer.scl
echo "<scl>" >> libHelloServer.scl
echo " <library uri=\""`pwd`"/libHelloServer.la\" scope=\"local\" resolution=\"lazy\" >" >> libHelloServer.scl
grep __set_epv $(IORSRCS) /dev/null | awk 'BEGIN {FS=":"} { print $$1}' | sort -u | sed -e 's/_IOR.c//g' -e 's/_/./g' | awk ' { printf " <class name=\"%s\" desc=\"ior/impl\" />\n", $$1 }' >> libHelloServer.scl
echo " </library>" >> libHelloServer.scl
echo "</scl>" >> libHelloServer.scl
@mv -f babel-temp $@
clean-local:
rm -f *.a *.so *.scl
test "X$(srcdir)" = "X." || rm -f $(IMPLSRCS) $(IMPLHDRS) babel.make
include $(srcdir)/babel.make
|