forked from maemo-leste/libcmtspeechdata
/
Makefile.am
136 lines (105 loc) · 3.08 KB
/
Makefile.am
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Copyright (C) 2008,2009,2010 Nokia Corporation
# Contact: Kai Vehmanen
# Licensed under LGPL. See file COPYING.
SUBDIRS = doc \
dummy-backend
EXTRA_DIST = cmtspeech_config.h.in \
libcmtspeechdata.ver
# libcmtspeechdata main library sources
# -------------------------------------
lib_LTLIBRARIES = libcmtspeechdata.la
nokiamodem_src = cmtspeech_msgs.c \
cmtspeech_nokiamodem.c \
cmtspeech_backend_common.c
nokiamodem_kernel_inc = \
kernel-headers/linux/cs-protocol.h
dummy_src = dummy-backend/dummy_common.c \
dummy-backend/cmtspeech_dummy.c \
cmtspeech_backend_common.c \
cmtspeech_msgs.c
cmtspeechdata_common_src = \
sal_debug.c
cmtspeechdata_common_inc = \
cmtspeech_backend_common.h \
sal_ring.h \
sal_debug.h
cmtspeechdata_pub_inc = \
cmtspeech.h \
cmtspeech_msgs.h
cmtspeechdata_pub_inc_nodist = \
cmtspeech_config.h
backend_src=
backend_cflags=
backend_noinst_programs=
backend_tests=
if USE_BACKEND_DUMMY
backend_src += $(dummy_src)
backend_cflags += "-I${top_srcdir}/dummy-backend/"
endif
if USE_BACKEND_NOKIAMODEM
backend_src += $(nokiamodem_src)
backend_noinst_programs += test_cmtspeech_msgs
backend_tests += test_cmtspeech_msgs
endif
if USE_BACKEND_NULL
backend_src += cmtspeech_null.c
endif
include_HEADERS = $(cmtspeechdata_pub_inc)
nodist_include_HEADERS =$(cmtspeechdata_pub_inc_nodist)
libcmtspeechdata_la_SOURCES = \
$(cmtspeechdata_common_src) \
$(cmtspeechdata_pub_inc) \
$(backend_src)
libcmtspeechdata_la_CFLAGS = \
-prefer-pic $(backend_cflags)
libcmtspeechdata_la_LIBADD = -lrt
libcmtspeechdata_la_LDFLAGS = \
-Wl,--version-script,$(srcdir)/libcmtspeechdata.ver \
-version-info 1:0:1
# test application sources
# ------------------------
TESTS = test_ring \
$(backend_tests)
noinst_PROGRAMS = test_ring \
test_cmtspeech \
utils/send_cmtspeech_reset \
utils/cmtspeech_ramp_test \
utils/cmtspeech_ofono_test \
$(backend_noinst_programs)
noinst_HEADERS = $(cmtspeechdata_common_inc) \
$(nokiamodem_kernel_inc)
test_cmtspeech_msgs_SOURCES = test_cmtspeech_msgs.c
test_cmtspeech_msgs_CFLAGS = @CHECK_CFLAGS@
test_cmtspeech_msgs_LDADD = \
@CHECK_LIBS@ \
libcmtspeechdata.la
test_cmtspeech_SOURCES = test_cmtspeech.c
test_cmtspeech_CFLAGS = @CHECK_CFLAGS@
test_cmtspeech_LDADD = @CHECK_LIBS@ \
libcmtspeechdata.la \
-lrt
test_ring_CFLAGS = @CHECK_CFLAGS@
test_ring_LDADD = @CHECK_LIBS@ \
libcmtspeechdata.la
utils_send_cmtspeech_reset_SOURCES = utils/send_cmtspeech_reset.c
utils_send_cmtspeech_reset_LDADD = \
libcmtspeechdata.la
utils_cmtspeech_ramp_test_SOURCES = utils/cmtspeech_ramp_test.c
utils_cmtspeech_ramp_test_LDADD = \
libcmtspeechdata.la
utils_cmtspeech_ofono_test_SOURCES = utils/cmtspeech_ofono_test.c
utils_cmtspeech_ofono_test_CFLAGS = \
@DBUS_CFLAGS@
utils_cmtspeech_ofono_test_LDADD = \
@DBUS_LIBS@ \
libcmtspeechdata.la
# pkg-config
# ----------
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcmtspeechdata.pc
$(pkgconfig_DATA): config.status
# documentation rules
# -------------------
doc:
(cd doc && $(MAKE) $(AM_MAKEFLAGS) doc)
.PHONY : doc