Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ## Process this file with Automake to create Makefile.in
  2. ##
  3. ## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2008 Free Software Foundation, Inc.
  4. ##
  5. ## This file is part of GUILE.
  6. ##
  7. ## GUILE is free software; you can redistribute it and/or modify
  8. ## it under the terms of the GNU General Public License as
  9. ## published by the Free Software Foundation; either version 2, or
  10. ## (at your option) any later version.
  11. ##
  12. ## GUILE is distributed in the hope that it will be useful, but
  13. ## WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ## GNU General Public License for more details.
  16. ##
  17. ## You should have received a copy of the GNU General Public
  18. ## License along with GUILE; 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. SUBDIRS = ice-9
  22. ## Prevent automake from adding extra -I options
  23. DEFS = @DEFS@ @EXTRA_DEFS@
  24. ## Check for headers in $(srcdir)/.., so that #include
  25. ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
  26. ## building.
  27. INCLUDES = -I. -I.. -I$(srcdir)/..
  28. GUILE_SNARF = ../libguile/guile-snarf
  29. lib_LTLIBRARIES = libguilereadline-v-@LIBGUILEREADLINE_MAJOR@.la
  30. libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES = readline.c
  31. libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD = ../libguile/libguile.la
  32. libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LDFLAGS = -version-info @LIBGUILEREADLINE_INTERFACE@ -export-dynamic -no-undefined
  33. BUILT_SOURCES = readline.x
  34. pkginclude_HEADERS = readline.h
  35. snarfcppopts = $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
  36. SUFFIXES = .x
  37. .c.x:
  38. $(GUILE_SNARF) -o $@ $< $(snarfcppopts)
  39. EXTRA_DIST = LIBGUILEREADLINE-VERSION ChangeLog-2008
  40. MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
  41. CLEANFILES = *.x
  42. dist-hook:
  43. (temp="/tmp/mangle-deps.$$$$"; \
  44. trap "rm -f $$temp" 0 1 2 15; \
  45. sed -e 's|\([ ]\)\(\.\./\(\|libguile/\|guile-readline/\)[a-z_-]*\.h\)|\1$$(srcdir)/\2|g' $(distdir)/Makefile.in \
  46. | sed -e 's|\$$(srcdir)/\(\.\./libguile/\(libpath\|scmconfig\|versiondat\)\)|\1|g' \
  47. | sed -e 's|\.\./guile-readline/\([a-z_-]*\.x\)|\1|g' > $$temp \
  48. && chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in)