temporarily disable elisp exception tests
[bpt/guile.git] / guile-readline / Makefile.am
1 ## Process this file with Automake to create Makefile.in
2 ##
3 ## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2007, 2008,
4 ## 2009, 2010, 2012, 2013 Free Software Foundation, Inc.
5 ##
6 ## This file is part of guile-readline.
7 ##
8 ## guile-readline is free software; you can redistribute it and/or
9 ## modify it under the terms of the GNU General Public License as
10 ## published by the Free Software Foundation; either version 3, or
11 ## (at your option) any later version.
12 ##
13 ## guile-readline is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ## General Public License for more details.
17 ##
18 ## You should have received a copy of the GNU General Public License
19 ## along with guile-readline; see the file COPYING. If not, write
20 ## to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 ## Floor, Boston, MA 02110-1301 USA
22
23 include $(top_srcdir)/am/snarf
24 include $(top_srcdir)/am/guilec
25
26 ## Prevent automake from adding extra -I options
27 DEFS = @DEFS@ @EXTRA_DEFS@
28
29 # We're at the root of the module hierarchy.
30 modpath =
31 SOURCES =
32
33 if HAVE_READLINE
34
35 SOURCES += ice-9/readline.scm
36
37 ## Check for headers in $(srcdir)/.., so that #include
38 ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
39 ## building. Also look for Gnulib headers in `lib'.
40 AM_CPPFLAGS = -I. -I.. -I$(srcdir)/.. \
41 -I$(top_srcdir)/lib -I$(top_builddir)/lib
42
43 AM_CFLAGS = $(GCC_CFLAGS)
44
45 extensionsdir=$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/extensions
46
47 extensions_LTLIBRARIES = guile-readline.la
48
49 guile_readline_la_SOURCES = readline.c
50 guile_readline_la_LIBADD = \
51 $(READLINE_LIBS) \
52 ../libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la ../lib/libgnu.la
53
54 guile_readline_la_LDFLAGS = -export-dynamic -no-undefined -module
55
56 BUILT_SOURCES = readline.x
57
58 modincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
59 modinclude_HEADERS = readline.h
60
61 snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
62 SUFFIXES += .x
63 .c.x:
64 $(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts)
65
66 EXTRA_DIST += ChangeLog-2008
67
68 ETAGS_ARGS += $(guile_readline_la_SOURCES)
69
70 CLEANFILES += *.x *.go
71
72 endif HAVE_READLINE
73
74 dist-hook:
75 (temp="/tmp/mangle-deps.$$$$"; \
76 trap "rm -f $$temp" 0 1 2 15; \
77 sed -e 's|\([ ]\)\(\.\./\(\|libguile/\|guile-readline/\)[a-z_-]*\.h\)|\1$$(srcdir)/\2|g' $(distdir)/Makefile.in \
78 | sed -e 's|\$$(srcdir)/\(\.\./libguile/\(libpath\|scmconfig\|versiondat\)\)|\1|g' \
79 | sed -e 's|\.\./guile-readline/\([a-z_-]*\.x\)|\1|g' > $$temp \
80 && chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in)
81