blob: 80b22197a7fda4f1a3b3221cef7a7fd45d81461c (
plain)
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
|
SUBDIRS=. tests
udevrulesdir = $(UDEV_BASE_DIR)/rules.d
udevrules_DATA = \
77-mm-usb-device-blacklist.rules \
77-mm-pcmcia-device-blacklist.rules \
77-mm-platform-serial-whitelist.rules \
77-mm-usb-serial-adapters-greylist.rules \
80-mm-candidate.rules
noinst_LTLIBRARIES = libmodem-helpers.la libserial.la
libmodem_helpers_la_CPPFLAGS = \
$(MM_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/include \
-I$(top_builddir)/include \
-I$(top_srcdir)/libmm-glib \
-I${top_srcdir}/libmm-glib/generated \
-I${top_builddir}/libmm-glib/generated
libmodem_helpers_la_LIBADD = \
$(top_builddir)/libmm-glib/libmm-glib.la
libmodem_helpers_la_SOURCES = \
mm-error-helpers.c \
mm-error-helpers.h \
mm-modem-helpers.c \
mm-modem-helpers.h \
mm-charsets.c \
mm-charsets.h \
mm-sms-part.h \
mm-sms-part.c \
mm-sms-part-3gpp.h \
mm-sms-part-3gpp.c \
mm-sms-part-cdma.h \
mm-sms-part-cdma.c
# Additional QMI support in libmodem-helpers
if WITH_QMI
libmodem_helpers_la_SOURCES += \
mm-modem-helpers-qmi.c \
mm-modem-helpers-qmi.h
libmodem_helpers_la_CPPFLAGS += $(QMI_CFLAGS)
endif
# Additional MBIM support in libmodem-helpers
if WITH_MBIM
libmodem_helpers_la_SOURCES += \
mm-modem-helpers-mbim.c \
mm-modem-helpers-mbim.h
libmodem_helpers_la_CPPFLAGS += $(MBIM_CFLAGS)
endif
# libserial specific enum types
SERIAL_ENUMS = \
$(srcdir)/mm-port.h \
$(srcdir)/mm-port-serial-at.h
mm-serial-enums-types.h: Makefile.am $(SERIAL_ENUMS) $(top_srcdir)/build-aux/mm-enums-template.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-port.h\"\n#include \"mm-port-serial-at.h\"\n#ifndef __MM_SERIAL_ENUMS_TYPES_H__\n#define __MM_SERIAL_ENUMS_TYPES_H__\n" \
--template $(top_srcdir)/build-aux/mm-enums-template.h \
--ftail "#endif /* __MM_SERIAL_ENUMS_TYPES_H__ */\n" \
$(SERIAL_ENUMS) > $@
mm-serial-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-template.c mm-serial-enums-types.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-serial-enums-types.h\"" \
--template $(top_srcdir)/build-aux/mm-enums-template.c \
$(SERIAL_ENUMS) > $@
libserial_la_CPPFLAGS = \
$(MM_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/include \
-I$(top_builddir)/include \
-I$(top_srcdir)/libmm-glib \
-I${top_srcdir}/libmm-glib/generated \
-I${top_builddir}/libmm-glib/generated
nodist_libserial_la_SOURCES = \
mm-serial-enums-types.h \
mm-serial-enums-types.c
libserial_la_SOURCES = \
mm-port.c \
mm-port.h \
mm-port-serial.c \
mm-port-serial.h \
mm-port-serial-at.c \
mm-port-serial-at.h \
mm-port-serial-qcdm.c \
mm-port-serial-qcdm.h \
mm-port-serial-gps.c \
mm-port-serial-gps.h
# Additional QMI support in libserial
if WITH_QMI
libserial_la_SOURCES += \
mm-port-qmi.c \
mm-port-qmi.h
libserial_la_CPPFLAGS += $(QMI_CFLAGS)
endif
# Additional MBIM support in libserial
if WITH_MBIM
libserial_la_SOURCES += \
mm-port-mbim.c \
mm-port-mbim.h
libserial_la_CPPFLAGS += $(MBIM_CFLAGS)
endif
# Daemon specific enum types
DAEMON_ENUMS = \
$(srcdir)/mm-bearer.h \
$(srcdir)/mm-port-probe.h
mm-daemon-enums-types.h: Makefile.am $(DAEMON_ENUMS) $(top_srcdir)/build-aux/mm-enums-template.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-bearer.h\"\n#include \"mm-port-probe.h\"\n#ifndef __MM_DAEMON_ENUMS_TYPES_H__\n#define __MM_DAEMON_ENUMS_TYPES_H__\n" \
--template $(top_srcdir)/build-aux/mm-enums-template.h \
--ftail "#endif /* __MM_DAEMON_ENUMS_TYPES_H__ */\n" \
$(DAEMON_ENUMS) > $@
mm-daemon-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-template.c mm-daemon-enums-types.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-daemon-enums-types.h\"" \
--template $(top_srcdir)/build-aux/mm-enums-template.c \
$(DAEMON_ENUMS) > $@
sbin_PROGRAMS = ModemManager
ModemManager_CPPFLAGS = \
$(MM_CFLAGS) \
$(GUDEV_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/include \
-I$(top_builddir)/include \
-I$(top_srcdir)/libmm-glib \
-I$(top_builddir)/libmm-glib \
-I${top_srcdir}/libmm-glib/generated \
-I${top_builddir}/libmm-glib/generated \
-DPLUGINDIR=\"$(pkglibdir)\"
ModemManager_LDADD = \
$(MM_LIBS) \
$(GUDEV_LIBS) \
$(builddir)/libmodem-helpers.la \
$(builddir)/libserial.la \
$(top_builddir)/libqcdm/src/libqcdm.la
nodist_ModemManager_SOURCES = \
mm-daemon-enums-types.h \
mm-daemon-enums-types.c
ModemManager_SOURCES = \
main.c \
mm-context.h \
mm-context.c \
mm-log.c \
mm-log.h \
mm-private-boxed-types.h \
mm-private-boxed-types.c \
mm-auth.h \
mm-auth.c \
mm-auth-provider.h \
mm-auth-provider.c \
mm-manager.c \
mm-manager.h \
mm-device.c \
mm-device.h \
mm-plugin-manager.c \
mm-plugin-manager.h \
mm-sim.h \
mm-sim.c \
mm-bearer.h \
mm-bearer.c \
mm-broadband-bearer.h \
mm-broadband-bearer.c \
mm-bearer-list.h \
mm-bearer-list.c \
mm-base-modem-at.h \
mm-base-modem-at.c \
mm-base-modem.h \
mm-base-modem.c \
mm-sms.h \
mm-sms.c \
mm-sms-list.h \
mm-sms-list.c \
mm-iface-modem.h \
mm-iface-modem.c \
mm-iface-modem-3gpp.h \
mm-iface-modem-3gpp.c \
mm-iface-modem-3gpp-ussd.h \
mm-iface-modem-3gpp-ussd.c \
mm-iface-modem-cdma.h \
mm-iface-modem-cdma.c \
mm-iface-modem-simple.h \
mm-iface-modem-simple.c \
mm-iface-modem-location.h \
mm-iface-modem-location.c \
mm-iface-modem-messaging.h \
mm-iface-modem-messaging.c \
mm-iface-modem-time.h \
mm-iface-modem-time.c \
mm-iface-modem-firmware.h \
mm-iface-modem-firmware.c \
mm-iface-modem-signal.h \
mm-iface-modem-signal.c \
mm-iface-modem-oma.h \
mm-iface-modem-oma.c \
mm-broadband-modem.h \
mm-broadband-modem.c \
mm-serial-parsers.c \
mm-serial-parsers.h \
mm-port-probe.h \
mm-port-probe.c \
mm-port-probe-at.h \
mm-port-probe-at.c \
mm-plugin.c \
mm-plugin.h
# Additional dependency rules
mm-bearer.c: mm-daemon-enums-types.h
# Additional Polkit support
if WITH_POLKIT
ModemManager_SOURCES += \
mm-auth-provider-polkit.c \
mm-auth-provider-polkit.h
ModemManager_LDADD += $(POLKIT_LIBS)
ModemManager_CPPFLAGS += $(POLKIT_CFLAGS)
endif
# Additional QMI support in ModemManager
if WITH_QMI
ModemManager_SOURCES += \
mm-sms-qmi.h \
mm-sms-qmi.c \
mm-sim-qmi.h \
mm-sim-qmi.c \
mm-bearer-qmi.h \
mm-bearer-qmi.c \
mm-broadband-modem-qmi.h \
mm-broadband-modem-qmi.c
ModemManager_CPPFLAGS += $(QMI_CFLAGS)
ModemManager_LDADD += $(QMI_LIBS)
endif
# Additional MBIM support in ModemManager
if WITH_MBIM
ModemManager_SOURCES += \
mm-sms-mbim.h \
mm-sms-mbim.c \
mm-sim-mbim.h \
mm-sim-mbim.c \
mm-bearer-mbim.h \
mm-bearer-mbim.c \
mm-broadband-modem-mbim.h \
mm-broadband-modem-mbim.c
ModemManager_CPPFLAGS += $(MBIM_CFLAGS)
ModemManager_LDADD += $(MBIM_LIBS)
endif
EXTRA_DIST = \
$(udevrules_DATA)
CLEANFILES = \
mm-daemon-enums-types.h \
mm-daemon-enums-types.c \
mm-serial-enums-types.h \
mm-serial-enums-types.c
|