X-Git-Url: https://git.hcoop.net/bpt/guile.git/blobdiff_plain/999f1b26e74a7a8eb9e9e5e479f971e145aa7326..0683c24d323a30de0a44ec754a85af88a48586ea:/guile-readline/Makefile.am diff --git a/guile-readline/Makefile.am b/guile-readline/Makefile.am index 94e6f9741..0c4ca773e 100644 --- a/guile-readline/Makefile.am +++ b/guile-readline/Makefile.am @@ -1,58 +1,77 @@ ## Process this file with Automake to create Makefile.in ## -## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2007, 2008 Free Software Foundation, Inc. +## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2007, 2008, +## 2009, 2010, 2012 Free Software Foundation, Inc. ## -## This file is part of GUILE. +## This file is part of guile-readline. ## -## GUILE is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as -## published by the Free Software Foundation; either version 2, or +## guile-readline is free software; you can redistribute it and/or +## modify it under the terms of the GNU General Public License as +## published by the Free Software Foundation; either version 3, or ## (at your option) any later version. ## -## GUILE is distributed in the hope that it will be useful, but -## WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. +## guile-readline is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. ## -## You should have received a copy of the GNU General Public -## License along with GUILE; see the file COPYING. If not, write +## You should have received a copy of the GNU General Public License +## along with guile-readline; see the file COPYING. If not, write ## to the Free Software Foundation, Inc., 51 Franklin Street, Fifth ## Floor, Boston, MA 02110-1301 USA -SUBDIRS = ice-9 +include $(top_srcdir)/am/snarf +include $(top_srcdir)/am/guilec ## Prevent automake from adding extra -I options DEFS = @DEFS@ @EXTRA_DEFS@ + +# We're at the root of the module hierarchy. +modpath = +SOURCES = + +if HAVE_READLINE + +SOURCES += ice-9/readline.scm + ## Check for headers in $(srcdir)/.., so that #include ## will find MUMBLE.h in this dir when we're ## building. Also look for Gnulib headers in `lib'. -INCLUDES = -I. -I.. -I$(srcdir)/.. \ - -I$(top_srcdir)/lib -I$(top_builddir)/lib +AM_CPPFLAGS = -I. -I.. -I$(srcdir)/.. \ + -I$(top_srcdir)/lib -I$(top_builddir)/lib -GUILE_SNARF = ../libguile/guile-snarf +AM_CFLAGS = $(GCC_CFLAGS) lib_LTLIBRARIES = libguilereadline-v-@LIBGUILEREADLINE_MAJOR@.la libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES = readline.c libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD = \ - ../libguile/libguile.la ../lib/libgnu.la -libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LDFLAGS = -version-info @LIBGUILEREADLINE_INTERFACE@ -export-dynamic -no-undefined + $(READLINE_LIBS) \ + ../libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la ../lib/libgnu.la + +libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LDFLAGS = \ + -version-info @LIBGUILEREADLINE_INTERFACE@ -export-dynamic \ + -no-undefined BUILT_SOURCES = readline.x -pkginclude_HEADERS = readline.h +modincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION) +modinclude_HEADERS = readline.h -snarfcppopts = $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -SUFFIXES = .x +snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) +SUFFIXES += .x .c.x: - $(GUILE_SNARF) -o $@ $< $(snarfcppopts) + $(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts) + +EXTRA_DIST += LIBGUILEREADLINE-VERSION ChangeLog-2008 -EXTRA_DIST = LIBGUILEREADLINE-VERSION ChangeLog-2008 +ETAGS_ARGS += \ + $(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES) -MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) +CLEANFILES += *.x *.go -CLEANFILES = *.x +endif HAVE_READLINE dist-hook: (temp="/tmp/mangle-deps.$$$$"; \