|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include $(top_srcdir)/am/snarf |
|
include $(top_srcdir)/am/guilec |
|
|
|
|
|
DEFS = @DEFS@ @EXTRA_DEFS@ |
|
|
|
|
|
modpath = |
|
SOURCES = |
|
|
|
if HAVE_READLINE |
|
|
|
SOURCES += ice-9/readline.scm |
|
|
|
|
|
|
|
|
|
AM_CPPFLAGS = -I. -I.. -I$(srcdir)/.. \ |
|
-I$(top_srcdir)/lib -I$(top_builddir)/lib |
|
|
|
AM_CFLAGS = $(GCC_CFLAGS) |
|
|
|
extensionsdir=$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/extensions |
|
|
|
extensions_LTLIBRARIES = guile-readline.la |
|
|
|
guile_readline_la_SOURCES = readline.c |
|
guile_readline_la_LIBADD = \ |
|
$(READLINE_LIBS) \ |
|
../libguile/libguile-@[email protected] ../lib/libgnu.la |
|
|
|
guile_readline_la_LDFLAGS = -export-dynamic -no-undefined -module |
|
|
|
BUILT_SOURCES = readline.x |
|
|
|
modincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION) |
|
modinclude_HEADERS = readline.h |
|
|
|
snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) |
|
SUFFIXES += .x |
|
.c.x: |
|
$(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts) |
|
|
|
EXTRA_DIST += ChangeLog-2008 |
|
|
|
ETAGS_ARGS += $(guile_readline_la_SOURCES) |
|
|
|
CLEANFILES += *.x *.go |
|
|
|
endif HAVE_READLINE |
|
|
|
dist-hook: |
|
(temp="/tmp/mangle-deps.$$$$"; \ |
|
trap "rm -f $$temp" 0 1 2 15; \ |
|
sed -e 's|\([ ]\)\(\.\./\(\|libguile/\|guile-readline/\)[a-z_-]*\.h\)|\1$$(srcdir)/\2|g' $(distdir)/Makefile.in \ |
|
| sed -e 's|\$$(srcdir)/\(\.\./libguile/\(libpath\|scmconfig\|versiondat\)\)|\1|g' \ |
|
| sed -e 's|\.\./guile-readline/\([a-z_-]*\.x\)|\1|g' > $$temp \ |
|
&& chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in) |
|
|
|
|