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 (51 lines) | stat: -rw-r--r-- 1,586 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
##
## File:        Makefile.am
## Package:     Babel Hello example
## 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 C Hello World server
##

check_LTLIBRARIES = libImpl.la

BABELDIR   = $(top_builddir)
INCLUDEDIR = $(top_builddir)/runtime/sidl
LIBSIDL    = $(top_builddir)/runtime/sidl/libsidl.la
PUREBABELGEN = $(IORSRCS) $(SKELSRCS) $(STUBSRCS) $(STUBHDRS) $(IORHDRS) 
BABELGEN = $(IMPLSRCS) $(IMPLHDRS)
CLEANFILES = $(PUREBABELGEN) libImpl.scl babel-stamp babel-temp

nodist_libImpl_la_SOURCES = $(PUREBABELGEN)
dist_libImpl_la_SOURCES = $(BABELGEN)
libImpl_la_LIBADD         = $(LIBSIDL) 
libImpl_la_LDFLAGS      = -no-undefined -rpath `pwd`/.libs -release @VERSION@ -module

EXTRA_DIST = babel.make
AM_CPPFLAGS   = -I$(INCLUDEDIR)

$(PUREBABELGEN) $(BABELGEN) libImpl.scl : babel-stamp
	@if test -f $@; then \
	    touch $@; \
	else \
	    rm -f babel-stamp ; \
	    $(MAKE) $(AM_MAKEFLAGS) babel-stamp; \
	fi

babel-stamp : $(srcdir)/../Hello.sidl
	@rm -f babel-temp
	@touch babel-temp
	$(SHELL) $(BABELDIR)/bin/babel --vpath="$(srcdir)" --server=C \
	  --suppress-timestamp	$(srcdir)/../Hello.sidl
	$(SHELL) $(top_srcdir)/bin/generate_scl libImpl.scl `pwd`/libImpl.la \
	   $(IORSRCS)
	@mv babel-temp $@

clean-local:
	test "X$(srcdir)" = "X." || rm -f $(IMPLHDRS) $(IMPLSRCS) babel.make

include $(srcdir)/babel.make

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