* Makefile.in: Regenerated.
[bpt/guile.git] / libguile / Makefile.am
CommitLineData
733943b9 1## Process this file with Automake to create Makefile.in
2764bd99
JB
2##
3## Copyright (C) 1998 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
733943b9
TT
21
22AUTOMAKE_OPTIONS = foreign
23
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.
a0e6f509 27INCLUDES = -I.. -I$(srcdir)/.. ${THREAD_CPPFLAGS}
733943b9 28
fef07353
JB
29ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(PROC\|PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/'
30
e13d8dc0 31lib_LTLIBRARIES = libguile.la
549436de
JB
32bin_PROGRAMS = guile
33
34guile_SOURCES = guile.c
a0e6f509 35guile_LDADD = libguile.la ${THREAD_LIBS_LOCAL}
ee2a8b9b
JB
36
37libguile_la_SOURCES = \
4b422a5a 38 alist.c arbiters.c async.c backtrace.c boolean.c chars.c \
09e3ccd7 39 continuations.c debug.c dynl.c dynwind.c eq.c error.c eval.c evalext.c \
4b422a5a
JB
40 feature.c filesys.c fluids.c fports.c gc.c gdbint.c genio.c \
41 gh_data.c gh_eval.c gh_funcs.c gh_init.c gh_io.c gh_list.c \
0e76bf66
MD
42 gh_predicates.c gsubr.c guardians.c hash.c hashtab.c init.c ioext.c \
43 keywords.c list.c load.c macros.c mallocs.c markers.c modules.c net_db.c \
bafece68 44 numbers.c objects.c \
4b422a5a 45 objprop.c options.c pairs.c ports.c posix.c print.c procprop.c \
38be9233
MD
46 procs.c ramap.c random.c read.c readline.c root.c scmsigs.c script.c \
47 simpos.c smob.c socket.c sort.c srcprop.c stackchk.c stacks.c stime.c \
4b422a5a
JB
48 strings.c strop.c strorder.c strports.c struct.c symbols.c tag.c \
49 throw.c unif.c variable.c vectors.c version.c vports.c weaks.c
549436de 50
a3365d47 51BUILT_SOURCES = \
c02daa09 52 cpp_err_symbols.c cpp_sig_symbols.c libpath.h \
4b422a5a 53 alist.x arbiters.x async.x backtrace.x boolean.x chars.x \
09e3ccd7 54 continuations.x debug.x dynl.x dynwind.x eq.x error.x eval.x evalext.x \
4b422a5a
JB
55 feature.x filesys.x fluids.x fports.x gc.x gdbint.x genio.x \
56 gh_data.x gh_eval.x gh_funcs.x gh_init.x gh_io.x gh_list.x \
e98f3cf2 57 gh_predicates.x gsubr.x guardians.x hash.x hashtab.x init.x ioext.x \
0e76bf66 58 iselect.x keywords.x list.x load.x macros.x mallocs.x markers.x modules.x \
bafece68 59 net_db.x numbers.x \
4b422a5a 60 objects.x objprop.x options.x pairs.x ports.x posix.x print.x \
38be9233
MD
61 procprop.x procs.x random.x ramap.x read.x readline.x regex-posix.x \
62 root.x scmsigs.x script.x simpos.x smob.x socket.x sort.x srcprop.x \
63 stackchk.x stacks.x stime.x strings.x strop.x strorder.x strports.x \
64 struct.x symbols.x tag.x threads.x throw.x unif.x variable.x vectors.x \
4b422a5a 65 version.x vports.x weaks.x
a3365d47 66
ee2a8b9b 67EXTRA_libguile_la_SOURCES = _scm.h \
7bfd3b9e 68 strerror.c inet_aton.c putenv.c \
f255378e 69 threads.c alloca.c \
44e8413c 70 regex-posix.c iselect.c
7bfd3b9e
JB
71
72## This is kind of nasty... there are ".c" files that we don't want to
73## compile, since they are #included in threads.c. So instead we list
74## them here. Perhaps we can deal with them normally once the merge
75## seems to be working.
76noinst_HEADERS = coop-threads.c coop-threads.h coop.c
77
78bda5f3 78libguile_la_DEPENDENCIES = @LIBLOBJS@
4a5fa91c 79libguile_la_LIBADD = @LIBLOBJS@
c15f9b9d 80libguile_la_LDFLAGS = -version-info 4:0 -export-dynamic
733943b9
TT
81
82include_HEADERS = libguile.h
83
ee2a8b9b
JB
84# These are headers visible as <guile/mumble.h>
85pkginclude_HEADERS = gh.h
86
733943b9 87# These are headers visible as <libguile/mumble.h>.
5380de6b 88modincludedir = $(includedir)/libguile
99dc0f92
JB
89modinclude_HEADERS = \
90 __scm.h alist.h arbiters.h async.h backtrace.h boolean.h chars.h \
09e3ccd7 91 continuations.h debug.h dynl.h dynwind.h eq.h error.h eval.h evalext.h \
99dc0f92 92 feature.h filesys.h fports.h gc.h gdb_interface.h gdbint.h genio.h \
0e76bf66
MD
93 gsubr.h guardians.h hash.h hashtab.h init.h ioext.h keywords.h list.h \
94 load.h macros.h mallocs.h markers.h modules.h net_db.h numbers.h \
bafece68 95 objects.h objprop.h \
99dc0f92 96 options.h pairs.h ports.h posix.h regex-posix.h print.h procprop.h \
38be9233
MD
97 procs.h random.h ramap.h read.h readline.h root.h scmsigs.h script.h \
98 simpos.h smob.h socket.h sort.h srcprop.h stackchk.h stacks.h stime.h \
99dc0f92
JB
99 strings.h strop.h strorder.h strports.h struct.h symbols.h tag.h \
100 tags.h throw.h unif.h variable.h vectors.h version.h vports.h \
74da5385 101 weaks.h snarf.h threads.h coop-defs.h fluids.h iselect.h kw.h
733943b9 102
adb75a41
TT
103## This file is generated at configure time. That is why it is DATA
104## and not a header -- headers are included in the distribution.
733943b9
TT
105modinclude_DATA = scmconfig.h
106
adb75a41
TT
107bin_SCRIPTS = guile-snarf
108
a0e6f509 109check_ldadd = libguile.la ${THREAD_LIBS_LOCAL}
ee2a8b9b
JB
110check_PROGRAMS = gh_test_c gh_test_repl
111gh_test_c_SOURCES = gh_test_c.c
112gh_test_c_LDADD = ${check_ldadd}
113gh_test_repl_SOURCES = gh_test_repl.c
114gh_test_repl_LDADD = ${check_ldadd}
115
52f980e4
JB
116check-local:
117 echo '(+ 1 2 3)' | ./gh_test_c; echo
118 echo '(+ 1 2 3)' | ./gh_test_repl; echo
119
1773993b
JB
120EXTRA_DIST = ChangeLog-gh ChangeLog-scm ChangeLog-threads dynl-dl.c \
121 dynl-dld.c dynl-shl.c dynl-vms.c DYNAMIC-LINKING cpp_signal.c cpp_errno.c \
122 cpp_err_symbols.in cpp_sig_symbols.in cpp_cnvt.awk coop-threads.h.cygnus \
123 coop-threads.c.cygnus mit-pthreads.h mit-pthreads.c fsu-pthreads.h
733943b9 124
fef07353 125## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds.
90ff3ec5 126libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status
e151bee6
JB
127 @echo "Generating libpath.h..."
128 @rm -f libpath.tmp
129 @echo '/* generated by Makefile */' > libpath.tmp
130 @echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp
131 @echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(VERSION)"'>>libpath.tmp
132 @echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp
133 @echo '#define SCM_BUILD_INFO { \' >> libpath.tmp
134 @echo ' { "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp
135 @echo ' { "top_srcdir", "'"`cd @top_srcdir@; pwd`"'" }, \' \
136 >> libpath.tmp
137 @echo ' { "prefix", "@prefix@" }, \' >> libpath.tmp
138 @echo ' { "exec_prefix", "@exec_prefix@" }, \' >> libpath.tmp
139 @echo ' { "bindir", "@bindir@" }, \' >> libpath.tmp
140 @echo ' { "sbindir", "@sbindir@" }, \' >> libpath.tmp
141 @echo ' { "libexecdir", "@libexecdir@" }, \' >> libpath.tmp
142 @echo ' { "datadir", "@datadir@" }, \' >> libpath.tmp
143 @echo ' { "sysconfdir", "@sysconfdir@" }, \' >> libpath.tmp
144 @echo ' { "sharedstatedir", "@sharedstatedir@" }, \' >> libpath.tmp
145 @echo ' { "localstatedir", "@localstatedir@" }, \' >> libpath.tmp
146 @echo ' { "libdir", "@libdir@" }, \' >> libpath.tmp
147 @echo ' { "infodir", "@infodir@" }, \' >> libpath.tmp
148 @echo ' { "mandir", "@mandir@" }, \' >> libpath.tmp
149 @echo ' { "includedir", "@includedir@" }, \' >> libpath.tmp
150 @echo ' { "pkgdatadir", "$(datadir)/@PACKAGE@" }, \' >> libpath.tmp
151 @echo ' { "pkglibdir", "$(libdir)/@PACKAGE@" }, \' >> libpath.tmp
152 @echo ' { "pkgincludedir", "$(includedir)/@PACKAGE@" }, \' \
153 >> libpath.tmp
90ff3ec5 154 @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp
e151bee6
JB
155 @echo '}' >> libpath.tmp
156 @mv libpath.tmp libpath.h
733943b9
TT
157
158SUFFIXES = .x
159.c.x:
adb75a41 160 ./guile-snarf $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@
733943b9
TT
161
162## Add -MG to make the .x magic work with auto-dep code.
163MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
ee78fbb0 164
a0e90145
JB
165cpp_err_symbols.c: cpp_err_symbols.in
166 $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_err_symbols.in > \
593d151f
JB
167 cpp_err_symbols.tmp
168 mv cpp_err_symbols.tmp cpp_err_symbols.c
ee78fbb0 169
a0e90145
JB
170cpp_sig_symbols.c: cpp_sig_symbols.in
171 $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_sig_symbols.in > \
593d151f
JB
172 cpp_sig_symbols.tmp
173 mv cpp_sig_symbols.tmp cpp_sig_symbols.c
67ec3667 174
a0e90145 175## Create a new version of the cpp_sig_symbols.in file, including all SIGXXX
67ec3667
GH
176## macros defined on this platform.
177check_signals:
178 gcc -undef -dM -E $(srcdir)/cpp_signal.c | egrep ' SIG[A-Z]+' \
179 | cut -f2 -d' ' | sort > cpp_sig_symbols_here
a0e90145
JB
180 diff -u $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_here \
181 | egrep '^\+S' \
67ec3667
GH
182 | cut -c2- > cpp_sig_symbols_diff
183 if test -s cpp_sig_symbols_diff ; then \
a0e90145 184 cat $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_diff \
67ec3667
GH
185 | sort > cpp_sig_symbols_new ;\
186 echo "cpp_sig_symbols_new has the following additions:" ;\
187 cat cpp_sig_symbols_diff ;\
188 else echo "No new symbols found."; \
189 fi
190
a0e90145 191## Likewise for cpp_err_symbols.in.
67ec3667
GH
192check_errnos:
193 gcc -undef -dM -E $(srcdir)/cpp_errno.c | egrep ' E.+' \
194 | cut -f2 -d' ' | sort > cpp_err_symbols_here
a0e90145
JB
195 diff -u $(srcdir)/cpp_err_symbols.in cpp_err_symbols_here \
196 | egrep '^\+E' \
67ec3667
GH
197 | cut -c2- > cpp_err_symbols_diff
198 if test -s cpp_err_symbols_diff ; then \
a0e90145 199 cat $(srcdir)/cpp_err_symbols.in cpp_err_symbols_diff \
67ec3667
GH
200 | sort > cpp_err_symbols_new ;\
201 echo "cpp_err_symbols_new has the following additions:" ;\
202 cat cpp_err_symbols_diff ;\
203 else echo "No new symbols found."; \
204 fi
205
ad6b30a0
TP
206MOSTLYCLEANFILES = \
207 cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new \
67ec3667 208 cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
ad6b30a0
TP
209
210CLEANFILES = versiondat.h libpath.h
211
212DISTCLEANFILES = *.x
213