2005-10-27 Ludovic Courtès <ludovic.courtes@laas.fr>
[bpt/guile.git] / guile-readline / Makefile.am
... / ...
CommitLineData
1## Process this file with Automake to create Makefile.in
2##
3## Copyright (C) 1998, 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
4##
5## This file is part of GUILE.
6##
7## GUILE is free software; you can redistribute it and/or modify
8## it under the terms of the GNU General Public License as
9## published by the Free Software Foundation; either version 2, or
10## (at your option) any later version.
11##
12## GUILE is distributed in the hope that it will be useful, but
13## WITHOUT ANY WARRANTY; without even the implied warranty of
14## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15## GNU General Public License for more details.
16##
17## You should have received a copy of the GNU General Public
18## License along with GUILE; see the file COPYING. If not, write
19## to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
20## Floor, Boston, MA 02110-1301 USA
21
22SUBDIRS = ice-9
23
24## Prevent automake from adding extra -I options
25DEFS = @DEFS@ @EXTRA_DEFS@
26## Check for headers in $(srcdir)/.., so that #include
27## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
28## building.
29INCLUDES = -I.. -I$(srcdir)/..
30
31GUILE_SNARF = ../libguile/guile-snarf
32
33lib_LTLIBRARIES = libguilereadline-v-@LIBGUILEREADLINE_MAJOR@.la
34
35libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES = readline.c
36libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD = ../libguile/libguile.la
37libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LDFLAGS = -version-info @LIBGUILEREADLINE_INTERFACE@ -export-dynamic -no-undefined
38
39
40BUILT_SOURCES = readline.x
41
42pkginclude_HEADERS = readline.h
43
44snarfcppopts = $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
45SUFFIXES = .x
46.c.x:
47 $(GUILE_SNARF) -o $@ $< $(snarfcppopts)
48
49EXTRA_DIST = LIBGUILEREADLINE-VERSION
50
51MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
52
53CLEANFILES = *.x
54
55dist-hook:
56 (temp="/tmp/mangle-deps.$$$$"; \
57 trap "rm -f $$temp" 0 1 2 15; \
58 sed -e 's|\([ ]\)\(\.\./\(\|libguile/\|guile-readline/\)[a-z_-]*\.h\)|\1$$(srcdir)/\2|g' $(distdir)/Makefile.in \
59 | sed -e 's|\$$(srcdir)/\(\.\./libguile/\(libpath\|scmconfig\|versiondat\)\)|\1|g' \
60 | sed -e 's|\.\./guile-readline/\([a-z_-]*\.x\)|\1|g' > $$temp \
61 && chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in)
62