| 1 |
# |
| 2 |
# Makefile.in for Gauche/lib |
| 3 |
# |
| 4 |
|
| 5 |
.PHONY: all check install uninstall slibcat slibcat-in-place \ |
| 6 |
clean distclean maintainer-clean |
| 7 |
|
| 8 |
DESTDIR = |
| 9 |
|
| 10 |
prefix = @prefix@ |
| 11 |
exec_prefix = @exec_prefix@ |
| 12 |
bindir = @bindir@ |
| 13 |
libdir = @libdir@ |
| 14 |
srcdir = @srcdir@ |
| 15 |
VPATH = $(srcdir) |
| 16 |
top_builddir = @top_builddir@ |
| 17 |
top_srcdir = @top_srcdir@ |
| 18 |
datadir = @datadir@ |
| 19 |
datarootdir = @datarootdir@ |
| 20 |
build = @build@ |
| 21 |
host = @host@ |
| 22 |
|
| 23 |
GAUCHE_DATA_DIR = $(datadir)/gauche-@GAUCHE_ABI_VERSION@ |
| 24 |
SCM_INSTALL_DIR = $(GAUCHE_DATA_DIR)/@GAUCHE_VERSION@/lib |
| 25 |
INSTALL = @INSTALL@ |
| 26 |
INSTALL_DATA = @INSTALL_DATA@ |
| 27 |
MKINSTDIR = $(top_srcdir)/mkinstalldirs |
| 28 |
SLIB_DIR = @SLIB_DIR@ |
| 29 |
|
| 30 |
PREGENERATED = gauche/vm/insn.scm gauche/config.scm srfi-* |
| 31 |
CONFIG_GENERATED = Makefile |
| 32 |
|
| 33 |
SUBDIRS = gauche gauche/vm gauche/configure gauche/serializer \ |
| 34 |
gauche/interactive gauche/mop \ |
| 35 |
gauche/package gauche/cgen gauche/experimental gauche/test \ |
| 36 |
gauche/regexp \ |
| 37 |
lang lang/asm lang/c \ |
| 38 |
srfi srfi/160 srfi-29 srfi/29 srfi/146 \ |
| 39 |
srfi-159 srfi-159/internal srfi/159 srfi/160 srfi/172 srfi/194 \ |
| 40 |
srfi/226 srfi/227 \ |
| 41 |
binary control data dbd dbm math util compat file \ |
| 42 |
parser parser/peg rfc rfc/http \ |
| 43 |
scheme scheme/mapping scheme/show scheme/stream scheme/vector \ |
| 44 |
text text/unicode text/console tools www www/cgi |
| 45 |
|
| 46 |
# Note: srfi-*.scm is generated by src/srfis.scm |
| 47 |
|
| 48 |
SCMFILES = \ |
| 49 |
srfi-*.scm srfi/*.scm \ |
| 50 |
srfi-29/*.scm srfi/29/*.scm \ |
| 51 |
srfi/146/hash.scm \ |
| 52 |
srfi-159/*.sld srfi-159/*.scm \ |
| 53 |
srfi-159/internal/*.sld srfi-159/internal/*.scm srfi/159/*.scm \ |
| 54 |
srfi/160/*.scm \ |
| 55 |
srfi/172/*.scm \ |
| 56 |
srfi/194/*.scm \ |
| 57 |
srfi/226/*.scm \ |
| 58 |
srfi/227/*.scm \ |
| 59 |
slib.scm \ |
| 60 |
check-script \ |
| 61 |
gauche/test.scm gauche/test/script.scm \ |
| 62 |
gauche/test/diff.scm gauche/test/include.scm \ |
| 63 |
gauche/time.scm gauche/connection.scm \ |
| 64 |
gauche/fmtutil.scm gauche/redefutil.scm \ |
| 65 |
gauche/vecutil.scm gauche/portutil.scm \ |
| 66 |
gauche/hashutil.scm gauche/treeutil.scm gauche/computil.scm \ |
| 67 |
gauche/netutil.scm gauche/modutil.scm gauche/libutil.scm \ |
| 68 |
gauche/generic-sortutil.scm gauche/fileutil.scm gauche/sysutil.scm \ |
| 69 |
gauche/regexp.scm gauche/regexp/sre.scm \ |
| 70 |
gauche/sigutil.scm gauche/numutil.scm gauche/let-opt.scm \ |
| 71 |
gauche/logutil.scm \ |
| 72 |
gauche/vm/bbb.scm gauche/vm/debugger.scm gauche/vm/debug-info.scm \ |
| 73 |
gauche/vm/insn-core.scm gauche/vm/insn.scm \ |
| 74 |
gauche/vm/profiler.scm gauche/vm/register-machine.scm \ |
| 75 |
gauche/pputil.scm gauche/procutil.scm \ |
| 76 |
gauche/serializer.scm gauche/serializer/aserializer.scm \ |
| 77 |
gauche/parseopt.scm gauche/interactive.scm gauche/interactive/info.scm \ |
| 78 |
gauche/interactive/init.scm \ |
| 79 |
gauche/interactive/toplevel.scm \ |
| 80 |
gauche/interactive/editable-reader.scm \ |
| 81 |
gauche/interactive/completion.scm \ |
| 82 |
gauche/selector.scm gauche/logger.scm \ |
| 83 |
gauche/common-macros.scm gauche/singleton.scm gauche/validator.scm \ |
| 84 |
gauche/version.scm gauche/version-alist.scm \ |
| 85 |
gauche/partcont.scm gauche/partcont-meta.scm \ |
| 86 |
gauche/lazy.scm gauche/base.scm \ |
| 87 |
gauche/interpolate.scm gauche/listener.scm \ |
| 88 |
gauche/config.scm gauche/reload.scm \ |
| 89 |
gauche/configure.scm gauche/configure/base.scm \ |
| 90 |
gauche/configure/lang.scm gauche/configure/lib.scm \ |
| 91 |
gauche/configure/prog.scm gauche/configure/init.scm \ |
| 92 |
gauche/configure/compile.scm gauche/configure/output.scm \ |
| 93 |
gauche/mop/bound-slot.scm \ |
| 94 |
gauche/mop/instance-pool.scm gauche/mop/validator.scm \ |
| 95 |
gauche/mop/propagate.scm gauche/mop/singleton.scm \ |
| 96 |
gauche/mop/typed-slot.scm \ |
| 97 |
gauche/cgen.scm gauche/cgen/unit.scm gauche/cgen/literal.scm \ |
| 98 |
gauche/cgen/cise.scm gauche/cgen/type.scm gauche/cgen/stub.scm \ |
| 99 |
gauche/cgen/precomp.scm gauche/cgen/optimizer.scm \ |
| 100 |
gauche/cgen/standalone.scm gauche/cgen/tmodule.scm \ |
| 101 |
gauche/cgen/cbe.scm \ |
| 102 |
gauche/package.scm gauche/package/build.scm gauche/package/fetch.scm \ |
| 103 |
gauche/package/util.scm gauche/package/compile.scm \ |
| 104 |
gauche/package/commands.scm \ |
| 105 |
gauche/experimental/ref.scm gauche/experimental/lamb.scm \ |
| 106 |
gauche/experimental/app.scm gauche/experimental/shared-struct.scm \ |
| 107 |
r7rs-setup.scm \ |
| 108 |
binary/ftype.scm binary/pack.scm \ |
| 109 |
control/cseq.scm control/future.scm control/job.scm control/plumbing.scm \ |
| 110 |
control/pmap.scm control/scheduler.scm control/thread-pool.scm \ |
| 111 |
dbi.scm dbd/null.scm dbm.scm dbm/fsdbm.scm dbm/dump dbm/restore \ |
| 112 |
data/cache.scm data/heap.scm \ |
| 113 |
data/ideque.scm data/imap.scm data/priority-map.scm data/random.scm \ |
| 114 |
data/range.scm data/skew-list.scm data/ulid.scm \ |
| 115 |
lang/asm/regset.scm lang/asm/x86_64.scm \ |
| 116 |
lang/c/parameter.scm lang/c/lexer.scm lang/c/parser.scm \ |
| 117 |
lang/c/type.scm \ |
| 118 |
math/const.scm math/prime.scm math/simplex.scm \ |
| 119 |
util/identifier-syntax.scm util/isomorph.scm \ |
| 120 |
util/toposort.scm util/tree.scm util/queue.scm \ |
| 121 |
util/digest.scm util/combinations.scm util/lcs.scm util/list.scm \ |
| 122 |
util/record.scm util/relation.scm util/stream.scm util/trie.scm \ |
| 123 |
util/rbtree.scm util/sparse.scm util/dominator.scm \ |
| 124 |
util/levenshtein.scm util/unification.scm util/temporal-relation.scm \ |
| 125 |
compat/chibi-test.scm compat/jfilter.scm compat/stk.scm \ |
| 126 |
compat/norational.scm compat/real-elementary-functions.scm \ |
| 127 |
compat/r7rs-srfi-tests.scm \ |
| 128 |
file/filter.scm \ |
| 129 |
rfc/mime-port.scm rfc/base64.scm rfc/uri.scm \ |
| 130 |
rfc/cookie.scm rfc/quoted-printable.scm rfc/http.scm rfc/http/tunnel.scm \ |
| 131 |
rfc/hmac.scm rfc/ftp.scm rfc/icmp.scm rfc/ip.scm rfc/json.scm \ |
| 132 |
rfc/uuid.scm \ |
| 133 |
scheme/base.scm scheme/box.scm scheme/bitwise.scm \ |
| 134 |
scheme/bytevector.scm \ |
| 135 |
scheme/case-lambda.scm scheme/char.scm \ |
| 136 |
scheme/comparator.scm scheme/complex.scm scheme/cxr.scm \ |
| 137 |
scheme/division.scm scheme/ephemeron.scm scheme/eval.scm \ |
| 138 |
scheme/file.scm scheme/fixnum.scm \ |
| 139 |
scheme/generator.scm scheme/hash-table.scm scheme/ideque.scm \ |
| 140 |
scheme/inexact.scm scheme/ilist.scm scheme/lazy.scm \ |
| 141 |
scheme/list-queue.scm scheme/load.scm \ |
| 142 |
scheme/lseq.scm scheme/mapping.scm scheme/mapping/hash.scm \ |
| 143 |
scheme/process-context.scm scheme/r5rs.scm scheme/read.scm \ |
| 144 |
scheme/regex.scm scheme/repl.scm scheme/rlist.scm \ |
| 145 |
scheme/set.scm scheme/sort.scm scheme/show.scm \ |
| 146 |
scheme/show/base.scm scheme/show/color.scm scheme/show/columnar.scm \ |
| 147 |
scheme/show/unicode.scm \ |
| 148 |
scheme/stream.scm scheme/stream/primitive.scm scheme/stream/derived.scm \ |
| 149 |
scheme/time.scm scheme/text.scm \ |
| 150 |
scheme/write.scm \ |
| 151 |
scheme/vector/base.scm scheme/vector/u8.scm scheme/vector/s8.scm \ |
| 152 |
scheme/vector/u16.scm scheme/vector/s16.scm \ |
| 153 |
scheme/vector/u32.scm scheme/vector/s32.scm \ |
| 154 |
scheme/vector/u64.scm scheme/vector/s64.scm \ |
| 155 |
scheme/vector/f32.scm scheme/vector/f64.scm \ |
| 156 |
scheme/vector/c64.scm scheme/vector/c128.scm \ |
| 157 |
text/csv.scm text/edn.scm text/external-editor.scm \ |
| 158 |
text/fill.scm text/multicolumn.scm text/parse.scm \ |
| 159 |
text/tree.scm text/sql.scm \ |
| 160 |
text/html-lite.scm text/info.scm text/diff.scm \ |
| 161 |
text/pager.scm text/progress.scm \ |
| 162 |
text/console/framebuffer.scm text/console/wide-char-setting.scm \ |
| 163 |
text/console/windows.scm \ |
| 164 |
text/segmented-match.scm text/sh.scm text/template.scm \ |
| 165 |
text/unicode.scm text/unicode/ucd.scm text/unicode/codeset.scm \ |
| 166 |
tools/build-standalone tools/check-script \ |
| 167 |
tools/genstub tools/get-cacert \ |
| 168 |
tools/make-export-list tools/precomp tools/docprep \ |
| 169 |
tools/compile-r7rs \ |
| 170 |
www/cgi.scm www/cgi-test.scm www/cgi/test.scm www/css.scm |
| 171 |
|
| 172 |
all: |
| 173 |
|
| 174 |
check: |
| 175 |
|
| •176 |
install: |
| 177 |
for d in $(SUBDIRS); do \ |
| 178 |
"$(MKINSTDIR)" "$(DESTDIR)$(SCM_INSTALL_DIR)/$$d"; \ |
| 179 |
done |
| 180 |
for p in $(SCMFILES); do \ |
| 181 |
$(INSTALL_DATA) "$$p" "$(DESTDIR)$(SCM_INSTALL_DIR)/$$p"; \ |
| 182 |
done |
| 183 |
if test -f slibcat; then \ |
| 184 |
$(INSTALL_DATA) slibcat "$(DESTDIR)$(SCM_INSTALL_DIR)/slibcat"; \ |
| 185 |
fi |
| 186 |
|
| 187 |
uninstall: |
| 188 |
|
| 189 |
# If we have slib, creates catalog file for Gauche. This should be called |
| 190 |
# after everything is built. |
| 191 |
slibcat : |
| 192 |
if test -f "$(SLIB_DIR)/require.scm" && test $(build) = $(host); then \ |
| 193 |
$(SHELL) $(srcdir)/mklibcat $(top_builddir)/src/gosh ; \ |
| 194 |
fi |
| 195 |
|
| 196 |
# obsoletd: for the backward compatibility |
| 197 |
slibcat-in-place : slibcat |
| 198 |
|
| 199 |
clean: |
| 200 |
rm -rf core slibcat *.sci *~ |
| 201 |
for d in $(SUBDIRS); do if test -d $$d; then (cd $$d; rm -f core *.sci *~); fi; done |
| 202 |
|
| 203 |
distclean: clean |
| 204 |
rm -f $(CONFIG_GENERATED) |
| 205 |
|
| 206 |
maintainer-clean: clean |
| 207 |
rm -f $(CONFIG_GENERATED) $(PREGENERATED) |