Don't use a sub-`configure' for `guile-readline'.
[bpt/guile.git] / guile-readline / Makefile.am
CommitLineData
c374ab69
MV
1## Process this file with Automake to create Makefile.in
2##
7a5ab369 3## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
c374ab69 4##
b82a8b48 5## This file is part of guile-readline.
cc4c7bd4 6##
b82a8b48
NJ
7## guile-readline is free software; you can redistribute it and/or
8## modify it under the terms of the GNU General Public License as
9## published by the Free Software Foundation; either version 3, or
c374ab69 10## (at your option) any later version.
cc4c7bd4 11##
b82a8b48
NJ
12## guile-readline is distributed in the hope that it will be useful,
13## but WITHOUT ANY WARRANTY; without even the implied warranty of
14## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15## General Public License for more details.
cc4c7bd4 16##
b82a8b48
NJ
17## You should have received a copy of the GNU General Public License
18## along with guile-readline; see the file COPYING. If not, write
92205699
MV
19## to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
20## Floor, Boston, MA 02110-1301 USA
c374ab69 21
0dcee837 22SUBDIRS = ice-9
c374ab69 23
7a5ab369
LC
24if HAVE_READLINE
25
a0599745 26## Prevent automake from adding extra -I options
7ed13800 27DEFS = @DEFS@ @EXTRA_DEFS@
c374ab69
MV
28## Check for headers in $(srcdir)/.., so that #include
29## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
6caac03c 30## building. Also look for Gnulib headers in `lib'.
7a5ab369
LC
31AM_CPPFLAGS = -I. -I.. -I$(srcdir)/.. \
32 -I$(top_srcdir)/lib -I$(top_builddir)/lib
33
34AM_CFLAGS = $(GCC_CFLAGS)
c374ab69
MV
35
36GUILE_SNARF = ../libguile/guile-snarf
37
e5ab7101 38lib_LTLIBRARIES = libguilereadline-v-@LIBGUILEREADLINE_MAJOR@.la
c374ab69 39
e5ab7101 40libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES = readline.c
6caac03c 41libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD = \
7a5ab369
LC
42 $(READLINE_LIBS) \
43 ../libguile/libguile.la ../lib/libgnu.la
44
45libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LDFLAGS = \
46 -version-info @LIBGUILEREADLINE_INTERFACE@ -export-dynamic \
47 -no-undefined
0bb2ba7a 48
c374ab69 49
84a8c61d
MD
50BUILT_SOURCES = readline.x
51
ae9e7aac
MD
52pkginclude_HEADERS = readline.h
53
7a5ab369 54snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
c374ab69
MV
55SUFFIXES = .x
56.c.x:
2c7a286a 57 $(GUILE_SNARF) -o $@ $< $(snarfcppopts)
c374ab69 58
61db429e 59EXTRA_DIST = LIBGUILEREADLINE-VERSION ChangeLog-2008
507af33e 60
7a5ab369 61MKDEP = gcc -M -MG $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
305bf93c
ML
62
63CLEANFILES = *.x
2d72b502 64
7a5ab369
LC
65endif HAVE_READLINE
66
2d72b502
MD
67dist-hook:
68 (temp="/tmp/mangle-deps.$$$$"; \
69 trap "rm -f $$temp" 0 1 2 15; \
70 sed -e 's|\([ ]\)\(\.\./\(\|libguile/\|guile-readline/\)[a-z_-]*\.h\)|\1$$(srcdir)/\2|g' $(distdir)/Makefile.in \
71 | sed -e 's|\$$(srcdir)/\(\.\./libguile/\(libpath\|scmconfig\|versiondat\)\)|\1|g' \
72 | sed -e 's|\.\./guile-readline/\([a-z_-]*\.x\)|\1|g' > $$temp \
7ceac84e 73 && chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in)
0dcee837 74