2 AM_MAKEFLAGS = --no-print-directory
4 includedir = @includedir@/ofono
6 include_HEADERS = include/log.h include/plugin.h include/history.h \
7 include/dbus.h include/modem.h include/types.h \
8 include/call-barring.h include/call-forwarding.h \
9 include/call-meter.h include/call-settings.h \
10 include/phonebook.h include/ssn.h include/ussd.h \
11 include/sms.h include/sim.h include/message-waiting.h \
12 include/netreg.h include/voicecall.h include/devinfo.h \
13 include/cbs.h include/call-volume.h \
14 include/gprs.h include/gprs-context.h \
15 include/radio-settings.h include/stk.h \
16 include/audio-settings.h include/nettime.h \
17 include/ctm.h include/cdma-voicecall.h \
20 nodist_include_HEADERS = include/version.h
22 local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS), \
23 include/ofono/$(notdir $(file)))
27 dbusconfdir = @DBUS_CONFDIR@
29 dbusconf_DATA = src/ofono.conf
32 systemdunitdir = @SYSTEMD_UNITDIR@
34 systemdunit_DATA = src/ofono.service
37 confdir = $(sysconfdir)/ofono
41 statedir = $(localstatedir)/lib/ofono
51 gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \
52 gdbus/object.c gdbus/polkit.c
54 gatchat_sources = gatchat/gatchat.h gatchat/gatchat.c \
55 gatchat/gatresult.h gatchat/gatresult.c \
56 gatchat/gatsyntax.h gatchat/gatsyntax.c \
57 gatchat/ringbuffer.h gatchat/ringbuffer.c \
58 gatchat/gatio.h gatchat/gatio.c \
59 gatchat/crc-ccitt.h gatchat/crc-ccitt.c \
60 gatchat/gatmux.h gatchat/gatmux.c \
61 gatchat/gsm0710.h gatchat/gsm0710.c \
62 gatchat/gattty.h gatchat/gattty.c \
63 gatchat/gatutil.h gatchat/gatutil.c \
65 gatchat/gatserver.h gatchat/gatserver.c \
66 gatchat/gatrawip.h gatchat/gatrawip.c \
67 gatchat/gathdlc.c gatchat/gathdlc.h \
68 gatchat/gatppp.c gatchat/gatppp.h \
69 gatchat/ppp.h gatchat/ppp_cp.h \
70 gatchat/ppp_cp.c gatchat/ppp_lcp.c \
71 gatchat/ppp_auth.c gatchat/ppp_net.c \
74 gisi_sources = gisi/client.c gisi/client.h gisi/common.h \
75 gisi/iter.c gisi/iter.h \
76 gisi/message.c gisi/message.h \
77 gisi/modem.c gisi/modem.h \
78 gisi/netlink.c gisi/netlink.h \
79 gisi/pep.c gisi/pep.h \
81 gisi/pipe.c gisi/pipe.h \
82 gisi/server.c gisi/server.h \
83 gisi/socket.c gisi/socket.h
85 btio_sources = btio/btio.h btio/btio.c
87 udev_files = plugins/ofono.rules
90 builtin_modules += udev
91 builtin_sources += plugins/udev.c
92 builtin_cflags += @UDEV_CFLAGS@
93 builtin_libadd += @UDEV_LIBS@
96 rulesdir = @UDEV_DATADIR@
98 rules_DATA = $(foreach file,$(udev_files), plugins/97-$(notdir $(file)))
103 builtin_modules += isimodem
104 builtin_sources += $(gisi_sources) \
105 drivers/isimodem/isimodem.h \
106 drivers/isimodem/isimodem.c \
107 drivers/isimodem/mtc.h \
108 drivers/isimodem/debug.h \
109 drivers/isimodem/isiutil.h \
110 drivers/isimodem/debug.c \
111 drivers/isimodem/phonebook.c \
112 drivers/isimodem/devinfo.c \
113 drivers/isimodem/info.h \
114 drivers/isimodem/network-registration.c \
115 drivers/isimodem/network.h \
116 drivers/isimodem/infoserver.h \
117 drivers/isimodem/infoserver.c \
118 drivers/isimodem/voicecall.c \
119 drivers/isimodem/call.h \
120 drivers/isimodem/sms.c \
121 drivers/isimodem/sms.h \
122 drivers/isimodem/cbs.c \
123 drivers/isimodem/sim.c \
124 drivers/isimodem/sim.h \
125 drivers/isimodem/ssn.c \
126 drivers/isimodem/ussd.c \
127 drivers/isimodem/call-forwarding.c \
128 drivers/isimodem/call-settings.c \
129 drivers/isimodem/call-barring.c \
130 drivers/isimodem/call-meter.c \
131 drivers/isimodem/ss.h \
132 drivers/isimodem/radio-settings.c \
133 drivers/isimodem/gss.h \
134 drivers/isimodem/gprs.c \
135 drivers/isimodem/gprs-context.c \
136 drivers/isimodem/gpds.h \
137 drivers/isimodem/audio-settings.c
139 builtin_modules += isiusb
140 builtin_sources += plugins/isiusb.c
142 builtin_modules += n900
143 builtin_sources += plugins/n900.c plugins/nokia-gpio.h plugins/nokia-gpio.c
147 builtin_modules += atmodem
148 builtin_sources += $(gatchat_sources) \
149 drivers/atmodem/atmodem.h \
150 drivers/atmodem/atmodem.c \
151 drivers/atmodem/call-settings.c \
152 drivers/atmodem/sms.c \
153 drivers/atmodem/cbs.c \
154 drivers/atmodem/call-forwarding.c \
155 drivers/atmodem/call-meter.c \
156 drivers/atmodem/network-registration.c \
157 drivers/atmodem/sim.c \
158 drivers/atmodem/stk.c \
159 drivers/atmodem/stk.h \
160 drivers/atmodem/sim-poll.c \
161 drivers/atmodem/sim-poll.h \
162 drivers/atmodem/ussd.c \
163 drivers/atmodem/voicecall.c \
164 drivers/atmodem/call-barring.c \
165 drivers/atmodem/phonebook.c \
166 drivers/atmodem/ssn.c \
167 drivers/atmodem/devinfo.c \
168 drivers/atmodem/call-volume.c \
169 drivers/atmodem/vendor.h \
170 drivers/atmodem/atutil.h \
171 drivers/atmodem/atutil.c \
172 drivers/atmodem/gprs.c \
173 drivers/atmodem/gprs-context.c
175 builtin_modules += nwmodem
176 builtin_sources += drivers/atmodem/atutil.h \
177 drivers/nwmodem/nwmodem.h \
178 drivers/nwmodem/nwmodem.c \
179 drivers/nwmodem/radio-settings.c
181 builtin_modules += huaweimodem
182 builtin_sources += drivers/atmodem/atutil.h \
183 drivers/huaweimodem/huaweimodem.h \
184 drivers/huaweimodem/huaweimodem.c \
185 drivers/huaweimodem/voicecall.c \
186 drivers/huaweimodem/audio-settings.c \
187 drivers/huaweimodem/gprs-context.c \
188 drivers/huaweimodem/radio-settings.c
190 builtin_modules += calypsomodem
191 builtin_sources += drivers/atmodem/atutil.h \
192 drivers/calypsomodem/calypsomodem.h \
193 drivers/calypsomodem/calypsomodem.c \
194 drivers/calypsomodem/voicecall.c \
195 drivers/calypsomodem/stk.c
197 builtin_modules += hfpmodem
198 builtin_sources += drivers/atmodem/atutil.h \
199 drivers/hfpmodem/hfpmodem.h \
200 drivers/hfpmodem/hfpmodem.c \
201 drivers/hfpmodem/voicecall.c \
202 drivers/hfpmodem/network-registration.c \
203 drivers/hfpmodem/call-volume.c
205 builtin_modules += mbmmodem
206 builtin_sources += drivers/atmodem/atutil.h \
207 drivers/mbmmodem/mbmmodem.h \
208 drivers/mbmmodem/mbmmodem.c \
209 drivers/mbmmodem/gprs-context.c \
210 drivers/mbmmodem/stk.c
212 builtin_modules += hsomodem
213 builtin_sources += drivers/atmodem/atutil.h \
214 drivers/hsomodem/hsomodem.h \
215 drivers/hsomodem/hsomodem.c \
216 drivers/hsomodem/gprs-context.c \
217 drivers/hsomodem/radio-settings.c
219 builtin_modules += ifxmodem
220 builtin_sources += drivers/atmodem/atutil.h \
221 drivers/ifxmodem/ifxmodem.h \
222 drivers/ifxmodem/ifxmodem.c \
223 drivers/ifxmodem/voicecall.c \
224 drivers/ifxmodem/audio-settings.c \
225 drivers/ifxmodem/radio-settings.c \
226 drivers/ifxmodem/gprs-context.c \
227 drivers/ifxmodem/stk.c
229 builtin_modules += stemodem
230 builtin_sources += drivers/atmodem/atutil.h \
231 drivers/stemodem/stemodem.h \
232 drivers/stemodem/stemodem.c \
233 drivers/stemodem/voicecall.c \
234 drivers/stemodem/radio-settings.c \
235 drivers/stemodem/caif_rtnl.c \
236 drivers/stemodem/caif_rtnl.h \
237 drivers/stemodem/gprs-context.c \
238 drivers/stemodem/caif_socket.h \
239 drivers/stemodem/if_caif.h
242 builtin_modules += phonesim
243 builtin_sources += plugins/phonesim.c
246 conf_DATA += plugins/phonesim.conf
251 builtin_modules += cdmamodem
252 builtin_sources += drivers/cdmamodem/cdmamodem.h \
253 drivers/cdmamodem/cdmamodem.c \
254 drivers/cdmamodem/voicecall.c \
255 drivers/cdmamodem/devinfo.c
258 builtin_modules += g1
259 builtin_sources += plugins/g1.c
261 builtin_modules += gobi
262 builtin_sources += plugins/gobi.c
264 builtin_modules += wavecom
265 builtin_sources += plugins/wavecom.c
267 builtin_modules += calypso
268 builtin_sources += plugins/calypso.c
270 builtin_modules += mbm
271 builtin_sources += plugins/mbm.c
273 builtin_modules += hso
274 builtin_sources += plugins/hso.c
276 builtin_modules += zte
277 builtin_sources += plugins/zte.c
279 builtin_modules += huawei
280 builtin_sources += plugins/huawei.c
282 builtin_modules += sierra
283 builtin_sources += plugins/sierra.c
285 builtin_modules += novatel
286 builtin_sources += plugins/novatel.c
288 builtin_modules += nokia
289 builtin_sources += plugins/nokia.c
291 builtin_modules += bluetooth
292 builtin_sources += plugins/bluetooth.c plugins/bluetooth.h
294 builtin_modules += hfp
295 builtin_sources += plugins/hfp.c plugins/bluetooth.h
297 builtin_modules += palmpre
298 builtin_sources += plugins/palmpre.c
300 builtin_modules += ifx
301 builtin_sources += plugins/ifx.c
303 builtin_modules += ste
304 builtin_sources += plugins/ste.c
306 builtin_modules += stemgr
307 builtin_sources += plugins/stemgr.c
309 builtin_modules += caif
310 builtin_sources += plugins/caif.c
312 builtin_modules += tc65
313 builtin_sources += plugins/tc65.c
315 builtin_modules += nokiacdma
316 builtin_sources += plugins/nokiacdma.c
320 builtin_modules += example_history
321 builtin_sources += examples/history.c
323 builtin_modules += example_nettime
324 builtin_sources += examples/nettime.c
327 builtin_modules += smart_messaging
328 builtin_sources += plugins/smart-messaging.c
330 builtin_modules += push_notification
331 builtin_sources += plugins/push-notification.c
333 sbin_PROGRAMS = src/ofonod
335 src_ofonod_SOURCES = $(gdbus_sources) $(builtin_sources) src/ofono.ver \
336 src/main.c src/ofono.h src/log.c src/plugin.c \
337 src/modem.c src/common.h src/common.c \
338 src/manager.c src/dbus.c src/util.h src/util.c \
339 src/network.c src/voicecall.c src/ussd.c src/sms.c \
340 src/call-settings.c src/call-forwarding.c \
341 src/call-meter.c src/smsutil.h src/smsutil.c \
342 src/ssn.c src/call-barring.c src/sim.c src/stk.c \
343 src/phonebook.c src/history.c src/message-waiting.c \
344 src/simutil.h src/simutil.c src/storage.h \
345 src/storage.c src/cbs.c src/watch.c src/call-volume.c \
346 src/gprs.c src/idmap.h src/idmap.c \
347 src/radio-settings.c src/stkutil.h src/stkutil.c \
348 src/nettime.c src/stkagent.c src/stkagent.h \
349 src/simfs.c src/simfs.h src/audio-settings.c \
350 src/smsagent.c src/smsagent.h src/ctm.c \
353 src_ofonod_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ \
356 src_ofonod_LDFLAGS = -Wl,--export-dynamic \
357 -Wl,--version-script=$(srcdir)/src/ofono.ver
359 BUILT_SOURCES = $(local_headers)
361 CLEANFILES = src/builtin.h $(BUILT_SOURCES) $(rules_DATA)
363 plugindir = $(libdir)/ofono/plugins
366 build_plugindir = $(abs_top_srcdir)/plugins/.libs
368 build_plugindir = $(plugindir)
371 AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @CAPNG_CFLAGS@ @USB_CFLAGS@ \
373 -DOFONO_PLUGIN_BUILTIN \
374 -DPLUGINDIR=\""$(build_plugindir)"\"
376 INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/src \
377 -I$(srcdir)/gdbus -I$(srcdir)/gisi -I$(srcdir)/gatchat \
380 doc_files = doc/overview.txt doc/ofono-paper.txt doc/release-faq.txt \
381 doc/manager-api.txt doc/modem-api.txt doc/network-api.txt \
382 doc/voicecallmanager-api.txt doc/voicecall-api.txt \
383 doc/call-forwarding-api.txt doc/call-settings-api.txt \
384 doc/call-meter-api.txt doc/call-barring-api.txt \
385 doc/supplementaryservices-api.txt \
386 doc/connman-api.txt doc/features.txt \
387 doc/pushnotification-api.txt \
388 doc/smartmessaging-api.txt \
389 doc/call-volume-api.txt doc/cell-broadcast-api.txt \
390 doc/message-api.txt doc/message-waiting-api.txt \
391 doc/phonebook-api.txt doc/radio-settings-api.txt \
392 doc/sim-api.txt doc/stk-api.txt \
393 doc/audio-settings-api.txt doc/text-telephony-api.txt \
394 doc/calypso-modem.txt
397 test_scripts = test/backtrace \
398 test/create-internet-context \
399 test/create-mms-context \
400 test/activate-context \
401 test/deactivate-context \
402 test/deactivate-all \
406 test/create-multiparty \
414 test/set-mms-details \
415 test/set-roaming-allowed \
418 test/list-operators \
419 test/scan-for-operators \
422 test/process-context-settings \
424 test/remove-contexts \
426 test/set-mic-volume \
427 test/set-speaker-volume \
429 test/test-advice-of-charge \
430 test/test-call-barring \
431 test/test-call-forwarding \
432 test/test-call-settings \
434 test/test-network-registration \
435 test/test-phonebook \
436 test/test-ss-control-cb \
437 test/test-ss-control-cf \
438 test/test-ss-control-cs \
439 test/test-voicecall \
445 test/get-tech-preference \
446 test/set-tech-preference \
447 test/set-use-sms-reports \
448 test/set-cbs-topics \
455 test/set-fast-dormancy \
456 test/test-push-notification \
457 test/test-smart-messaging \
462 test/lockdown-modem \
463 test/set-call-forwarding \
464 test/cdma-list-call \
465 test/cdma-dial-number \
469 testdir = $(pkglibdir)/test
470 test_SCRIPTS = $(test_scripts)
473 conf_files = src/ofono.conf plugins/phonesim.conf
475 EXTRA_DIST = src/genbuiltin $(conf_files) $(udev_files) \
476 $(doc_files) $(test_scripts)
478 dist_man_MANS = doc/ofonod.8
481 noinst_PROGRAMS = unit/test-common unit/test-util unit/test-idmap \
482 unit/test-sms unit/test-simutil \
483 unit/test-mux unit/test-caif \
488 unit_test_common_SOURCES = unit/test-common.c src/common.c src/util.c
489 unit_test_common_LDADD = @GLIB_LIBS@
490 unit_objects += $(unit_test_common_OBJECTS)
492 unit_test_util_SOURCES = unit/test-util.c src/util.c
493 unit_test_util_LDADD = @GLIB_LIBS@
494 unit_objects += $(unit_test_utils_OBJECTS)
496 unit_test_idmap_SOURCES = unit/test-idmap.c src/idmap.c
497 unit_test_idmap_LDADD = @GLIB_LIBS@
498 unit_objects += $(unit_test_idmap_OBJECTS)
500 unit_test_sms_SOURCES = unit/test-sms.c src/util.c src/smsutil.c src/storage.c
501 unit_test_sms_LDADD = @GLIB_LIBS@
502 unit_objects += $(unit_test_sms_OBJECTS)
504 unit_test_simutil_SOURCES = unit/test-simutil.c src/util.c \
505 src/simutil.c src/smsutil.c src/storage.c
506 unit_test_simutil_LDADD = @GLIB_LIBS@
507 unit_objects += $(unit_test_simutil_OBJECTS)
509 unit_test_stkutil_SOURCES = unit/test-stkutil.c src/util.c \
510 src/storage.c src/smsutil.c \
511 src/simutil.c src/stkutil.c
512 unit_test_stkutil_LDADD = @GLIB_LIBS@
513 unit_objects += $(unit_test_stkutil_OBJECTS)
515 unit_test_mux_SOURCES = unit/test-mux.c $(gatchat_sources)
516 unit_test_mux_LDADD = @GLIB_LIBS@
517 unit_objects += $(unit_test_mux_OBJECTS)
519 unit_test_caif_SOURCES = unit/test-caif.c $(gatchat_sources) \
520 drivers/stemodem/caif_socket.h \
521 drivers/stemodem/if_caif.h
522 unit_test_caif_LDADD = @GLIB_LIBS@
523 unit_objects += $(unit_test_caif_OBJECTS)
526 noinst_PROGRAMS += tools/huawei-audio tools/auto-enable
528 tools_huawei_audio_SOURCES = $(gdbus_sources) tools/huawei-audio.c
529 tools_huawei_audio_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
531 tools_auto_enable_SOURCES = $(gdbus_sources) tools/auto-enable.c
532 tools_auto_enable_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
535 noinst_PROGRAMS += gatchat/gsmdial gatchat/test-server gatchat/test-qcdm
537 gatchat_gsmdial_SOURCES = gatchat/gsmdial.c $(gatchat_sources)
538 gatchat_gsmdial_LDADD = @GLIB_LIBS@
540 gatchat_test_server_SOURCES = gatchat/test-server.c $(gatchat_sources)
541 gatchat_test_server_LDADD = @GLIB_LIBS@ -lutil
543 gatchat_test_qcdm_SOURCES = gatchat/test-qcdm.c $(gatchat_sources)
544 gatchat_test_qcdm_LDADD = @GLIB_LIBS@
547 DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles
549 MAINTAINERCLEANFILES = Makefile.in \
550 aclocal.m4 configure config.h.in config.sub config.guess \
551 ltmain.sh depcomp compile missing install-sh mkinstalldirs
554 src/plugin.$(OBJEXT): src/builtin.h
556 src/builtin.h: src/genbuiltin $(builtin_sources)
557 $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
560 $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
562 include/ofono/version.h: include/version.h
563 $(AM_V_at)$(MKDIR_P) include/ofono
564 $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
566 include/ofono/%.h: include/%.h
567 $(AM_V_at)$(MKDIR_P) include/ofono
568 $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
571 @$(RM) -rf include/ofono