Makefile.am 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ## Process this file with Automake to create Makefile.in
  2. ##
  3. ## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
  4. ##
  5. ## This file is part of guile-readline.
  6. ##
  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
  10. ## (at your option) any later version.
  11. ##
  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.
  16. ##
  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
  19. ## to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  20. ## Floor, Boston, MA 02110-1301 USA
  21. include $(top_srcdir)/am/snarf
  22. include $(top_srcdir)/am/guilec
  23. ## Prevent automake from adding extra -I options
  24. DEFS = @DEFS@ @EXTRA_DEFS@
  25. # We're at the root of the module hierarchy.
  26. modpath =
  27. SOURCES =
  28. if HAVE_READLINE
  29. SOURCES += ice-9/readline.scm
  30. ## Check for headers in $(srcdir)/.., so that #include
  31. ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
  32. ## building. Also look for Gnulib headers in `lib'.
  33. AM_CPPFLAGS = -I. -I.. -I$(srcdir)/.. \
  34. -I$(top_srcdir)/lib -I$(top_builddir)/lib
  35. AM_CFLAGS = $(GCC_CFLAGS)
  36. lib_LTLIBRARIES = libguilereadline-v-@LIBGUILEREADLINE_MAJOR@.la
  37. libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES = readline.c
  38. libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD = \
  39. $(READLINE_LIBS) \
  40. ../libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la ../lib/libgnu.la
  41. libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LDFLAGS = \
  42. -version-info @LIBGUILEREADLINE_INTERFACE@ -export-dynamic \
  43. -no-undefined
  44. BUILT_SOURCES = readline.x
  45. modincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
  46. modinclude_HEADERS = readline.h
  47. snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
  48. SUFFIXES += .x
  49. .c.x:
  50. $(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts)
  51. EXTRA_DIST += LIBGUILEREADLINE-VERSION ChangeLog-2008
  52. ETAGS_ARGS += \
  53. $(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES)
  54. CLEANFILES += *.x
  55. endif HAVE_READLINE
  56. dist-hook:
  57. (temp="/tmp/mangle-deps.$$$$"; \
  58. trap "rm -f $$temp" 0 1 2 15; \
  59. sed -e 's|\([ ]\)\(\.\./\(\|libguile/\|guile-readline/\)[a-z_-]*\.h\)|\1$$(srcdir)/\2|g' $(distdir)/Makefile.in \
  60. | sed -e 's|\$$(srcdir)/\(\.\./libguile/\(libpath\|scmconfig\|versiondat\)\)|\1|g' \
  61. | sed -e 's|\.\./guile-readline/\([a-z_-]*\.x\)|\1|g' > $$temp \
  62. && chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in)