summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-10-14 14:05:27 +0800
committerPeng Wu <alexepico@gmail.com>2013-10-14 14:05:27 +0800
commit09a9b8859ffb137104943525416ea7fd6bd580c5 (patch)
treed3873627255bfb7098773d4da9ab3d9510a51097 /tests
parent25c03d42ad0ffdbf7128e5f4fefa083fa85d4c1d (diff)
downloadlibzhuyin-09a9b8859ffb137104943525416ea7fd6bd580c5.tar.gz
libzhuyin-09a9b8859ffb137104943525416ea7fd6bd580c5.tar.xz
libzhuyin-09a9b8859ffb137104943525416ea7fd6bd580c5.zip
clean up Makefile.am
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am8
-rw-r--r--tests/include/Makefile.am9
-rw-r--r--tests/lookup/Makefile.am10
-rw-r--r--tests/storage/Makefile.am42
4 files changed, 23 insertions, 46 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index dc3a371..1594163 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -30,6 +30,8 @@ INCLUDES = -I$(top_srcdir)/src \
-I$(top_srcdir)/src/lookup \
@GLIB2_CFLAGS@
+LDADD = ../src/libzhuyin.la @GLIB2_LIBS@
+
noinst_HEADERS = timer.h \
tests_helper.h
@@ -39,12 +41,6 @@ noinst_PROGRAMS = test_pinyin \
test_pinyin_SOURCES = test_pinyin.cpp
-test_pinyin_LDADD = ../src/libzhuyin.la @GLIB2_LIBS@
-
test_phrase_SOURCES = test_phrase.cpp
-test_phrase_LDADD = ../src/libzhuyin.la @GLIB2_LIBS@
-
test_chewing_SOURCES = test_chewing.cpp
-
-test_chewing_LDADD = ../src/libzhuyin.la @GLIB2_LIBS@
diff --git a/tests/include/Makefile.am b/tests/include/Makefile.am
index 7174bec..f52c5ac 100644
--- a/tests/include/Makefile.am
+++ b/tests/include/Makefile.am
@@ -21,11 +21,10 @@ INCLUDES = -I$(top_srcdir)/src \
-I$(top_srcdir)/src/lookup \
@GLIB2_CFLAGS@
-TESTS = test_memory_chunk
+LDADD = @GLIB2_LIBS@
-noinst_PROGRAMS = test_memory_chunk
+TESTS = test_memory_chunk
-test_memory_chunk_SOURCES = test_memory_chunk.cpp
-
-test_memory_chunk_LDADD = @GLIB2_LIBS@
+noinst_PROGRAMS = test_memory_chunk
+test_memory_chunk_SOURCES = test_memory_chunk.cpp
diff --git a/tests/lookup/Makefile.am b/tests/lookup/Makefile.am
index 91d72a1..93c8f08 100644
--- a/tests/lookup/Makefile.am
+++ b/tests/lookup/Makefile.am
@@ -22,13 +22,11 @@ INCLUDES = -I$(top_srcdir)/src \
-I$(top_srcdir)/tests \
@GLIB2_CFLAGS@
-noinst_PROGRAMS = test_pinyin_lookup \
- test_phrase_lookup
+LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@
-test_pinyin_lookup_SOURCES = test_pinyin_lookup.cpp
+noinst_PROGRAMS = test_pinyin_lookup \
+ test_phrase_lookup
-test_pinyin_lookup_LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@
+test_pinyin_lookup_SOURCES = test_pinyin_lookup.cpp
test_phrase_lookup_SOURCES = test_phrase_lookup.cpp
-
-test_phrase_lookup_LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@
diff --git a/tests/storage/Makefile.am b/tests/storage/Makefile.am
index d8a63df..10483e4 100644
--- a/tests/storage/Makefile.am
+++ b/tests/storage/Makefile.am
@@ -22,50 +22,34 @@ INCLUDES = -I$(top_srcdir)/src \
-I$(top_srcdir)/tests \
@GLIB2_CFLAGS@
-TESTS = test_phrase_index_logger \
- test_ngram \
- test_flexible_ngram
+LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@
-noinst_PROGRAMS = test_phrase_index \
- test_phrase_index_logger \
- test_phrase_table \
- test_ngram \
- test_flexible_ngram \
- test_parser2 \
- test_chewing_table \
- test_table_info
+TESTS = test_phrase_index_logger \
+ test_ngram \
+ test_flexible_ngram
+noinst_PROGRAMS = test_phrase_index \
+ test_phrase_index_logger \
+ test_phrase_table \
+ test_ngram \
+ test_flexible_ngram \
+ test_parser2 \
+ test_chewing_table \
+ test_table_info
-test_phrase_index_SOURCES = test_phrase_index.cpp
-test_phrase_index_LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@
+test_phrase_index_SOURCES = test_phrase_index.cpp
test_phrase_index_logger_SOURCES = test_phrase_index_logger.cpp
-test_phrase_index_logger_LDADD = ../../src/libzhuyin_internal.la \
- @GLIB2_LIBS@
-
test_phrase_table_SOURCES = test_phrase_table.cpp
-test_phrase_table_LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@
-
test_ngram_SOURCES = test_ngram.cpp
-test_ngram_LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@
-
test_flexible_ngram_SOURCES = test_flexible_ngram.cpp
-test_flexible_ngram_LDADD = ../../src/libzhuyin_internal.la \
- @GLIB2_LIBS@
-
test_parser2_SOURCES = test_parser2.cpp
-test_parser2_LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@
-
test_chewing_table_SOURCES = test_chewing_table.cpp
-test_chewing_table_LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@
-
test_table_info_SOURCES = test_table_info.cpp
-
-test_table_info_LDADD = ../../src/libzhuyin_internal.la @GLIB2_LIBS@