Commit | Line | Data |
---|---|---|
c374ab69 MV |
1 | ## Process this file with Automake to create Makefile.in |
2 | ## | |
6caac03c | 3 | ## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2007 Free Software Foundation, Inc. |
c374ab69 MV |
4 | ## |
5 | ## This file is part of GUILE. | |
cc4c7bd4 | 6 | ## |
c374ab69 MV |
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. | |
cc4c7bd4 | 11 | ## |
c374ab69 MV |
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. | |
cc4c7bd4 | 16 | ## |
c374ab69 MV |
17 | ## You should have received a copy of the GNU General Public |
18 | ## License along with GUILE; 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 | 22 | SUBDIRS = ice-9 |
c374ab69 | 23 | |
a0599745 | 24 | ## Prevent automake from adding extra -I options |
7ed13800 | 25 | DEFS = @DEFS@ @EXTRA_DEFS@ |
c374ab69 MV |
26 | ## Check for headers in $(srcdir)/.., so that #include |
27 | ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're | |
6caac03c LC |
28 | ## building. Also look for Gnulib headers in `lib'. |
29 | INCLUDES = -I. -I.. -I$(srcdir)/.. \ | |
30 | -I$(top_srcdir)/lib -I$(top_builddir)/lib | |
c374ab69 MV |
31 | |
32 | GUILE_SNARF = ../libguile/guile-snarf | |
33 | ||
e5ab7101 | 34 | lib_LTLIBRARIES = libguilereadline-v-@LIBGUILEREADLINE_MAJOR@.la |
c374ab69 | 35 | |
e5ab7101 | 36 | libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES = readline.c |
6caac03c LC |
37 | libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD = \ |
38 | ../libguile/libguile.la ../lib/libgnu.la | |
e5ab7101 | 39 | libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LDFLAGS = -version-info @LIBGUILEREADLINE_INTERFACE@ -export-dynamic -no-undefined |
0bb2ba7a | 40 | |
c374ab69 | 41 | |
84a8c61d MD |
42 | BUILT_SOURCES = readline.x |
43 | ||
ae9e7aac MD |
44 | pkginclude_HEADERS = readline.h |
45 | ||
6a9a7bf2 | 46 | snarfcppopts = $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
c374ab69 MV |
47 | SUFFIXES = .x |
48 | .c.x: | |
2c7a286a | 49 | $(GUILE_SNARF) -o $@ $< $(snarfcppopts) |
c374ab69 | 50 | |
0dcee837 | 51 | EXTRA_DIST = LIBGUILEREADLINE-VERSION |
507af33e | 52 | |
305bf93c ML |
53 | MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
54 | ||
55 | CLEANFILES = *.x | |
2d72b502 MD |
56 | |
57 | dist-hook: | |
58 | (temp="/tmp/mangle-deps.$$$$"; \ | |
59 | trap "rm -f $$temp" 0 1 2 15; \ | |
60 | sed -e 's|\([ ]\)\(\.\./\(\|libguile/\|guile-readline/\)[a-z_-]*\.h\)|\1$$(srcdir)/\2|g' $(distdir)/Makefile.in \ | |
61 | | sed -e 's|\$$(srcdir)/\(\.\./libguile/\(libpath\|scmconfig\|versiondat\)\)|\1|g' \ | |
62 | | sed -e 's|\.\./guile-readline/\([a-z_-]*\.x\)|\1|g' > $$temp \ | |
7ceac84e | 63 | && chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in) |
0dcee837 | 64 |