Commit | Line | Data |
---|---|---|
c374ab69 MV |
1 | ## Process this file with Automake to create Makefile.in |
2 | ## | |
c64d07d8 | 3 | ## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2007, 2008, |
545d776e | 4 | ## 2009, 2010, 2012, 2013 Free Software Foundation, Inc. |
c374ab69 | 5 | ## |
b82a8b48 | 6 | ## This file is part of guile-readline. |
cc4c7bd4 | 7 | ## |
b82a8b48 NJ |
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 | |
c374ab69 | 11 | ## (at your option) any later version. |
cc4c7bd4 | 12 | ## |
b82a8b48 NJ |
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. | |
cc4c7bd4 | 17 | ## |
b82a8b48 NJ |
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 | |
92205699 MV |
20 | ## to the Free Software Foundation, Inc., 51 Franklin Street, Fifth |
21 | ## Floor, Boston, MA 02110-1301 USA | |
c374ab69 | 22 | |
a572fc95 | 23 | include $(top_srcdir)/am/snarf |
62651cb3 | 24 | include $(top_srcdir)/am/guilec |
a572fc95 | 25 | |
1549532c LC |
26 | ## Prevent automake from adding extra -I options |
27 | DEFS = @DEFS@ @EXTRA_DEFS@ | |
c374ab69 | 28 | |
62651cb3 AW |
29 | # We're at the root of the module hierarchy. |
30 | modpath = | |
31 | SOURCES = | |
7a5ab369 | 32 | |
62651cb3 | 33 | if HAVE_READLINE |
1549532c | 34 | |
62651cb3 | 35 | SOURCES += ice-9/readline.scm |
1549532c | 36 | |
c374ab69 MV |
37 | ## Check for headers in $(srcdir)/.., so that #include |
38 | ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're | |
6caac03c | 39 | ## building. Also look for Gnulib headers in `lib'. |
7a5ab369 LC |
40 | AM_CPPFLAGS = -I. -I.. -I$(srcdir)/.. \ |
41 | -I$(top_srcdir)/lib -I$(top_builddir)/lib | |
42 | ||
43 | AM_CFLAGS = $(GCC_CFLAGS) | |
c374ab69 | 44 | |
545d776e | 45 | extensionsdir=$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/extensions |
c374ab69 | 46 | |
545d776e AW |
47 | extensions_LTLIBRARIES = guile-readline.la |
48 | ||
49 | guile_readline_la_SOURCES = readline.c | |
50 | guile_readline_la_LIBADD = \ | |
7a5ab369 | 51 | $(READLINE_LIBS) \ |
44602b08 | 52 | ../libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la ../lib/libgnu.la |
7a5ab369 | 53 | |
545d776e | 54 | guile_readline_la_LDFLAGS = -export-dynamic -no-undefined -module |
c374ab69 | 55 | |
84a8c61d MD |
56 | BUILT_SOURCES = readline.x |
57 | ||
718815d7 AW |
58 | modincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION) |
59 | modinclude_HEADERS = readline.h | |
ae9e7aac | 60 | |
7a5ab369 | 61 | snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) |
62651cb3 | 62 | SUFFIXES += .x |
c374ab69 | 63 | .c.x: |
a572fc95 | 64 | $(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts) |
c374ab69 | 65 | |
545d776e | 66 | EXTRA_DIST += ChangeLog-2008 |
507af33e | 67 | |
545d776e | 68 | ETAGS_ARGS += $(guile_readline_la_SOURCES) |
305bf93c | 69 | |
c64d07d8 | 70 | CLEANFILES += *.x *.go |
2d72b502 | 71 | |
7a5ab369 LC |
72 | endif HAVE_READLINE |
73 | ||
2d72b502 MD |
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 \ | |
7ceac84e | 80 | && chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in) |
0dcee837 | 81 |