1SUBDIRS = common porting_layer 2 3AM_CPPFLAGS = \ 4 -I$(top_srcdir)/include \ 5 -I$(top_srcdir)/include/internal \ 6 -I$(top_srcdir)/src/porting_layer/include \ 7 -DCHEWING_DATADIR=\"$(datadir)/libchewing\" \ 8 $(USERPHRASE_CPPFLAGS) \ 9 $(DEFAULT_CPPFLAGS) \ 10 $(NULL) 11 12noinst_HEADERS = \ 13 private.h \ 14 $(NULL) 15 16lib_LTLIBRARIES = libchewing.la 17libchewing_la_SOURCES = \ 18 compat.c \ 19 chewingio.c \ 20 chewingutil.c \ 21 choice.c \ 22 dict.c \ 23 tree.c \ 24 bopomofo.c \ 25 pinyin.c \ 26 mod_aux.c \ 27 userphrase.c \ 28 $(USERPHRASE_SOURCES) \ 29 $(NULL) 30 31libchewing_la_LIBADD = \ 32 $(top_builddir)/src/common/libcommon.la \ 33 $(top_builddir)/src/porting_layer/src/libporting_layer.la \ 34 $(NULL) 35 36libchewing_la_LDFLAGS = \ 37 -version-number $(LIBCHEWING_MAJOR):$(LIBCHEWING_MINOR):$(LIBCHEWING_REVISION) \ 38 -rpath $(libdir) \ 39 -no-undefined \ 40 $(NO_UNDEFINED_LDFLAGS) \ 41 -export-symbols-regex "^(chewing)_" \ 42 $(NULL) 43 44if WITH_SQLITE3 45libchewing_la_SOURCES += \ 46 chewing-sql.c \ 47 userphrase-sql.c \ 48 $(NULL) 49 50if WITH_INTERNAL_SQLITE3 51libchewing_la_LIBADD += \ 52 $(top_builddir)/thirdparty/sqlite-amalgamation/libsqlite3-internal.la \ 53 $(NULL) 54endif 55 56else 57libchewing_la_SOURCES += \ 58 hash.c \ 59 userphrase-hash.c \ 60 $(NULL) 61endif 62