Integrated the guile-srfi package into the Guile distribution.
[bpt/guile.git] / srfi / Makefile.am
1 ## Process this file with Automake to create Makefile.in
2 ##
3 ## Copyright (C) 2001 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., 59 Temple Place, Suite
20 ## 330, Boston, MA 02111-1307 USA
21
22 AUTOMAKE_OPTIONS = foreign
23
24 #info_TEXINFOS = guile-srfi.texi
25
26 ## Prevent automake from adding extra -I options
27 DEFS = @DEFS@
28 ## Check for headers in $(srcdir)/.., so that #include
29 ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
30 ## building.
31 INCLUDES = -I.. -I$(srcdir)/..
32
33
34 lib_LTLIBRARIES = libguile-srfi-srfi-13-14.la
35
36 BUILT_SOURCES = srfi-13.x srfi-14.x
37 libguile_srfi_srfi_13_14_la_SOURCES = srfi-13.x srfi-13.c srf-14.x srfi-14.c
38 libguile_srfi_srfi_13_14_la_LDFLAGS = -version-info 0:0 -export-dynamic
39
40 srfidir = $(datadir)/guile/$(VERSION)/srfi
41 srfi_DATA = srfi-13.scm srfi-14.scm
42
43 EXTRA_DIST = $(srfi_DATA)
44
45 GUILE_SNARF = ../libguile/guile-snarf
46
47 SUFFIXES = .x
48 .c.x:
49 $(GUILE_SNARF) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
50 || { rm $@; false; }
51
52 DISTCLEANFILES = *.x