summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-09-09 14:32:45 +0800
committerPeng Wu <alexepico@gmail.com>2010-09-09 14:32:45 +0800
commitc8fbacc76996e693d734d0d5c94f63a7d6fe198a (patch)
treea590e146edbaa8957ddaa5ccfc1defba1ca8113e /src
parent9c20d17c0978f47ff2ae6e5f49f78a81db3040fa (diff)
downloadlibpinyin-c8fbacc76996e693d734d0d5c94f63a7d6fe198a.tar.gz
libpinyin-c8fbacc76996e693d734d0d5c94f63a7d6fe198a.tar.xz
libpinyin-c8fbacc76996e693d734d0d5c94f63a7d6fe198a.zip
combine into libpinyin.a
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am8
-rw-r--r--src/lookup/Makefile.am2
-rw-r--r--src/pinyin.cpp1
-rw-r--r--src/storage/Makefile.am4
4 files changed, 14 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 59e009f..6894e01 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,3 +23,11 @@ MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = *.bak
ACLOCAL = aclocal -I $(ac_aux_dir)
+
+noinst_LTLIBRARIES = libpinyin.la
+
+libpinyin_la_LDFLAGS = -static
+
+libpinyin_la_SOURCES = pinyin.cpp
+
+libpinyin_la_LIBADD = storage/libstorage.la lookup/liblookup.la
diff --git a/src/lookup/Makefile.am b/src/lookup/Makefile.am
index 2b7d21f..7ad7ac3 100644
--- a/src/lookup/Makefile.am
+++ b/src/lookup/Makefile.am
@@ -27,4 +27,6 @@ noinst_PROGRAMS =
noinst_LTLIBRARIES = liblookup.la
+liblookup_la_LDFLAGS = -static
+
liblookup_la_SOURCES = pinyin_lookup.cpp winner_tree.cpp
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
new file mode 100644
index 0000000..f7f6a7e
--- /dev/null
+++ b/src/pinyin.cpp
@@ -0,0 +1 @@
+/* Place holder for combining static libraries in sub-directories. */
diff --git a/src/storage/Makefile.am b/src/storage/Makefile.am
index 2ffcfbd..c486800 100644
--- a/src/storage/Makefile.am
+++ b/src/storage/Makefile.am
@@ -27,7 +27,9 @@ noinst_HEADERS = pinyin_large_table.h \
phrase_large_table.h \
ngram.h
-noinst_LTLIBRARIES = libstorage.la
+noinst_LTLIBRARIES = libstorage.la
+
+libstorage_la_LDFLAGS = -static
libstorage_la_SOURCES = pinyin_base.cpp \
pinyin_large_table.cpp \