* Makefile.am (DEFS): Added. automake adds -I options to DEFS,
[bpt/guile.git] / guile-readline / Makefile.am
CommitLineData
c374ab69
MV
1## Process this file with Automake to create Makefile.in
2##
507af33e 3## Copyright (C) 1998, 1999 Free Software Foundation, Inc.
c374ab69
MV
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., 59 Temple Place, Suite
20## 330, Boston, MA 02111-1307 USA
21
22AUTOMAKE_OPTIONS = foreign
23
a0599745
MD
24## Prevent automake from adding extra -I options
25DEFS = @DEFS@
c374ab69
MV
26## Check for headers in $(srcdir)/.., so that #include
27## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
28## building.
a0599745 29INCLUDES = -I.. -I$(srcdir)/..
c374ab69
MV
30
31GUILE_SNARF = ../libguile/guile-snarf
32
33lib_LTLIBRARIES = libguilereadline.la
34
35libguilereadline_la_SOURCES = readline.h readline.c
36
84a8c61d
MD
37BUILT_SOURCES = readline.x
38
ae9e7aac
MD
39pkginclude_HEADERS = readline.h
40
370b47a8
MV
41ice9dir = $(datadir)/guile/$(VERSION)/ice-9
42ice9_DATA = readline.scm
c374ab69
MV
43
44SUFFIXES = .x
45.c.x:
ca95609d
MD
46 $(GUILE_SNARF) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
47 || { rm $@; false; }
c374ab69 48
370b47a8 49EXTRA_DIST = readline.scm
507af33e
JB
50
51DISTCLEANFILES = *.x