Makefile.am 2.8 KB

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