melisa 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +53 -4
- data/ext/extconf.rb +33 -0
- data/ext/marisa-0.2.4/AUTHORS +1 -0
- data/ext/marisa-0.2.4/COPYING +32 -0
- data/ext/marisa-0.2.4/ChangeLog +0 -0
- data/ext/marisa-0.2.4/INSTALL +237 -0
- data/ext/marisa-0.2.4/Makefile.am +24 -0
- data/ext/marisa-0.2.4/Makefile.in +803 -0
- data/ext/marisa-0.2.4/NEWS +0 -0
- data/ext/marisa-0.2.4/README +63 -0
- data/ext/marisa-0.2.4/aclocal.m4 +976 -0
- data/ext/marisa-0.2.4/bindings/Makefile +16 -0
- data/ext/{marisa → marisa-0.2.4}/bindings/marisa-swig.cxx +0 -0
- data/ext/{marisa → marisa-0.2.4}/bindings/marisa-swig.h +0 -0
- data/ext/marisa-0.2.4/bindings/marisa-swig.i +28 -0
- data/ext/marisa-0.2.4/bindings/perl/Makefile.PL +7 -0
- data/ext/{marisa → marisa-0.2.4}/bindings/perl/marisa-swig.cxx +0 -0
- data/ext/{marisa → marisa-0.2.4}/bindings/perl/marisa-swig.h +0 -0
- data/ext/{marisa → marisa-0.2.4}/bindings/perl/marisa-swig_wrap.cxx +0 -0
- data/ext/marisa-0.2.4/bindings/perl/marisa.pm +297 -0
- data/ext/marisa-0.2.4/bindings/perl/sample.dic +0 -0
- data/ext/marisa-0.2.4/bindings/perl/sample.pl +62 -0
- data/ext/{marisa → marisa-0.2.4}/bindings/python/marisa-swig.cxx +0 -0
- data/ext/{marisa → marisa-0.2.4}/bindings/python/marisa-swig.h +0 -0
- data/ext/{marisa → marisa-0.2.4}/bindings/python/marisa-swig_wrap.cxx +0 -0
- data/ext/marisa-0.2.4/bindings/python/marisa.py +206 -0
- data/ext/marisa-0.2.4/bindings/python/sample.dic +0 -0
- data/ext/marisa-0.2.4/bindings/python/sample.py +57 -0
- data/ext/marisa-0.2.4/bindings/python/setup.py +9 -0
- data/ext/marisa-0.2.4/config.guess +1530 -0
- data/ext/marisa-0.2.4/config.sub +1773 -0
- data/ext/marisa-0.2.4/configure +17636 -0
- data/ext/marisa-0.2.4/configure.ac +172 -0
- data/ext/marisa-0.2.4/depcomp +688 -0
- data/ext/marisa-0.2.4/docs/readme.en.html +740 -0
- data/ext/marisa-0.2.4/docs/readme.ja.html +750 -0
- data/ext/marisa-0.2.4/docs/style.css +245 -0
- data/ext/marisa-0.2.4/install-sh +520 -0
- data/ext/marisa-0.2.4/lib/Makefile.am +57 -0
- data/ext/marisa-0.2.4/lib/Makefile.in +701 -0
- data/ext/{marisa → marisa-0.2.4}/lib/marisa.h +0 -0
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/agent.cc +2 -2
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/agent.h +2 -2
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/base.h +3 -3
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/exception.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/algorithm.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/algorithm/sort.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/intrin.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/io.h +3 -3
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/io/mapper.cc +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/io/mapper.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/io/reader.cc +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/io/reader.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/io/writer.cc +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/io/writer.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie.h +2 -2
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/cache.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/config.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/entry.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/header.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/history.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/key.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/louds-trie.cc +5 -5
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/louds-trie.h +7 -7
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/range.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/state.h +2 -2
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/tail.cc +3 -3
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/trie/tail.h +3 -3
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/vector.h +3 -3
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/vector/bit-vector.cc +2 -2
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/vector/bit-vector.h +2 -2
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/vector/flat-vector.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/vector/pop-count.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/vector/rank-index.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/grimoire/vector/vector.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/iostream.h +0 -0
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/key.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/keyset.cc +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/keyset.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/query.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/scoped-array.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/scoped-ptr.h +1 -1
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/stdio.h +0 -0
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/trie.cc +4 -4
- data/ext/{marisa → marisa-0.2.4}/lib/marisa/trie.h +2 -2
- data/ext/marisa-0.2.4/ltmain.sh +9661 -0
- data/ext/marisa-0.2.4/m4/libtool.m4 +8001 -0
- data/ext/marisa-0.2.4/m4/ltoptions.m4 +384 -0
- data/ext/marisa-0.2.4/m4/ltsugar.m4 +123 -0
- data/ext/marisa-0.2.4/m4/ltversion.m4 +23 -0
- data/ext/marisa-0.2.4/m4/lt~obsolete.m4 +98 -0
- data/ext/marisa-0.2.4/marisa.pc.in +11 -0
- data/ext/marisa-0.2.4/missing +331 -0
- data/ext/marisa-0.2.4/mkmf.log +288 -0
- data/ext/marisa-0.2.4/pkg/bin/marisa-benchmark +0 -0
- data/ext/marisa-0.2.4/pkg/bin/marisa-build +0 -0
- data/ext/marisa-0.2.4/pkg/bin/marisa-common-prefix-search +0 -0
- data/ext/marisa-0.2.4/pkg/bin/marisa-dump +0 -0
- data/ext/marisa-0.2.4/pkg/bin/marisa-lookup +0 -0
- data/ext/marisa-0.2.4/pkg/bin/marisa-predictive-search +0 -0
- data/ext/marisa-0.2.4/pkg/bin/marisa-reverse-lookup +0 -0
- data/ext/marisa-0.2.4/pkg/include/marisa.h +14 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/agent.h +73 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/base.h +193 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/exception.h +82 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/iostream.h +18 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/key.h +85 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/keyset.h +80 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/query.h +71 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/scoped-array.h +48 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/scoped-ptr.h +52 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/stdio.h +15 -0
- data/ext/marisa-0.2.4/pkg/include/marisa/trie.h +64 -0
- data/ext/marisa-0.2.4/pkg/lib/libmarisa.0.dylib +0 -0
- data/ext/marisa-0.2.4/pkg/lib/libmarisa.a +0 -0
- data/ext/marisa-0.2.4/pkg/lib/libmarisa.dylib +0 -0
- data/ext/marisa-0.2.4/pkg/lib/libmarisa.la +41 -0
- data/ext/marisa-0.2.4/pkg/lib/pkgconfig/marisa.pc +11 -0
- data/ext/marisa-0.2.4/tests/Makefile.am +27 -0
- data/ext/marisa-0.2.4/tests/Makefile.in +624 -0
- data/ext/{marisa → marisa-0.2.4}/tests/base-test.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tests/io-test.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tests/marisa-assert.h +0 -0
- data/ext/{marisa → marisa-0.2.4}/tests/marisa-test.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tests/trie-test.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tests/vector-test.cc +0 -0
- data/ext/marisa-0.2.4/tools/Makefile.am +39 -0
- data/ext/marisa-0.2.4/tools/Makefile.in +616 -0
- data/ext/{marisa → marisa-0.2.4}/tools/cmdopt.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tools/cmdopt.h +0 -0
- data/ext/{marisa → marisa-0.2.4}/tools/marisa-benchmark.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tools/marisa-build.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tools/marisa-common-prefix-search.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tools/marisa-dump.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tools/marisa-lookup.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tools/marisa-predictive-search.cc +0 -0
- data/ext/{marisa → marisa-0.2.4}/tools/marisa-reverse-lookup.cc +0 -0
- data/ext/marisa-0.2.4/vs2008/base-test/base-test.vcproj +200 -0
- data/ext/marisa-0.2.4/vs2008/io-test/io-test.vcproj +199 -0
- data/ext/marisa-0.2.4/vs2008/libmarisa/libmarisa.vcproj +347 -0
- data/ext/marisa-0.2.4/vs2008/marisa-benchmark/marisa-benchmark.vcproj +203 -0
- data/ext/marisa-0.2.4/vs2008/marisa-build/marisa-build.vcproj +203 -0
- data/ext/marisa-0.2.4/vs2008/marisa-common-prefix-search/marisa-common-prefix-search.vcproj +203 -0
- data/ext/marisa-0.2.4/vs2008/marisa-dump/marisa-dump.vcproj +203 -0
- data/ext/marisa-0.2.4/vs2008/marisa-lookup/marisa-lookup.vcproj +203 -0
- data/ext/marisa-0.2.4/vs2008/marisa-predictive-search/marisa-predictive-search.vcproj +203 -0
- data/ext/marisa-0.2.4/vs2008/marisa-reverse-lookup/marisa-reverse-lookup.vcproj +203 -0
- data/ext/marisa-0.2.4/vs2008/marisa-test/marisa-test.vcproj +199 -0
- data/ext/marisa-0.2.4/vs2008/trie-test/trie-test.vcproj +199 -0
- data/ext/marisa-0.2.4/vs2008/vector-test/vector-test.vcproj +199 -0
- data/ext/marisa-0.2.4/vs2008/vs2008.sln +123 -0
- data/ext/marisa-0.2.4/vs2008/vs2008.suo +0 -0
- data/ext/{marisa/bindings/ruby/marisa-swig.cxx → marisa-swig.cxx} +0 -0
- data/ext/{marisa/bindings/ruby/marisa-swig.h → marisa-swig.h} +0 -0
- data/ext/{marisa/bindings/ruby/marisa-swig_wrap.cxx → marisa-swig_wrap.cxx} +0 -0
- data/lib/melisa/bytes_trie.rb +5 -0
- data/lib/melisa/trie.rb +2 -0
- data/lib/melisa/version.rb +1 -1
- data/melisa.gemspec +7 -9
- data/spec/bytes_trie_spec.rb +6 -1
- data/spec/int_trie_spec.rb +5 -0
- data/spec/search_spec.rb +6 -7
- data/spec/trie_spec.rb +4 -4
- metadata +178 -121
- data/ext/marisa/bindings/ruby/extconf.rb +0 -5
@@ -0,0 +1,64 @@
|
|
1
|
+
#ifndef MARISA_TRIE_H_
|
2
|
+
#define MARISA_TRIE_H_
|
3
|
+
|
4
|
+
#include "keyset.h"
|
5
|
+
#include "agent.h"
|
6
|
+
|
7
|
+
namespace marisa {
|
8
|
+
namespace grimoire {
|
9
|
+
namespace trie {
|
10
|
+
|
11
|
+
class LoudsTrie;
|
12
|
+
|
13
|
+
} // namespace trie
|
14
|
+
} // namespace grimoire
|
15
|
+
|
16
|
+
class Trie {
|
17
|
+
friend class TrieIO;
|
18
|
+
|
19
|
+
public:
|
20
|
+
Trie();
|
21
|
+
~Trie();
|
22
|
+
|
23
|
+
void build(Keyset &keyset, int config_flags = 0);
|
24
|
+
|
25
|
+
void mmap(const char *filename);
|
26
|
+
void map(const void *ptr, std::size_t size);
|
27
|
+
|
28
|
+
void load(const char *filename);
|
29
|
+
void read(int fd);
|
30
|
+
|
31
|
+
void save(const char *filename) const;
|
32
|
+
void write(int fd) const;
|
33
|
+
|
34
|
+
bool lookup(Agent &agent) const;
|
35
|
+
void reverse_lookup(Agent &agent) const;
|
36
|
+
bool common_prefix_search(Agent &agent) const;
|
37
|
+
bool predictive_search(Agent &agent) const;
|
38
|
+
|
39
|
+
std::size_t num_tries() const;
|
40
|
+
std::size_t num_keys() const;
|
41
|
+
std::size_t num_nodes() const;
|
42
|
+
|
43
|
+
TailMode tail_mode() const;
|
44
|
+
NodeOrder node_order() const;
|
45
|
+
|
46
|
+
bool empty() const;
|
47
|
+
std::size_t size() const;
|
48
|
+
std::size_t total_size() const;
|
49
|
+
std::size_t io_size() const;
|
50
|
+
|
51
|
+
void clear();
|
52
|
+
void swap(Trie &rhs);
|
53
|
+
|
54
|
+
private:
|
55
|
+
scoped_ptr<grimoire::trie::LoudsTrie> trie_;
|
56
|
+
|
57
|
+
// Disallows copy and assignment.
|
58
|
+
Trie(const Trie &);
|
59
|
+
Trie &operator=(const Trie &);
|
60
|
+
};
|
61
|
+
|
62
|
+
} // namespace marisa
|
63
|
+
|
64
|
+
#endif // MARISA_TRIE_H_
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# libmarisa.la - a libtool library file
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
|
3
|
+
#
|
4
|
+
# Please DO NOT delete this file!
|
5
|
+
# It is necessary for linking the library.
|
6
|
+
|
7
|
+
# The name that we can dlopen(3).
|
8
|
+
dlname='libmarisa.0.dylib'
|
9
|
+
|
10
|
+
# Names of this library.
|
11
|
+
library_names='libmarisa.0.dylib libmarisa.dylib'
|
12
|
+
|
13
|
+
# The name of the static archive.
|
14
|
+
old_library='libmarisa.a'
|
15
|
+
|
16
|
+
# Linker flags that can not go in dependency_libs.
|
17
|
+
inherited_linker_flags=' '
|
18
|
+
|
19
|
+
# Libraries that this one depends upon.
|
20
|
+
dependency_libs=''
|
21
|
+
|
22
|
+
# Names of additional weak libraries provided by this library
|
23
|
+
weak_library_names=''
|
24
|
+
|
25
|
+
# Version information for libmarisa.
|
26
|
+
current=0
|
27
|
+
age=0
|
28
|
+
revision=0
|
29
|
+
|
30
|
+
# Is this an already installed library?
|
31
|
+
installed=yes
|
32
|
+
|
33
|
+
# Should we warn about portability when linking against -modules?
|
34
|
+
shouldnotlink=no
|
35
|
+
|
36
|
+
# Files to dlopen/dlpreopen
|
37
|
+
dlopen=''
|
38
|
+
dlpreopen=''
|
39
|
+
|
40
|
+
# Directory that this library needs to be installed in:
|
41
|
+
libdir='/Users/duane/Dropbox/Projects/wordtree/melisa/ext/marisa-0.2.4/pkg/lib'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
prefix=/Users/duane/Dropbox/Projects/wordtree/melisa/ext/marisa-0.2.4/pkg
|
2
|
+
exec_prefix=${prefix}
|
3
|
+
bindir=${exec_prefix}/bin
|
4
|
+
libdir=${exec_prefix}/lib
|
5
|
+
includedir=${prefix}/include
|
6
|
+
|
7
|
+
Name: Marisa
|
8
|
+
Description: Matching Algorithm with Recursively Implemented StorAge
|
9
|
+
Version: 0.2.4
|
10
|
+
Cflags: -I${includedir}
|
11
|
+
Libs: -L${libdir} -lmarisa
|
@@ -0,0 +1,27 @@
|
|
1
|
+
AM_CXXFLAGS = -Wall -Weffc++ -Wextra -D_DEBUG -I${top_srcdir}/lib
|
2
|
+
|
3
|
+
TESTS = \
|
4
|
+
base-test \
|
5
|
+
io-test \
|
6
|
+
vector-test \
|
7
|
+
trie-test \
|
8
|
+
marisa-test
|
9
|
+
|
10
|
+
check_PROGRAMS = $(TESTS)
|
11
|
+
|
12
|
+
noinst_HEADERS = marisa-assert.h
|
13
|
+
|
14
|
+
base_test_SOURCES = base-test.cc
|
15
|
+
base_test_LDADD = ../lib/libmarisa.la
|
16
|
+
|
17
|
+
io_test_SOURCES = io-test.cc
|
18
|
+
io_test_LDADD = ../lib/libmarisa.la
|
19
|
+
|
20
|
+
vector_test_SOURCES = vector-test.cc
|
21
|
+
vector_test_LDADD = ../lib/libmarisa.la
|
22
|
+
|
23
|
+
trie_test_SOURCES = trie-test.cc
|
24
|
+
trie_test_LDADD = ../lib/libmarisa.la
|
25
|
+
|
26
|
+
marisa_test_SOURCES = marisa-test.cc
|
27
|
+
marisa_test_LDADD = ../lib/libmarisa.la
|
@@ -0,0 +1,624 @@
|
|
1
|
+
# Makefile.in generated by automake 1.11.3 from Makefile.am.
|
2
|
+
# @configure_input@
|
3
|
+
|
4
|
+
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
5
|
+
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
6
|
+
# Foundation, Inc.
|
7
|
+
# This Makefile.in is free software; the Free Software Foundation
|
8
|
+
# gives unlimited permission to copy and/or distribute it,
|
9
|
+
# with or without modifications, as long as this notice is preserved.
|
10
|
+
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
13
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
14
|
+
# PARTICULAR PURPOSE.
|
15
|
+
|
16
|
+
@SET_MAKE@
|
17
|
+
|
18
|
+
VPATH = @srcdir@
|
19
|
+
pkgdatadir = $(datadir)/@PACKAGE@
|
20
|
+
pkgincludedir = $(includedir)/@PACKAGE@
|
21
|
+
pkglibdir = $(libdir)/@PACKAGE@
|
22
|
+
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
23
|
+
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
24
|
+
install_sh_DATA = $(install_sh) -c -m 644
|
25
|
+
install_sh_PROGRAM = $(install_sh) -c
|
26
|
+
install_sh_SCRIPT = $(install_sh) -c
|
27
|
+
INSTALL_HEADER = $(INSTALL_DATA)
|
28
|
+
transform = $(program_transform_name)
|
29
|
+
NORMAL_INSTALL = :
|
30
|
+
PRE_INSTALL = :
|
31
|
+
POST_INSTALL = :
|
32
|
+
NORMAL_UNINSTALL = :
|
33
|
+
PRE_UNINSTALL = :
|
34
|
+
POST_UNINSTALL = :
|
35
|
+
build_triplet = @build@
|
36
|
+
host_triplet = @host@
|
37
|
+
TESTS = base-test$(EXEEXT) io-test$(EXEEXT) vector-test$(EXEEXT) \
|
38
|
+
trie-test$(EXEEXT) marisa-test$(EXEEXT)
|
39
|
+
check_PROGRAMS = $(am__EXEEXT_1)
|
40
|
+
subdir = tests
|
41
|
+
DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
|
42
|
+
$(srcdir)/Makefile.in
|
43
|
+
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
44
|
+
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
45
|
+
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
46
|
+
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
47
|
+
$(top_srcdir)/configure.ac
|
48
|
+
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
49
|
+
$(ACLOCAL_M4)
|
50
|
+
mkinstalldirs = $(install_sh) -d
|
51
|
+
CONFIG_CLEAN_FILES =
|
52
|
+
CONFIG_CLEAN_VPATH_FILES =
|
53
|
+
am__EXEEXT_1 = base-test$(EXEEXT) io-test$(EXEEXT) \
|
54
|
+
vector-test$(EXEEXT) trie-test$(EXEEXT) marisa-test$(EXEEXT)
|
55
|
+
am_base_test_OBJECTS = base-test.$(OBJEXT)
|
56
|
+
base_test_OBJECTS = $(am_base_test_OBJECTS)
|
57
|
+
base_test_DEPENDENCIES = ../lib/libmarisa.la
|
58
|
+
am_io_test_OBJECTS = io-test.$(OBJEXT)
|
59
|
+
io_test_OBJECTS = $(am_io_test_OBJECTS)
|
60
|
+
io_test_DEPENDENCIES = ../lib/libmarisa.la
|
61
|
+
am_marisa_test_OBJECTS = marisa-test.$(OBJEXT)
|
62
|
+
marisa_test_OBJECTS = $(am_marisa_test_OBJECTS)
|
63
|
+
marisa_test_DEPENDENCIES = ../lib/libmarisa.la
|
64
|
+
am_trie_test_OBJECTS = trie-test.$(OBJEXT)
|
65
|
+
trie_test_OBJECTS = $(am_trie_test_OBJECTS)
|
66
|
+
trie_test_DEPENDENCIES = ../lib/libmarisa.la
|
67
|
+
am_vector_test_OBJECTS = vector-test.$(OBJEXT)
|
68
|
+
vector_test_OBJECTS = $(am_vector_test_OBJECTS)
|
69
|
+
vector_test_DEPENDENCIES = ../lib/libmarisa.la
|
70
|
+
DEFAULT_INCLUDES = -I.@am__isrc@
|
71
|
+
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
72
|
+
am__depfiles_maybe = depfiles
|
73
|
+
am__mv = mv -f
|
74
|
+
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
75
|
+
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
76
|
+
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
77
|
+
--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
78
|
+
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
79
|
+
CXXLD = $(CXX)
|
80
|
+
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
81
|
+
--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
|
82
|
+
$(LDFLAGS) -o $@
|
83
|
+
SOURCES = $(base_test_SOURCES) $(io_test_SOURCES) \
|
84
|
+
$(marisa_test_SOURCES) $(trie_test_SOURCES) \
|
85
|
+
$(vector_test_SOURCES)
|
86
|
+
DIST_SOURCES = $(base_test_SOURCES) $(io_test_SOURCES) \
|
87
|
+
$(marisa_test_SOURCES) $(trie_test_SOURCES) \
|
88
|
+
$(vector_test_SOURCES)
|
89
|
+
HEADERS = $(noinst_HEADERS)
|
90
|
+
ETAGS = etags
|
91
|
+
CTAGS = ctags
|
92
|
+
am__tty_colors = \
|
93
|
+
red=; grn=; lgn=; blu=; std=
|
94
|
+
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
95
|
+
ACLOCAL = @ACLOCAL@
|
96
|
+
AMTAR = @AMTAR@
|
97
|
+
AR = @AR@
|
98
|
+
AUTOCONF = @AUTOCONF@
|
99
|
+
AUTOHEADER = @AUTOHEADER@
|
100
|
+
AUTOMAKE = @AUTOMAKE@
|
101
|
+
AWK = @AWK@
|
102
|
+
CC = @CC@
|
103
|
+
CCDEPMODE = @CCDEPMODE@
|
104
|
+
CFLAGS = @CFLAGS@
|
105
|
+
CPP = @CPP@
|
106
|
+
CPPFLAGS = @CPPFLAGS@
|
107
|
+
CXX = @CXX@
|
108
|
+
CXXCPP = @CXXCPP@
|
109
|
+
CXXDEPMODE = @CXXDEPMODE@
|
110
|
+
CXXFLAGS = @CXXFLAGS@
|
111
|
+
CYGPATH_W = @CYGPATH_W@
|
112
|
+
DEFS = @DEFS@
|
113
|
+
DEPDIR = @DEPDIR@
|
114
|
+
DLLTOOL = @DLLTOOL@
|
115
|
+
DSYMUTIL = @DSYMUTIL@
|
116
|
+
DUMPBIN = @DUMPBIN@
|
117
|
+
ECHO_C = @ECHO_C@
|
118
|
+
ECHO_N = @ECHO_N@
|
119
|
+
ECHO_T = @ECHO_T@
|
120
|
+
EGREP = @EGREP@
|
121
|
+
EXEEXT = @EXEEXT@
|
122
|
+
FGREP = @FGREP@
|
123
|
+
GREP = @GREP@
|
124
|
+
INSTALL = @INSTALL@
|
125
|
+
INSTALL_DATA = @INSTALL_DATA@
|
126
|
+
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
127
|
+
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
128
|
+
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
129
|
+
LD = @LD@
|
130
|
+
LDFLAGS = @LDFLAGS@
|
131
|
+
LIBOBJS = @LIBOBJS@
|
132
|
+
LIBS = @LIBS@
|
133
|
+
LIBTOOL = @LIBTOOL@
|
134
|
+
LIPO = @LIPO@
|
135
|
+
LN_S = @LN_S@
|
136
|
+
LTLIBOBJS = @LTLIBOBJS@
|
137
|
+
MAKEINFO = @MAKEINFO@
|
138
|
+
MANIFEST_TOOL = @MANIFEST_TOOL@
|
139
|
+
MKDIR_P = @MKDIR_P@
|
140
|
+
NM = @NM@
|
141
|
+
NMEDIT = @NMEDIT@
|
142
|
+
OBJDUMP = @OBJDUMP@
|
143
|
+
OBJEXT = @OBJEXT@
|
144
|
+
OTOOL = @OTOOL@
|
145
|
+
OTOOL64 = @OTOOL64@
|
146
|
+
PACKAGE = @PACKAGE@
|
147
|
+
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
148
|
+
PACKAGE_NAME = @PACKAGE_NAME@
|
149
|
+
PACKAGE_STRING = @PACKAGE_STRING@
|
150
|
+
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
151
|
+
PACKAGE_URL = @PACKAGE_URL@
|
152
|
+
PACKAGE_VERSION = @PACKAGE_VERSION@
|
153
|
+
PATH_SEPARATOR = @PATH_SEPARATOR@
|
154
|
+
RANLIB = @RANLIB@
|
155
|
+
SED = @SED@
|
156
|
+
SET_MAKE = @SET_MAKE@
|
157
|
+
SHELL = @SHELL@
|
158
|
+
STRIP = @STRIP@
|
159
|
+
VERSION = @VERSION@
|
160
|
+
abs_builddir = @abs_builddir@
|
161
|
+
abs_srcdir = @abs_srcdir@
|
162
|
+
abs_top_builddir = @abs_top_builddir@
|
163
|
+
abs_top_srcdir = @abs_top_srcdir@
|
164
|
+
ac_ct_AR = @ac_ct_AR@
|
165
|
+
ac_ct_CC = @ac_ct_CC@
|
166
|
+
ac_ct_CXX = @ac_ct_CXX@
|
167
|
+
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
168
|
+
am__include = @am__include@
|
169
|
+
am__leading_dot = @am__leading_dot@
|
170
|
+
am__quote = @am__quote@
|
171
|
+
am__tar = @am__tar@
|
172
|
+
am__untar = @am__untar@
|
173
|
+
bindir = @bindir@
|
174
|
+
build = @build@
|
175
|
+
build_alias = @build_alias@
|
176
|
+
build_cpu = @build_cpu@
|
177
|
+
build_os = @build_os@
|
178
|
+
build_vendor = @build_vendor@
|
179
|
+
builddir = @builddir@
|
180
|
+
datadir = @datadir@
|
181
|
+
datarootdir = @datarootdir@
|
182
|
+
docdir = @docdir@
|
183
|
+
dvidir = @dvidir@
|
184
|
+
exec_prefix = @exec_prefix@
|
185
|
+
host = @host@
|
186
|
+
host_alias = @host_alias@
|
187
|
+
host_cpu = @host_cpu@
|
188
|
+
host_os = @host_os@
|
189
|
+
host_vendor = @host_vendor@
|
190
|
+
htmldir = @htmldir@
|
191
|
+
includedir = @includedir@
|
192
|
+
infodir = @infodir@
|
193
|
+
install_sh = @install_sh@
|
194
|
+
libdir = @libdir@
|
195
|
+
libexecdir = @libexecdir@
|
196
|
+
localedir = @localedir@
|
197
|
+
localstatedir = @localstatedir@
|
198
|
+
mandir = @mandir@
|
199
|
+
mkdir_p = @mkdir_p@
|
200
|
+
oldincludedir = @oldincludedir@
|
201
|
+
pdfdir = @pdfdir@
|
202
|
+
prefix = @prefix@
|
203
|
+
program_transform_name = @program_transform_name@
|
204
|
+
psdir = @psdir@
|
205
|
+
sbindir = @sbindir@
|
206
|
+
sharedstatedir = @sharedstatedir@
|
207
|
+
srcdir = @srcdir@
|
208
|
+
sysconfdir = @sysconfdir@
|
209
|
+
target_alias = @target_alias@
|
210
|
+
top_build_prefix = @top_build_prefix@
|
211
|
+
top_builddir = @top_builddir@
|
212
|
+
top_srcdir = @top_srcdir@
|
213
|
+
AM_CXXFLAGS = -Wall -Weffc++ -Wextra -D_DEBUG -I${top_srcdir}/lib
|
214
|
+
noinst_HEADERS = marisa-assert.h
|
215
|
+
base_test_SOURCES = base-test.cc
|
216
|
+
base_test_LDADD = ../lib/libmarisa.la
|
217
|
+
io_test_SOURCES = io-test.cc
|
218
|
+
io_test_LDADD = ../lib/libmarisa.la
|
219
|
+
vector_test_SOURCES = vector-test.cc
|
220
|
+
vector_test_LDADD = ../lib/libmarisa.la
|
221
|
+
trie_test_SOURCES = trie-test.cc
|
222
|
+
trie_test_LDADD = ../lib/libmarisa.la
|
223
|
+
marisa_test_SOURCES = marisa-test.cc
|
224
|
+
marisa_test_LDADD = ../lib/libmarisa.la
|
225
|
+
all: all-am
|
226
|
+
|
227
|
+
.SUFFIXES:
|
228
|
+
.SUFFIXES: .cc .lo .o .obj
|
229
|
+
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
230
|
+
@for dep in $?; do \
|
231
|
+
case '$(am__configure_deps)' in \
|
232
|
+
*$$dep*) \
|
233
|
+
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
234
|
+
&& { if test -f $@; then exit 0; else break; fi; }; \
|
235
|
+
exit 1;; \
|
236
|
+
esac; \
|
237
|
+
done; \
|
238
|
+
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
|
239
|
+
$(am__cd) $(top_srcdir) && \
|
240
|
+
$(AUTOMAKE) --gnu tests/Makefile
|
241
|
+
.PRECIOUS: Makefile
|
242
|
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
243
|
+
@case '$?' in \
|
244
|
+
*config.status*) \
|
245
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
246
|
+
*) \
|
247
|
+
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
248
|
+
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
249
|
+
esac;
|
250
|
+
|
251
|
+
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
252
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
253
|
+
|
254
|
+
$(top_srcdir)/configure: $(am__configure_deps)
|
255
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
256
|
+
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
257
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
258
|
+
$(am__aclocal_m4_deps):
|
259
|
+
|
260
|
+
clean-checkPROGRAMS:
|
261
|
+
@list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
|
262
|
+
echo " rm -f" $$list; \
|
263
|
+
rm -f $$list || exit $$?; \
|
264
|
+
test -n "$(EXEEXT)" || exit 0; \
|
265
|
+
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
266
|
+
echo " rm -f" $$list; \
|
267
|
+
rm -f $$list
|
268
|
+
base-test$(EXEEXT): $(base_test_OBJECTS) $(base_test_DEPENDENCIES) $(EXTRA_base_test_DEPENDENCIES)
|
269
|
+
@rm -f base-test$(EXEEXT)
|
270
|
+
$(CXXLINK) $(base_test_OBJECTS) $(base_test_LDADD) $(LIBS)
|
271
|
+
io-test$(EXEEXT): $(io_test_OBJECTS) $(io_test_DEPENDENCIES) $(EXTRA_io_test_DEPENDENCIES)
|
272
|
+
@rm -f io-test$(EXEEXT)
|
273
|
+
$(CXXLINK) $(io_test_OBJECTS) $(io_test_LDADD) $(LIBS)
|
274
|
+
marisa-test$(EXEEXT): $(marisa_test_OBJECTS) $(marisa_test_DEPENDENCIES) $(EXTRA_marisa_test_DEPENDENCIES)
|
275
|
+
@rm -f marisa-test$(EXEEXT)
|
276
|
+
$(CXXLINK) $(marisa_test_OBJECTS) $(marisa_test_LDADD) $(LIBS)
|
277
|
+
trie-test$(EXEEXT): $(trie_test_OBJECTS) $(trie_test_DEPENDENCIES) $(EXTRA_trie_test_DEPENDENCIES)
|
278
|
+
@rm -f trie-test$(EXEEXT)
|
279
|
+
$(CXXLINK) $(trie_test_OBJECTS) $(trie_test_LDADD) $(LIBS)
|
280
|
+
vector-test$(EXEEXT): $(vector_test_OBJECTS) $(vector_test_DEPENDENCIES) $(EXTRA_vector_test_DEPENDENCIES)
|
281
|
+
@rm -f vector-test$(EXEEXT)
|
282
|
+
$(CXXLINK) $(vector_test_OBJECTS) $(vector_test_LDADD) $(LIBS)
|
283
|
+
|
284
|
+
mostlyclean-compile:
|
285
|
+
-rm -f *.$(OBJEXT)
|
286
|
+
|
287
|
+
distclean-compile:
|
288
|
+
-rm -f *.tab.c
|
289
|
+
|
290
|
+
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base-test.Po@am__quote@
|
291
|
+
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/io-test.Po@am__quote@
|
292
|
+
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/marisa-test.Po@am__quote@
|
293
|
+
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/trie-test.Po@am__quote@
|
294
|
+
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vector-test.Po@am__quote@
|
295
|
+
|
296
|
+
.cc.o:
|
297
|
+
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
298
|
+
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
299
|
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
300
|
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
301
|
+
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
|
302
|
+
|
303
|
+
.cc.obj:
|
304
|
+
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
305
|
+
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
306
|
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
307
|
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
308
|
+
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
309
|
+
|
310
|
+
.cc.lo:
|
311
|
+
@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
312
|
+
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
313
|
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
314
|
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
315
|
+
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
|
316
|
+
|
317
|
+
mostlyclean-libtool:
|
318
|
+
-rm -f *.lo
|
319
|
+
|
320
|
+
clean-libtool:
|
321
|
+
-rm -rf .libs _libs
|
322
|
+
|
323
|
+
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
324
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
325
|
+
unique=`for i in $$list; do \
|
326
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
327
|
+
done | \
|
328
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
329
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
330
|
+
mkid -fID $$unique
|
331
|
+
tags: TAGS
|
332
|
+
|
333
|
+
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
334
|
+
$(TAGS_FILES) $(LISP)
|
335
|
+
set x; \
|
336
|
+
here=`pwd`; \
|
337
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
338
|
+
unique=`for i in $$list; do \
|
339
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
340
|
+
done | \
|
341
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
342
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
343
|
+
shift; \
|
344
|
+
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
345
|
+
test -n "$$unique" || unique=$$empty_fix; \
|
346
|
+
if test $$# -gt 0; then \
|
347
|
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
348
|
+
"$$@" $$unique; \
|
349
|
+
else \
|
350
|
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
351
|
+
$$unique; \
|
352
|
+
fi; \
|
353
|
+
fi
|
354
|
+
ctags: CTAGS
|
355
|
+
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
356
|
+
$(TAGS_FILES) $(LISP)
|
357
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
358
|
+
unique=`for i in $$list; do \
|
359
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
360
|
+
done | \
|
361
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
362
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
363
|
+
test -z "$(CTAGS_ARGS)$$unique" \
|
364
|
+
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
365
|
+
$$unique
|
366
|
+
|
367
|
+
GTAGS:
|
368
|
+
here=`$(am__cd) $(top_builddir) && pwd` \
|
369
|
+
&& $(am__cd) $(top_srcdir) \
|
370
|
+
&& gtags -i $(GTAGS_ARGS) "$$here"
|
371
|
+
|
372
|
+
distclean-tags:
|
373
|
+
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
374
|
+
|
375
|
+
check-TESTS: $(TESTS)
|
376
|
+
@failed=0; all=0; xfail=0; xpass=0; skip=0; \
|
377
|
+
srcdir=$(srcdir); export srcdir; \
|
378
|
+
list=' $(TESTS) '; \
|
379
|
+
$(am__tty_colors); \
|
380
|
+
if test -n "$$list"; then \
|
381
|
+
for tst in $$list; do \
|
382
|
+
if test -f ./$$tst; then dir=./; \
|
383
|
+
elif test -f $$tst; then dir=; \
|
384
|
+
else dir="$(srcdir)/"; fi; \
|
385
|
+
if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
|
386
|
+
all=`expr $$all + 1`; \
|
387
|
+
case " $(XFAIL_TESTS) " in \
|
388
|
+
*[\ \ ]$$tst[\ \ ]*) \
|
389
|
+
xpass=`expr $$xpass + 1`; \
|
390
|
+
failed=`expr $$failed + 1`; \
|
391
|
+
col=$$red; res=XPASS; \
|
392
|
+
;; \
|
393
|
+
*) \
|
394
|
+
col=$$grn; res=PASS; \
|
395
|
+
;; \
|
396
|
+
esac; \
|
397
|
+
elif test $$? -ne 77; then \
|
398
|
+
all=`expr $$all + 1`; \
|
399
|
+
case " $(XFAIL_TESTS) " in \
|
400
|
+
*[\ \ ]$$tst[\ \ ]*) \
|
401
|
+
xfail=`expr $$xfail + 1`; \
|
402
|
+
col=$$lgn; res=XFAIL; \
|
403
|
+
;; \
|
404
|
+
*) \
|
405
|
+
failed=`expr $$failed + 1`; \
|
406
|
+
col=$$red; res=FAIL; \
|
407
|
+
;; \
|
408
|
+
esac; \
|
409
|
+
else \
|
410
|
+
skip=`expr $$skip + 1`; \
|
411
|
+
col=$$blu; res=SKIP; \
|
412
|
+
fi; \
|
413
|
+
echo "$${col}$$res$${std}: $$tst"; \
|
414
|
+
done; \
|
415
|
+
if test "$$all" -eq 1; then \
|
416
|
+
tests="test"; \
|
417
|
+
All=""; \
|
418
|
+
else \
|
419
|
+
tests="tests"; \
|
420
|
+
All="All "; \
|
421
|
+
fi; \
|
422
|
+
if test "$$failed" -eq 0; then \
|
423
|
+
if test "$$xfail" -eq 0; then \
|
424
|
+
banner="$$All$$all $$tests passed"; \
|
425
|
+
else \
|
426
|
+
if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
|
427
|
+
banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
|
428
|
+
fi; \
|
429
|
+
else \
|
430
|
+
if test "$$xpass" -eq 0; then \
|
431
|
+
banner="$$failed of $$all $$tests failed"; \
|
432
|
+
else \
|
433
|
+
if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
|
434
|
+
banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
|
435
|
+
fi; \
|
436
|
+
fi; \
|
437
|
+
dashes="$$banner"; \
|
438
|
+
skipped=""; \
|
439
|
+
if test "$$skip" -ne 0; then \
|
440
|
+
if test "$$skip" -eq 1; then \
|
441
|
+
skipped="($$skip test was not run)"; \
|
442
|
+
else \
|
443
|
+
skipped="($$skip tests were not run)"; \
|
444
|
+
fi; \
|
445
|
+
test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
|
446
|
+
dashes="$$skipped"; \
|
447
|
+
fi; \
|
448
|
+
report=""; \
|
449
|
+
if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
|
450
|
+
report="Please report to $(PACKAGE_BUGREPORT)"; \
|
451
|
+
test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
|
452
|
+
dashes="$$report"; \
|
453
|
+
fi; \
|
454
|
+
dashes=`echo "$$dashes" | sed s/./=/g`; \
|
455
|
+
if test "$$failed" -eq 0; then \
|
456
|
+
col="$$grn"; \
|
457
|
+
else \
|
458
|
+
col="$$red"; \
|
459
|
+
fi; \
|
460
|
+
echo "$${col}$$dashes$${std}"; \
|
461
|
+
echo "$${col}$$banner$${std}"; \
|
462
|
+
test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
|
463
|
+
test -z "$$report" || echo "$${col}$$report$${std}"; \
|
464
|
+
echo "$${col}$$dashes$${std}"; \
|
465
|
+
test "$$failed" -eq 0; \
|
466
|
+
else :; fi
|
467
|
+
|
468
|
+
distdir: $(DISTFILES)
|
469
|
+
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
470
|
+
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
471
|
+
list='$(DISTFILES)'; \
|
472
|
+
dist_files=`for file in $$list; do echo $$file; done | \
|
473
|
+
sed -e "s|^$$srcdirstrip/||;t" \
|
474
|
+
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
475
|
+
case $$dist_files in \
|
476
|
+
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
477
|
+
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
478
|
+
sort -u` ;; \
|
479
|
+
esac; \
|
480
|
+
for file in $$dist_files; do \
|
481
|
+
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
482
|
+
if test -d $$d/$$file; then \
|
483
|
+
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
484
|
+
if test -d "$(distdir)/$$file"; then \
|
485
|
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
486
|
+
fi; \
|
487
|
+
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
488
|
+
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
489
|
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
490
|
+
fi; \
|
491
|
+
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
492
|
+
else \
|
493
|
+
test -f "$(distdir)/$$file" \
|
494
|
+
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
495
|
+
|| exit 1; \
|
496
|
+
fi; \
|
497
|
+
done
|
498
|
+
check-am: all-am
|
499
|
+
$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
|
500
|
+
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
|
501
|
+
check: check-am
|
502
|
+
all-am: Makefile $(HEADERS)
|
503
|
+
installdirs:
|
504
|
+
install: install-am
|
505
|
+
install-exec: install-exec-am
|
506
|
+
install-data: install-data-am
|
507
|
+
uninstall: uninstall-am
|
508
|
+
|
509
|
+
install-am: all-am
|
510
|
+
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
511
|
+
|
512
|
+
installcheck: installcheck-am
|
513
|
+
install-strip:
|
514
|
+
if test -z '$(STRIP)'; then \
|
515
|
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
516
|
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
517
|
+
install; \
|
518
|
+
else \
|
519
|
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
520
|
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
521
|
+
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
522
|
+
fi
|
523
|
+
mostlyclean-generic:
|
524
|
+
|
525
|
+
clean-generic:
|
526
|
+
|
527
|
+
distclean-generic:
|
528
|
+
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
529
|
+
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
530
|
+
|
531
|
+
maintainer-clean-generic:
|
532
|
+
@echo "This command is intended for maintainers to use"
|
533
|
+
@echo "it deletes files that may require special tools to rebuild."
|
534
|
+
clean: clean-am
|
535
|
+
|
536
|
+
clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
|
537
|
+
mostlyclean-am
|
538
|
+
|
539
|
+
distclean: distclean-am
|
540
|
+
-rm -rf ./$(DEPDIR)
|
541
|
+
-rm -f Makefile
|
542
|
+
distclean-am: clean-am distclean-compile distclean-generic \
|
543
|
+
distclean-tags
|
544
|
+
|
545
|
+
dvi: dvi-am
|
546
|
+
|
547
|
+
dvi-am:
|
548
|
+
|
549
|
+
html: html-am
|
550
|
+
|
551
|
+
html-am:
|
552
|
+
|
553
|
+
info: info-am
|
554
|
+
|
555
|
+
info-am:
|
556
|
+
|
557
|
+
install-data-am:
|
558
|
+
|
559
|
+
install-dvi: install-dvi-am
|
560
|
+
|
561
|
+
install-dvi-am:
|
562
|
+
|
563
|
+
install-exec-am:
|
564
|
+
|
565
|
+
install-html: install-html-am
|
566
|
+
|
567
|
+
install-html-am:
|
568
|
+
|
569
|
+
install-info: install-info-am
|
570
|
+
|
571
|
+
install-info-am:
|
572
|
+
|
573
|
+
install-man:
|
574
|
+
|
575
|
+
install-pdf: install-pdf-am
|
576
|
+
|
577
|
+
install-pdf-am:
|
578
|
+
|
579
|
+
install-ps: install-ps-am
|
580
|
+
|
581
|
+
install-ps-am:
|
582
|
+
|
583
|
+
installcheck-am:
|
584
|
+
|
585
|
+
maintainer-clean: maintainer-clean-am
|
586
|
+
-rm -rf ./$(DEPDIR)
|
587
|
+
-rm -f Makefile
|
588
|
+
maintainer-clean-am: distclean-am maintainer-clean-generic
|
589
|
+
|
590
|
+
mostlyclean: mostlyclean-am
|
591
|
+
|
592
|
+
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
593
|
+
mostlyclean-libtool
|
594
|
+
|
595
|
+
pdf: pdf-am
|
596
|
+
|
597
|
+
pdf-am:
|
598
|
+
|
599
|
+
ps: ps-am
|
600
|
+
|
601
|
+
ps-am:
|
602
|
+
|
603
|
+
uninstall-am:
|
604
|
+
|
605
|
+
.MAKE: check-am install-am install-strip
|
606
|
+
|
607
|
+
.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
|
608
|
+
clean-checkPROGRAMS clean-generic clean-libtool ctags \
|
609
|
+
distclean distclean-compile distclean-generic \
|
610
|
+
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
611
|
+
html-am info info-am install install-am install-data \
|
612
|
+
install-data-am install-dvi install-dvi-am install-exec \
|
613
|
+
install-exec-am install-html install-html-am install-info \
|
614
|
+
install-info-am install-man install-pdf install-pdf-am \
|
615
|
+
install-ps install-ps-am install-strip installcheck \
|
616
|
+
installcheck-am installdirs maintainer-clean \
|
617
|
+
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
618
|
+
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
619
|
+
tags uninstall uninstall-am
|
620
|
+
|
621
|
+
|
622
|
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
623
|
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
624
|
+
.NOEXPORT:
|