File: Makefile.am

package info (click to toggle)
babel 0.10.2-1
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 43,932 kB
  • ctags: 29,707
  • sloc: java: 74,695; ansic: 73,142; cpp: 40,649; sh: 18,411; f90: 10,062; fortran: 6,727; python: 6,406; makefile: 3,866; xml: 118; perl: 48
file content (65 lines) | stat: -rw-r--r-- 2,410 bytes parent folder | download
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
##
## 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 libdecaf example
##

AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo no-installman \
                   no-texinfo.tex 1.7

check_LTLIBRARIES = libdecaf.la

BABELDIR   = $(top_builddir)
INCLUDEDIR = $(top_builddir)/lib/sidlstubs/Cxx
LIBSIDL    = $(top_builddir)/runtime/sidl/libsidl.la
LIBSIDLSTUBS =$(top_builddir)/lib/sidlstubs/Cxx/libsidlstub_cxx.la

libdecaf_la_SOURCES      = $(IMPLSRCS) $(IMPLHDRS)
nodist_libdecaf_la_SOURCES = $(STUBSRCS) $(STUBHDRS) $(IORSRCS) $(IORHDRS) $(SKELSRCS)
libdecaf_la_LIBADD       = $(LIBSIDLSTUBS) $(LIBSIDL)
libdecaf_la_LDFLAGS      = -no-undefined -rpath `pwd`/.libs -release @VERSION@ -module 

EXTRA_DIST =  decaf_aux.hh decaf.sidl babel.make 
AM_CPPFLAGS   = -I. -I$(INCLUDEDIR)

$(IORSRCS) $(STUBSRCS) $(SKELSRCS) $(IMPLSRCS): babel-stamp
	@if test -f $@; then \
	  touch $@; \
	 else \
	  rm -f babel-stamp; \
	  $(MAKE) $(AM_MAKEFLAGS) babel-stamp; \
	fi 

babel-stamp: $(srcdir)/decaf.sidl
	@rm -f babel-temp
	touch babel-temp
	rm -f ../repository/decaf*.xml
	$(SHELL) $(BABELDIR)/bin/babel --text=xml --repository-path=../repository \
	  --output-directory=../repository $(srcdir)/decaf.sidl
	$(SHELL) $(BABELDIR)/bin/babel --vpath="$(srcdir)" --server=C++ \
	  --suppress-timestamp --repository-path=../repository \
	  -E decaf gov.cca
	rm -f libdecaf.scl
	echo "<?xml version=\"1.0\" ?>" > libdecaf.scl
	echo "<scl>" >> libdecaf.scl
	echo "  <library uri=\""`pwd`"/libdecaf.la\" scope=\"local\" resolution=\"lazy\" >" >> libdecaf.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 }' >> libdecaf.scl
	echo "  </library>" >> libdecaf.scl
	echo "</scl>" >> libdecaf.scl
	@mv -f babel-temp $@

clean-local:
	rm -f babel-stamp babel-temp *.a *.so *.scl
	rm -rf ti_files
	rm -f $(IORHDRS) $(IORSRCS) $(SKELSRCS) $(STUBHDRS) $(STUBSRCS)
	test "X$(srcdir)" = "X." || rm -f $(IMPLSRCS) $(IMPLHDRS) babel.make

include $(srcdir)/babel.make


# Make sure Makefile.in is newer than babel.make
dist-hook:
	touch -c $(distdir)/Makefile.in