File: Makefile.am

package info (click to toggle)
libchewing 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,220 kB
  • ctags: 10,179
  • sloc: ansic: 103,539; sh: 11,563; makefile: 316; python: 98
file content (106 lines) | stat: -rw-r--r-- 2,127 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
valgrind-check: testchewing
	@echo "Please waiting for the valgrind results..."
	libtool --mode=execute valgrind \
		--leak-check=full \
		--show-reachable=yes \
		./testchewing < $(srcdir)/data/default-test.txt

noinst_LTLIBRARIES = libtesthelper.la

dist_noinst_DATA = \
	data/default-test.txt \
	data/dictionary.dat \
	data/index_tree.dat \
	data/phone.cin \
	data/pinyin.tab \
	data/swkb.dat \
	data/symbols.dat \
	data/tsi.src \
	$(NULL)

libtesthelper_la_SOURCES = \
	testhelper.c \
	$(NULL)

libtesthelper_la_LIBADD = \
	$(top_builddir)/src/libchewing.la \
	$(NULL)

TESTS = $(NATIVE_TESTS)
NATIVE_TESTS = \
	test-bopomofo \
	test-config \
	test-easy-symbol \
	test-error-handling \
	test-fullshape \
	test-key2pho \
	test-keyboard \
	test-keyboardless \
	test-logger \
	test-mmap \
	test-path \
	test-reset \
	test-regression \
	test-symbol \
	test-special-symbol \
	test-struct-size \
	test-userphrase \
	test-utf8 \
	$(NULL)

check_HEADERS = \
	testhelper.h \
	$(NULL)

check_PROGRAMS = \
	performance \
	testchewing \
	simulate \
	randkeystroke \
	$(TEXT_UI_BIN) \
	$(NATIVE_TESTS) \
	$(NULL)

if ENABLE_TEXT_UI
TEXT_UI_BIN=genkeystroke
genkeystroke_SOURCES = genkeystroke.c
genkeystroke_LDADD = $(LDADD) @CURSES_LIB@
else
TEXT_UI_BIN=
endif

AM_CPPFLAGS = \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/include/internal \
	-I$(top_srcdir)/src/porting_layer/include \
	-I$(top_srcdir)/test/ \
	-I$(top_srcdir)/thirdparty/sqlite-amalgamation \
	-DCHEWING_DATA_PREFIX="\"$(top_builddir)/data\"" \
	-DTEST_HASH_DIR="\"$(PWD)\"" \
	-DTEST_DATA_DIR="\"$(srcdir)/data\"" \
	$(DEFAULT_CPPFLAGS) \
	$(CHECK_CFLAGS) \
	$(NULL)

LDADD = \
	$(top_builddir)/src/common/libcommon.la \
	$(top_builddir)/src/porting_layer/src/libporting_layer.la \
	$(top_builddir)/test/libtesthelper.la \
	$(NULL)

AM_LDFLAGS = -static

if WITH_SQLITE3
if WITH_INTERNAL_SQLITE3
sqlite3_SOURCES = \
	$(top_srcdir)/thirdparty/sqlite-amalgamation/shell.c \
	$(top_srcdir)/thirdparty/sqlite-amalgamation/sqlite3.c \
	$(NULL)

check_PROGRAMS += \
	sqlite3 \
	$(NULL)
endif
endif

CLEANFILES = uhash.dat materials.txt-random chewing.sqlite3 test.sqlite3