2 AM_MAKEFLAGS = --no-print-directory
4 pkginclude_HEADERS = include/log.h include/plugin.h include/history.h \
5 include/dbus.h include/modem.h include/types.h \
6 include/call-barring.h include/call-forwarding.h \
7 include/call-meter.h include/call-settings.h \
8 include/phonebook.h include/ssn.h include/ussd.h \
9 include/sms.h include/sim.h include/message-waiting.h \
10 include/netreg.h include/voicecall.h include/devinfo.h \
11 include/cbs.h include/call-volume.h \
12 include/gprs.h include/gprs-context.h \
13 include/radio-settings.h include/stk.h \
14 include/audio-settings.h include/nettime.h \
15 include/ctm.h include/cdma-voicecall.h \
16 include/cdma-sms.h include/sim-auth.h \
17 include/gprs-provision.h include/emulator.h
19 nodist_pkginclude_HEADERS = include/version.h
21 local_headers = $(foreach file,$(pkginclude_HEADERS) \
22 $(nodist_pkginclude_HEADERS), \
23 include/ofono/$(notdir $(file)))
25 pkgconfigdir = $(libdir)/pkgconfig
26 pkgconfig_DATA = ofono.pc
30 dbusconfdir = @DBUS_CONFDIR@
32 dist_dbusconf_DATA = src/ofono.conf
35 systemdunitdir = @SYSTEMD_UNITDIR@
37 systemdunit_DATA = src/ofono.service
40 confdir = $(sysconfdir)/ofono
44 statedir = $(localstatedir)/lib/ofono
54 gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \
55 gdbus/object.c gdbus/polkit.c
57 gatchat_sources = gatchat/gatchat.h gatchat/gatchat.c \
58 gatchat/gatresult.h gatchat/gatresult.c \
59 gatchat/gatsyntax.h gatchat/gatsyntax.c \
60 gatchat/ringbuffer.h gatchat/ringbuffer.c \
61 gatchat/gatio.h gatchat/gatio.c \
62 gatchat/crc-ccitt.h gatchat/crc-ccitt.c \
63 gatchat/gatmux.h gatchat/gatmux.c \
64 gatchat/gsm0710.h gatchat/gsm0710.c \
65 gatchat/gattty.h gatchat/gattty.c \
66 gatchat/gatutil.h gatchat/gatutil.c \
68 gatchat/gatserver.h gatchat/gatserver.c \
69 gatchat/gatrawip.h gatchat/gatrawip.c \
70 gatchat/gathdlc.c gatchat/gathdlc.h \
71 gatchat/gatppp.c gatchat/gatppp.h \
72 gatchat/ppp.h gatchat/ppp_cp.h \
73 gatchat/ppp_cp.c gatchat/ppp_lcp.c \
74 gatchat/ppp_auth.c gatchat/ppp_net.c \
77 gisi_sources = gisi/client.c gisi/client.h gisi/common.h \
78 gisi/iter.c gisi/iter.h \
79 gisi/message.c gisi/message.h \
80 gisi/modem.c gisi/modem.h \
81 gisi/netlink.c gisi/netlink.h \
82 gisi/pep.c gisi/pep.h \
84 gisi/pipe.c gisi/pipe.h \
85 gisi/server.c gisi/server.h \
86 gisi/socket.c gisi/socket.h
88 btio_sources = btio/btio.h btio/btio.c
90 udev_files = plugins/ofono.rules
93 builtin_modules += udev
94 builtin_sources += plugins/udev.c
95 builtin_cflags += @UDEV_CFLAGS@
96 builtin_libadd += @UDEV_LIBS@
99 rulesdir = @UDEV_DATADIR@
101 rules_DATA = $(foreach file,$(udev_files), plugins/97-$(notdir $(file)))
106 builtin_modules += isimodem
107 builtin_sources += $(gisi_sources) \
108 drivers/isimodem/isimodem.h \
109 drivers/isimodem/isimodem.c \
110 drivers/isimodem/mtc.h \
111 drivers/isimodem/debug.h \
112 drivers/isimodem/isiutil.h \
113 drivers/isimodem/debug.c \
114 drivers/isimodem/phonebook.c \
115 drivers/isimodem/devinfo.c \
116 drivers/isimodem/info.h \
117 drivers/isimodem/network-registration.c \
118 drivers/isimodem/network.h \
119 drivers/isimodem/infoserver.h \
120 drivers/isimodem/infoserver.c \
121 drivers/isimodem/voicecall.c \
122 drivers/isimodem/call.h \
123 drivers/isimodem/sms.c \
124 drivers/isimodem/sms.h \
125 drivers/isimodem/cbs.c \
126 drivers/isimodem/sim.c \
127 drivers/isimodem/sim.h \
128 drivers/isimodem/ssn.c \
129 drivers/isimodem/ussd.c \
130 drivers/isimodem/call-forwarding.c \
131 drivers/isimodem/call-settings.c \
132 drivers/isimodem/call-barring.c \
133 drivers/isimodem/call-meter.c \
134 drivers/isimodem/ss.h \
135 drivers/isimodem/radio-settings.c \
136 drivers/isimodem/gss.h \
137 drivers/isimodem/gprs.c \
138 drivers/isimodem/gprs-context.c \
139 drivers/isimodem/gpds.h \
140 drivers/isimodem/audio-settings.c
142 builtin_modules += isiusb
143 builtin_sources += plugins/isiusb.c
145 builtin_modules += n900
146 builtin_sources += plugins/n900.c plugins/nokia-gpio.h plugins/nokia-gpio.c
148 builtin_modules += u8500
149 builtin_sources += plugins/u8500.c
153 builtin_modules += atmodem
154 builtin_sources += $(gatchat_sources) \
155 drivers/atmodem/atmodem.h \
156 drivers/atmodem/atmodem.c \
157 drivers/atmodem/call-settings.c \
158 drivers/atmodem/sms.c \
159 drivers/atmodem/cbs.c \
160 drivers/atmodem/call-forwarding.c \
161 drivers/atmodem/call-meter.c \
162 drivers/atmodem/network-registration.c \
163 drivers/atmodem/sim.c \
164 drivers/atmodem/stk.c \
165 drivers/atmodem/stk.h \
166 drivers/atmodem/sim-poll.c \
167 drivers/atmodem/sim-poll.h \
168 drivers/atmodem/ussd.c \
169 drivers/atmodem/voicecall.c \
170 drivers/atmodem/call-barring.c \
171 drivers/atmodem/phonebook.c \
172 drivers/atmodem/ssn.c \
173 drivers/atmodem/devinfo.c \
174 drivers/atmodem/call-volume.c \
175 drivers/atmodem/vendor.h \
176 drivers/atmodem/atutil.h \
177 drivers/atmodem/atutil.c \
178 drivers/atmodem/gprs.c \
179 drivers/atmodem/gprs-context.c \
180 drivers/atmodem/sim-auth.c
182 builtin_modules += nwmodem
183 builtin_sources += drivers/atmodem/atutil.h \
184 drivers/nwmodem/nwmodem.h \
185 drivers/nwmodem/nwmodem.c \
186 drivers/nwmodem/radio-settings.c
188 builtin_modules += huaweimodem
189 builtin_sources += drivers/atmodem/atutil.h \
190 drivers/huaweimodem/huaweimodem.h \
191 drivers/huaweimodem/huaweimodem.c \
192 drivers/huaweimodem/voicecall.c \
193 drivers/huaweimodem/audio-settings.c \
194 drivers/huaweimodem/gprs-context.c \
195 drivers/huaweimodem/radio-settings.c
197 builtin_modules += calypsomodem
198 builtin_sources += drivers/atmodem/atutil.h \
199 drivers/calypsomodem/calypsomodem.h \
200 drivers/calypsomodem/calypsomodem.c \
201 drivers/calypsomodem/voicecall.c \
202 drivers/calypsomodem/stk.c
204 builtin_modules += hfpmodem
205 builtin_sources += drivers/atmodem/atutil.h \
206 drivers/hfpmodem/hfpmodem.h \
207 drivers/hfpmodem/hfpmodem.c \
208 drivers/hfpmodem/voicecall.c \
209 drivers/hfpmodem/network-registration.c \
210 drivers/hfpmodem/call-volume.c
212 builtin_modules += mbmmodem
213 builtin_sources += drivers/atmodem/atutil.h \
214 drivers/mbmmodem/mbmmodem.h \
215 drivers/mbmmodem/mbmmodem.c \
216 drivers/mbmmodem/gprs-context.c \
217 drivers/mbmmodem/stk.c
219 builtin_modules += hsomodem
220 builtin_sources += drivers/atmodem/atutil.h \
221 drivers/hsomodem/hsomodem.h \
222 drivers/hsomodem/hsomodem.c \
223 drivers/hsomodem/gprs-context.c \
224 drivers/hsomodem/radio-settings.c
226 builtin_modules += ifxmodem
227 builtin_sources += drivers/atmodem/atutil.h \
228 drivers/ifxmodem/ifxmodem.h \
229 drivers/ifxmodem/ifxmodem.c \
230 drivers/ifxmodem/voicecall.c \
231 drivers/ifxmodem/audio-settings.c \
232 drivers/ifxmodem/radio-settings.c \
233 drivers/ifxmodem/gprs-context.c \
234 drivers/ifxmodem/stk.c \
235 drivers/ifxmodem/ctm.c
237 builtin_modules += stemodem
238 builtin_sources += drivers/atmodem/atutil.h \
239 drivers/stemodem/stemodem.h \
240 drivers/stemodem/stemodem.c \
241 drivers/stemodem/voicecall.c \
242 drivers/stemodem/radio-settings.c \
243 drivers/stemodem/caif_rtnl.c \
244 drivers/stemodem/caif_rtnl.h \
245 drivers/stemodem/gprs-context.c \
246 drivers/stemodem/caif_socket.h \
247 drivers/stemodem/if_caif.h
250 builtin_modules += phonesim
251 builtin_sources += plugins/phonesim.c
254 dist_conf_DATA += plugins/phonesim.conf
259 builtin_modules += cdmamodem
260 builtin_sources += drivers/cdmamodem/cdmamodem.h \
261 drivers/cdmamodem/cdmamodem.c \
262 drivers/cdmamodem/voicecall.c \
263 drivers/cdmamodem/devinfo.c
266 builtin_modules += g1
267 builtin_sources += plugins/g1.c
269 builtin_modules += gobi
270 builtin_sources += plugins/gobi.c
272 builtin_modules += wavecom
273 builtin_sources += plugins/wavecom.c
275 builtin_modules += calypso
276 builtin_sources += plugins/calypso.c
278 builtin_modules += mbm
279 builtin_sources += plugins/mbm.c
281 builtin_modules += hso
282 builtin_sources += plugins/hso.c
284 builtin_modules += zte
285 builtin_sources += plugins/zte.c
287 builtin_modules += huawei
288 builtin_sources += plugins/huawei.c
290 builtin_modules += sierra
291 builtin_sources += plugins/sierra.c
293 builtin_modules += novatel
294 builtin_sources += plugins/novatel.c
296 builtin_modules += palmpre
297 builtin_sources += plugins/palmpre.c
299 builtin_modules += ifx
300 builtin_sources += plugins/ifx.c
302 builtin_modules += ste
303 builtin_sources += plugins/ste.c
305 builtin_modules += stemgr
306 builtin_sources += plugins/stemgr.c
308 builtin_modules += caif
309 builtin_sources += plugins/caif.c
311 builtin_modules += tc65
312 builtin_sources += plugins/tc65.c
314 builtin_modules += nokia
315 builtin_sources += plugins/nokia.c
317 builtin_modules += nokiacdma
318 builtin_sources += plugins/nokiacdma.c
320 builtin_modules += linktop
321 builtin_sources += plugins/linktop.c
324 builtin_modules += bluetooth
325 builtin_sources += plugins/bluetooth.c plugins/bluetooth.h
327 builtin_modules += hfp
328 builtin_sources += plugins/hfp_hf.c plugins/bluetooth.h
330 builtin_modules += hfp_ag
331 builtin_sources += plugins/hfp_ag.c plugins/bluetooth.h
333 builtin_modules += dun_gw
334 builtin_sources += plugins/dun_gw.c plugins/bluetooth.h
336 builtin_sources += $(btio_sources)
337 builtin_cflags += @BLUEZ_CFLAGS@
338 builtin_libadd += @BLUEZ_LIBS@
343 builtin_modules += example_history
344 builtin_sources += examples/history.c
346 builtin_modules += example_nettime
347 builtin_sources += examples/nettime.c
349 builtin_modules += example_provision
350 builtin_sources += examples/provision.c
352 builtin_modules += example_emulator
353 builtin_sources += examples/emulator.c
356 builtin_modules += smart_messaging
357 builtin_sources += plugins/smart-messaging.c
359 builtin_modules += push_notification
360 builtin_sources += plugins/push-notification.c
362 sbin_PROGRAMS = src/ofonod
364 src_ofonod_SOURCES = $(gdbus_sources) $(builtin_sources) src/ofono.ver \
365 src/main.c src/ofono.h src/log.c src/plugin.c \
366 src/modem.c src/common.h src/common.c \
367 src/manager.c src/dbus.c src/util.h src/util.c \
368 src/network.c src/voicecall.c src/ussd.c src/sms.c \
369 src/call-settings.c src/call-forwarding.c \
370 src/call-meter.c src/smsutil.h src/smsutil.c \
371 src/ssn.c src/call-barring.c src/sim.c src/stk.c \
372 src/phonebook.c src/history.c src/message-waiting.c \
373 src/simutil.h src/simutil.c src/storage.h \
374 src/storage.c src/cbs.c src/watch.c src/call-volume.c \
375 src/gprs.c src/idmap.h src/idmap.c \
376 src/radio-settings.c src/stkutil.h src/stkutil.c \
377 src/nettime.c src/stkagent.c src/stkagent.h \
378 src/simfs.c src/simfs.h src/audio-settings.c \
379 src/smsagent.c src/smsagent.h src/ctm.c \
380 src/cdma-voicecall.c src/sim-auth.c \
381 src/message.h src/message.c src/gprs-provision.c \
384 src_ofonod_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ -ldl
386 src_ofonod_LDFLAGS = -Wl,--export-dynamic \
387 -Wl,--version-script=$(srcdir)/src/ofono.ver
389 BUILT_SOURCES = $(local_headers)
391 CLEANFILES = src/builtin.h $(BUILT_SOURCES) $(rules_DATA)
393 plugindir = $(pkglibdir)/plugins
396 build_plugindir = $(abs_top_srcdir)/plugins/.libs
398 build_plugindir = $(plugindir)
401 AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @CAPNG_CFLAGS@ @USB_CFLAGS@ \
403 -DOFONO_PLUGIN_BUILTIN \
404 -DPLUGINDIR=\""$(build_plugindir)"\"
406 INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/src \
407 -I$(srcdir)/gdbus -I$(srcdir)/gisi -I$(srcdir)/gatchat \
410 doc_files = doc/overview.txt doc/ofono-paper.txt doc/release-faq.txt \
411 doc/manager-api.txt doc/modem-api.txt doc/network-api.txt \
412 doc/voicecallmanager-api.txt doc/voicecall-api.txt \
413 doc/call-forwarding-api.txt doc/call-settings-api.txt \
414 doc/call-meter-api.txt doc/call-barring-api.txt \
415 doc/supplementaryservices-api.txt \
416 doc/connman-api.txt doc/features.txt \
417 doc/pushnotification-api.txt \
418 doc/smartmessaging-api.txt \
419 doc/call-volume-api.txt doc/cell-broadcast-api.txt \
420 doc/messagemanager-api.txt doc/message-waiting-api.txt \
421 doc/phonebook-api.txt doc/radio-settings-api.txt \
422 doc/sim-api.txt doc/stk-api.txt \
423 doc/audio-settings-api.txt doc/text-telephony-api.txt \
424 doc/calypso-modem.txt doc/message-api.txt
427 test_scripts = test/backtrace \
428 test/create-internet-context \
429 test/create-mms-context \
430 test/activate-context \
431 test/deactivate-context \
432 test/deactivate-all \
436 test/create-multiparty \
444 test/set-mms-details \
445 test/set-roaming-allowed \
448 test/list-operators \
449 test/scan-for-operators \
452 test/process-context-settings \
454 test/remove-contexts \
456 test/set-mic-volume \
457 test/set-speaker-volume \
459 test/test-advice-of-charge \
460 test/test-call-barring \
461 test/test-call-forwarding \
462 test/test-call-settings \
464 test/test-network-registration \
465 test/test-phonebook \
466 test/test-ss-control-cb \
467 test/test-ss-control-cf \
468 test/test-ss-control-cs \
469 test/test-voicecall \
475 test/get-tech-preference \
476 test/set-tech-preference \
477 test/set-use-sms-reports \
478 test/set-cbs-topics \
485 test/set-fast-dormancy \
486 test/test-push-notification \
487 test/test-smart-messaging \
492 test/lockdown-modem \
493 test/set-call-forwarding \
494 test/cdma-list-call \
495 test/cdma-dial-number \
497 test/disable-call-forwarding \
502 testdir = $(pkglibdir)/test
503 test_SCRIPTS = $(test_scripts)
506 EXTRA_DIST = src/genbuiltin $(udev_files) $(doc_files) $(test_scripts)
508 dist_man_MANS = doc/ofonod.8
511 noinst_PROGRAMS = unit/test-common unit/test-util unit/test-idmap \
512 unit/test-sms unit/test-simutil \
513 unit/test-mux unit/test-caif \
518 unit_test_common_SOURCES = unit/test-common.c src/common.c src/util.c
519 unit_test_common_LDADD = @GLIB_LIBS@
520 unit_objects += $(unit_test_common_OBJECTS)
522 unit_test_util_SOURCES = unit/test-util.c src/util.c
523 unit_test_util_LDADD = @GLIB_LIBS@
524 unit_objects += $(unit_test_utils_OBJECTS)
526 unit_test_idmap_SOURCES = unit/test-idmap.c src/idmap.c
527 unit_test_idmap_LDADD = @GLIB_LIBS@
528 unit_objects += $(unit_test_idmap_OBJECTS)
530 unit_test_sms_SOURCES = unit/test-sms.c src/util.c src/smsutil.c src/storage.c
531 unit_test_sms_LDADD = @GLIB_LIBS@
532 unit_objects += $(unit_test_sms_OBJECTS)
534 unit_test_simutil_SOURCES = unit/test-simutil.c src/util.c \
535 src/simutil.c src/smsutil.c src/storage.c
536 unit_test_simutil_LDADD = @GLIB_LIBS@
537 unit_objects += $(unit_test_simutil_OBJECTS)
539 unit_test_stkutil_SOURCES = unit/test-stkutil.c src/util.c \
540 src/storage.c src/smsutil.c \
541 src/simutil.c src/stkutil.c
542 unit_test_stkutil_LDADD = @GLIB_LIBS@
543 unit_objects += $(unit_test_stkutil_OBJECTS)
545 unit_test_mux_SOURCES = unit/test-mux.c $(gatchat_sources)
546 unit_test_mux_LDADD = @GLIB_LIBS@
547 unit_objects += $(unit_test_mux_OBJECTS)
549 unit_test_caif_SOURCES = unit/test-caif.c $(gatchat_sources) \
550 drivers/stemodem/caif_socket.h \
551 drivers/stemodem/if_caif.h
552 unit_test_caif_LDADD = @GLIB_LIBS@
553 unit_objects += $(unit_test_caif_OBJECTS)
556 noinst_PROGRAMS += tools/huawei-audio tools/auto-enable
558 tools_huawei_audio_SOURCES = $(gdbus_sources) tools/huawei-audio.c
559 tools_huawei_audio_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
561 tools_auto_enable_SOURCES = $(gdbus_sources) tools/auto-enable.c
562 tools_auto_enable_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
565 noinst_PROGRAMS += gatchat/gsmdial gatchat/test-server gatchat/test-qcdm
567 gatchat_gsmdial_SOURCES = gatchat/gsmdial.c $(gatchat_sources)
568 gatchat_gsmdial_LDADD = @GLIB_LIBS@
570 gatchat_test_server_SOURCES = gatchat/test-server.c $(gatchat_sources)
571 gatchat_test_server_LDADD = @GLIB_LIBS@ -lutil
573 gatchat_test_qcdm_SOURCES = gatchat/test-qcdm.c $(gatchat_sources)
574 gatchat_test_qcdm_LDADD = @GLIB_LIBS@
577 DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles
579 MAINTAINERCLEANFILES = Makefile.in \
580 aclocal.m4 configure config.h.in config.sub config.guess \
581 ltmain.sh depcomp compile missing install-sh mkinstalldirs
584 src/plugin.$(OBJEXT): src/builtin.h
586 src/builtin.h: src/genbuiltin config.status
587 $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
590 $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
592 include/ofono/version.h: include/version.h
593 $(AM_V_at)$(MKDIR_P) include/ofono
594 $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
596 include/ofono/%.h: include/%.h
597 $(AM_V_at)$(MKDIR_P) include/ofono
598 $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
601 @$(RM) -rf include/ofono