summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am8
-rw-r--r--src/pinyin.cpp2
-rw-r--r--src/pinyin.h10
3 files changed, 20 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 6894e01..ad037fb 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -24,6 +24,14 @@ CLEANFILES = *.bak
ACLOCAL = aclocal -I $(ac_aux_dir)
+INCLUDES = -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/include \
+ -I$(top_srcdir)/src/storage \
+ -I$(top_srcdir)/src/lookup \
+ @GLIB2_CPPFLAGS@
+
+noinst_HEADERS = pinyin.h
+
noinst_LTLIBRARIES = libpinyin.la
libpinyin_la_LDFLAGS = -static
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index f7f6a7e..27f8dbf 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -1 +1,3 @@
+#include "pinyin.h"
+
/* Place holder for combining static libraries in sub-directories. */
diff --git a/src/pinyin.h b/src/pinyin.h
new file mode 100644
index 0000000..35611ee
--- /dev/null
+++ b/src/pinyin.h
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include "novel_types.h"
+#include "memory_chunk.h"
+#include "pinyin_base.h"
+#include "pinyin_phrase.h"
+#include "pinyin_large_table.h"
+#include "phrase_large_table.h"
+#include "phrase_index.h"
+#include "ngram.h"
+#include "pinyin_lookup.h"