DAY_1 nl_langinfo constants don't require <nl_types.h>
[bpt/guile.git] / guile-readline / Makefile.am
CommitLineData
c374ab69
MV
1## Process this file with Automake to create Makefile.in
2##
44602b08 3## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2007, 2008, 2009, 2010 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
1549532c
LC
22## Prevent automake from adding extra -I options
23DEFS = @DEFS@ @EXTRA_DEFS@
c374ab69 24
7a5ab369
LC
25if HAVE_READLINE
26
1549532c
LC
27# `ice-9' subdirectory.
28ice9dir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)
29nobase_ice9_DATA = ice-9/readline.scm
30EXTRA_DIST = $(nobase_ice9_DATA)
31
32
c374ab69
MV
33## Check for headers in $(srcdir)/.., so that #include
34## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
6caac03c 35## building. Also look for Gnulib headers in `lib'.
7a5ab369
LC
36AM_CPPFLAGS = -I. -I.. -I$(srcdir)/.. \
37 -I$(top_srcdir)/lib -I$(top_builddir)/lib
38
39AM_CFLAGS = $(GCC_CFLAGS)
c374ab69
MV
40
41GUILE_SNARF = ../libguile/guile-snarf
42
e5ab7101 43lib_LTLIBRARIES = libguilereadline-v-@LIBGUILEREADLINE_MAJOR@.la
c374ab69 44
e5ab7101 45libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES = readline.c
6caac03c 46libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD = \
7a5ab369 47 $(READLINE_LIBS) \
44602b08 48 ../libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la ../lib/libgnu.la
7a5ab369
LC
49
50libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LDFLAGS = \
51 -version-info @LIBGUILEREADLINE_INTERFACE@ -export-dynamic \
52 -no-undefined
0bb2ba7a 53
c374ab69 54
84a8c61d
MD
55BUILT_SOURCES = readline.x
56
718815d7
AW
57modincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
58modinclude_HEADERS = readline.h
ae9e7aac 59
7a5ab369 60snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
c374ab69
MV
61SUFFIXES = .x
62.c.x:
2c7a286a 63 $(GUILE_SNARF) -o $@ $< $(snarfcppopts)
c374ab69 64
1549532c 65EXTRA_DIST += LIBGUILEREADLINE-VERSION ChangeLog-2008
507af33e 66
1549532c
LC
67ETAGS_ARGS = \
68 $(nobase_ice9_DATA) \
69 $(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES)
305bf93c
ML
70
71CLEANFILES = *.x
2d72b502 72
7a5ab369
LC
73endif HAVE_READLINE
74
2d72b502
MD
75dist-hook:
76 (temp="/tmp/mangle-deps.$$$$"; \
77 trap "rm -f $$temp" 0 1 2 15; \
78 sed -e 's|\([ ]\)\(\.\./\(\|libguile/\|guile-readline/\)[a-z_-]*\.h\)|\1$$(srcdir)/\2|g' $(distdir)/Makefile.in \
79 | sed -e 's|\$$(srcdir)/\(\.\./libguile/\(libpath\|scmconfig\|versiondat\)\)|\1|g' \
80 | sed -e 's|\.\./guile-readline/\([a-z_-]*\.x\)|\1|g' > $$temp \
7ceac84e 81 && chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in)
0dcee837 82