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 \
18 include/location-reporting.h
20 nodist_pkginclude_HEADERS = include/version.h
22 local_headers = $(foreach file,$(pkginclude_HEADERS) \
23 $(nodist_pkginclude_HEADERS), \
24 include/ofono/$(notdir $(file)))
26 pkgconfigdir = $(libdir)/pkgconfig
27 pkgconfig_DATA = ofono.pc
31 dbusconfdir = @DBUS_CONFDIR@
33 dist_dbusconf_DATA = src/ofono.conf
36 systemdunitdir = @SYSTEMD_UNITDIR@
38 systemdunit_DATA = src/ofono.service
41 confdir = $(sysconfdir)/ofono
45 statedir = $(localstatedir)/lib/ofono
55 gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \
56 gdbus/object.c gdbus/polkit.c
58 gatchat_sources = gatchat/gatchat.h gatchat/gatchat.c \
59 gatchat/gatresult.h gatchat/gatresult.c \
60 gatchat/gatsyntax.h gatchat/gatsyntax.c \
61 gatchat/ringbuffer.h gatchat/ringbuffer.c \
62 gatchat/gatio.h gatchat/gatio.c \
63 gatchat/crc-ccitt.h gatchat/crc-ccitt.c \
64 gatchat/gatmux.h gatchat/gatmux.c \
65 gatchat/gsm0710.h gatchat/gsm0710.c \
66 gatchat/gattty.h gatchat/gattty.c \
67 gatchat/gatutil.h gatchat/gatutil.c \
69 gatchat/gatserver.h gatchat/gatserver.c \
70 gatchat/gatrawip.h gatchat/gatrawip.c \
71 gatchat/gathdlc.c gatchat/gathdlc.h \
72 gatchat/gatppp.c gatchat/gatppp.h \
73 gatchat/ppp.h gatchat/ppp_cp.h \
74 gatchat/ppp_cp.c gatchat/ppp_lcp.c \
75 gatchat/ppp_auth.c gatchat/ppp_net.c \
78 gisi_sources = gisi/client.c gisi/client.h gisi/common.h \
79 gisi/iter.c gisi/iter.h \
80 gisi/message.c gisi/message.h \
81 gisi/modem.c gisi/modem.h \
82 gisi/netlink.c gisi/netlink.h \
83 gisi/pep.c gisi/pep.h \
85 gisi/pipe.c gisi/pipe.h \
86 gisi/server.c gisi/server.h \
87 gisi/socket.c gisi/socket.h
89 btio_sources = btio/btio.h btio/btio.c
91 udev_files = plugins/ofono.rules
94 builtin_modules += udev
95 builtin_sources += plugins/udev.c
96 builtin_cflags += @UDEV_CFLAGS@
97 builtin_libadd += @UDEV_LIBS@
100 rulesdir = @UDEV_DATADIR@
102 rules_DATA = $(foreach file,$(udev_files), plugins/97-$(notdir $(file)))
107 builtin_modules += isimodem
108 builtin_sources += $(gisi_sources) \
109 drivers/isimodem/isimodem.h \
110 drivers/isimodem/isimodem.c \
111 drivers/isimodem/mtc.h \
112 drivers/isimodem/debug.h \
113 drivers/isimodem/isiutil.h \
114 drivers/isimodem/debug.c \
115 drivers/isimodem/phonebook.c \
116 drivers/isimodem/devinfo.c \
117 drivers/isimodem/info.h \
118 drivers/isimodem/network-registration.c \
119 drivers/isimodem/network.h \
120 drivers/isimodem/infoserver.h \
121 drivers/isimodem/infoserver.c \
122 drivers/isimodem/voicecall.c \
123 drivers/isimodem/call.h \
124 drivers/isimodem/sms.c \
125 drivers/isimodem/sms.h \
126 drivers/isimodem/cbs.c \
127 drivers/isimodem/sim.c \
128 drivers/isimodem/sim.h \
129 drivers/isimodem/ssn.c \
130 drivers/isimodem/ussd.c \
131 drivers/isimodem/call-forwarding.c \
132 drivers/isimodem/call-settings.c \
133 drivers/isimodem/call-barring.c \
134 drivers/isimodem/call-meter.c \
135 drivers/isimodem/ss.h \
136 drivers/isimodem/radio-settings.c \
137 drivers/isimodem/gss.h \
138 drivers/isimodem/gprs.c \
139 drivers/isimodem/gprs-context.c \
140 drivers/isimodem/gpds.h \
141 drivers/isimodem/audio-settings.c
143 builtin_modules += isiusb
144 builtin_sources += plugins/isiusb.c
146 builtin_modules += n900
147 builtin_sources += plugins/n900.c plugins/nokia-gpio.h plugins/nokia-gpio.c
149 builtin_modules += u8500
150 builtin_sources += plugins/u8500.c
154 builtin_modules += atmodem
155 builtin_sources += $(gatchat_sources) \
156 drivers/atmodem/atmodem.h \
157 drivers/atmodem/atmodem.c \
158 drivers/atmodem/call-settings.c \
159 drivers/atmodem/sms.c \
160 drivers/atmodem/cbs.c \
161 drivers/atmodem/call-forwarding.c \
162 drivers/atmodem/call-meter.c \
163 drivers/atmodem/network-registration.c \
164 drivers/atmodem/sim.c \
165 drivers/atmodem/stk.c \
166 drivers/atmodem/stk.h \
167 drivers/atmodem/sim-poll.c \
168 drivers/atmodem/sim-poll.h \
169 drivers/atmodem/ussd.c \
170 drivers/atmodem/voicecall.c \
171 drivers/atmodem/call-barring.c \
172 drivers/atmodem/phonebook.c \
173 drivers/atmodem/ssn.c \
174 drivers/atmodem/devinfo.c \
175 drivers/atmodem/call-volume.c \
176 drivers/atmodem/vendor.h \
177 drivers/atmodem/atutil.h \
178 drivers/atmodem/atutil.c \
179 drivers/atmodem/gprs.c \
180 drivers/atmodem/gprs-context.c \
181 drivers/atmodem/sim-auth.c
183 builtin_modules += nwmodem
184 builtin_sources += drivers/atmodem/atutil.h \
185 drivers/nwmodem/nwmodem.h \
186 drivers/nwmodem/nwmodem.c \
187 drivers/nwmodem/radio-settings.c
189 builtin_modules += huaweimodem
190 builtin_sources += drivers/atmodem/atutil.h \
191 drivers/huaweimodem/huaweimodem.h \
192 drivers/huaweimodem/huaweimodem.c \
193 drivers/huaweimodem/voicecall.c \
194 drivers/huaweimodem/audio-settings.c \
195 drivers/huaweimodem/gprs-context.c \
196 drivers/huaweimodem/radio-settings.c
198 builtin_modules += calypsomodem
199 builtin_sources += drivers/atmodem/atutil.h \
200 drivers/calypsomodem/calypsomodem.h \
201 drivers/calypsomodem/calypsomodem.c \
202 drivers/calypsomodem/voicecall.c \
203 drivers/calypsomodem/stk.c
205 builtin_modules += hfpmodem
206 builtin_sources += drivers/atmodem/atutil.h \
207 drivers/hfpmodem/hfpmodem.h \
208 drivers/hfpmodem/hfpmodem.c \
209 drivers/hfpmodem/voicecall.c \
210 drivers/hfpmodem/network-registration.c \
211 drivers/hfpmodem/call-volume.c
213 builtin_modules += mbmmodem
214 builtin_sources += drivers/atmodem/atutil.h \
215 drivers/mbmmodem/mbmmodem.h \
216 drivers/mbmmodem/mbmmodem.c \
217 drivers/mbmmodem/gprs-context.c \
218 drivers/mbmmodem/stk.c
220 builtin_modules += hsomodem
221 builtin_sources += drivers/atmodem/atutil.h \
222 drivers/hsomodem/hsomodem.h \
223 drivers/hsomodem/hsomodem.c \
224 drivers/hsomodem/gprs-context.c \
225 drivers/hsomodem/radio-settings.c
227 builtin_modules += ifxmodem
228 builtin_sources += drivers/atmodem/atutil.h \
229 drivers/ifxmodem/ifxmodem.h \
230 drivers/ifxmodem/ifxmodem.c \
231 drivers/ifxmodem/voicecall.c \
232 drivers/ifxmodem/audio-settings.c \
233 drivers/ifxmodem/radio-settings.c \
234 drivers/ifxmodem/gprs-context.c \
235 drivers/ifxmodem/stk.c \
236 drivers/ifxmodem/ctm.c
238 builtin_modules += stemodem
239 builtin_sources += drivers/atmodem/atutil.h \
240 drivers/stemodem/stemodem.h \
241 drivers/stemodem/stemodem.c \
242 drivers/stemodem/voicecall.c \
243 drivers/stemodem/radio-settings.c \
244 drivers/stemodem/caif_rtnl.c \
245 drivers/stemodem/caif_rtnl.h \
246 drivers/stemodem/gprs-context.c \
247 drivers/stemodem/caif_socket.h \
248 drivers/stemodem/if_caif.h
251 builtin_modules += phonesim
252 builtin_sources += plugins/phonesim.c
255 dist_conf_DATA += plugins/phonesim.conf
260 builtin_modules += cdmamodem
261 builtin_sources += drivers/cdmamodem/cdmamodem.h \
262 drivers/cdmamodem/cdmamodem.c \
263 drivers/cdmamodem/voicecall.c \
264 drivers/cdmamodem/devinfo.c
267 builtin_modules += g1
268 builtin_sources += plugins/g1.c
270 builtin_modules += gobi
271 builtin_sources += plugins/gobi.c
273 builtin_modules += wavecom
274 builtin_sources += plugins/wavecom.c
276 builtin_modules += calypso
277 builtin_sources += plugins/calypso.c
279 builtin_modules += mbm
280 builtin_sources += plugins/mbm.c
282 builtin_modules += hso
283 builtin_sources += plugins/hso.c
285 builtin_modules += zte
286 builtin_sources += plugins/zte.c
288 builtin_modules += huawei
289 builtin_sources += plugins/huawei.c
291 builtin_modules += sierra
292 builtin_sources += plugins/sierra.c
294 builtin_modules += novatel
295 builtin_sources += plugins/novatel.c
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 += nokia
316 builtin_sources += plugins/nokia.c
318 builtin_modules += nokiacdma
319 builtin_sources += plugins/nokiacdma.c
321 builtin_modules += linktop
322 builtin_sources += plugins/linktop.c
325 builtin_modules += bluetooth
326 builtin_sources += plugins/bluetooth.c plugins/bluetooth.h
328 builtin_modules += hfp
329 builtin_sources += plugins/hfp_hf.c plugins/bluetooth.h
331 builtin_modules += hfp_ag
332 builtin_sources += plugins/hfp_ag.c plugins/bluetooth.h
334 builtin_modules += dun_gw
335 builtin_sources += plugins/dun_gw.c plugins/bluetooth.h
337 builtin_sources += $(btio_sources)
338 builtin_cflags += @BLUEZ_CFLAGS@
339 builtin_libadd += @BLUEZ_LIBS@
344 builtin_modules += example_history
345 builtin_sources += examples/history.c
347 builtin_modules += example_nettime
348 builtin_sources += examples/nettime.c
350 builtin_modules += example_provision
351 builtin_sources += examples/provision.c
353 builtin_modules += example_emulator
354 builtin_sources += examples/emulator.c
357 builtin_modules += smart_messaging
358 builtin_sources += plugins/smart-messaging.c
360 builtin_modules += push_notification
361 builtin_sources += plugins/push-notification.c
363 sbin_PROGRAMS = src/ofonod
365 src_ofonod_SOURCES = $(gdbus_sources) $(builtin_sources) src/ofono.ver \
366 src/main.c src/ofono.h src/log.c src/plugin.c \
367 src/modem.c src/common.h src/common.c \
368 src/manager.c src/dbus.c src/util.h src/util.c \
369 src/network.c src/voicecall.c src/ussd.c src/sms.c \
370 src/call-settings.c src/call-forwarding.c \
371 src/call-meter.c src/smsutil.h src/smsutil.c \
372 src/ssn.c src/call-barring.c src/sim.c src/stk.c \
373 src/phonebook.c src/history.c src/message-waiting.c \
374 src/simutil.h src/simutil.c src/storage.h \
375 src/storage.c src/cbs.c src/watch.c src/call-volume.c \
376 src/gprs.c src/idmap.h src/idmap.c \
377 src/radio-settings.c src/stkutil.h src/stkutil.c \
378 src/nettime.c src/stkagent.c src/stkagent.h \
379 src/simfs.c src/simfs.h src/audio-settings.c \
380 src/smsagent.c src/smsagent.h src/ctm.c \
381 src/cdma-voicecall.c src/sim-auth.c \
382 src/message.h src/message.c src/gprs-provision.c \
385 src_ofonod_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ -ldl
387 src_ofonod_LDFLAGS = -Wl,--export-dynamic \
388 -Wl,--version-script=$(srcdir)/src/ofono.ver
390 BUILT_SOURCES = $(local_headers)
392 CLEANFILES = src/builtin.h $(BUILT_SOURCES) $(rules_DATA)
394 plugindir = $(pkglibdir)/plugins
397 build_plugindir = $(abs_top_srcdir)/plugins/.libs
399 build_plugindir = $(plugindir)
402 AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @CAPNG_CFLAGS@ @USB_CFLAGS@ \
404 -DOFONO_PLUGIN_BUILTIN \
405 -DPLUGINDIR=\""$(build_plugindir)"\"
407 INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/src \
408 -I$(srcdir)/gdbus -I$(srcdir)/gisi -I$(srcdir)/gatchat \
411 doc_files = doc/overview.txt doc/ofono-paper.txt doc/release-faq.txt \
412 doc/manager-api.txt doc/modem-api.txt doc/network-api.txt \
413 doc/voicecallmanager-api.txt doc/voicecall-api.txt \
414 doc/call-forwarding-api.txt doc/call-settings-api.txt \
415 doc/call-meter-api.txt doc/call-barring-api.txt \
416 doc/supplementaryservices-api.txt \
417 doc/connman-api.txt doc/features.txt \
418 doc/pushnotification-api.txt \
419 doc/smartmessaging-api.txt \
420 doc/call-volume-api.txt doc/cell-broadcast-api.txt \
421 doc/messagemanager-api.txt doc/message-waiting-api.txt \
422 doc/phonebook-api.txt doc/radio-settings-api.txt \
423 doc/sim-api.txt doc/stk-api.txt \
424 doc/audio-settings-api.txt doc/text-telephony-api.txt \
425 doc/calypso-modem.txt doc/message-api.txt
428 test_scripts = test/backtrace \
429 test/create-internet-context \
430 test/create-mms-context \
431 test/activate-context \
432 test/deactivate-context \
433 test/deactivate-all \
437 test/create-multiparty \
445 test/set-mms-details \
446 test/set-roaming-allowed \
449 test/list-operators \
450 test/scan-for-operators \
453 test/process-context-settings \
455 test/remove-contexts \
457 test/set-mic-volume \
458 test/set-speaker-volume \
460 test/test-advice-of-charge \
461 test/test-call-barring \
462 test/test-call-forwarding \
463 test/test-call-settings \
465 test/test-network-registration \
466 test/test-phonebook \
467 test/test-ss-control-cb \
468 test/test-ss-control-cf \
469 test/test-ss-control-cs \
470 test/test-voicecall \
476 test/get-tech-preference \
477 test/set-tech-preference \
478 test/set-use-sms-reports \
479 test/set-cbs-topics \
486 test/set-fast-dormancy \
487 test/test-push-notification \
488 test/test-smart-messaging \
493 test/lockdown-modem \
494 test/set-call-forwarding \
495 test/cdma-list-call \
496 test/cdma-dial-number \
498 test/disable-call-forwarding \
503 testdir = $(pkglibdir)/test
504 test_SCRIPTS = $(test_scripts)
507 EXTRA_DIST = src/genbuiltin $(udev_files) $(doc_files) $(test_scripts)
509 dist_man_MANS = doc/ofonod.8
512 noinst_PROGRAMS = unit/test-common unit/test-util unit/test-idmap \
513 unit/test-sms unit/test-simutil \
514 unit/test-mux unit/test-caif \
519 unit_test_common_SOURCES = unit/test-common.c src/common.c src/util.c
520 unit_test_common_LDADD = @GLIB_LIBS@
521 unit_objects += $(unit_test_common_OBJECTS)
523 unit_test_util_SOURCES = unit/test-util.c src/util.c
524 unit_test_util_LDADD = @GLIB_LIBS@
525 unit_objects += $(unit_test_utils_OBJECTS)
527 unit_test_idmap_SOURCES = unit/test-idmap.c src/idmap.c
528 unit_test_idmap_LDADD = @GLIB_LIBS@
529 unit_objects += $(unit_test_idmap_OBJECTS)
531 unit_test_sms_SOURCES = unit/test-sms.c src/util.c src/smsutil.c src/storage.c
532 unit_test_sms_LDADD = @GLIB_LIBS@
533 unit_objects += $(unit_test_sms_OBJECTS)
535 unit_test_simutil_SOURCES = unit/test-simutil.c src/util.c \
536 src/simutil.c src/smsutil.c src/storage.c
537 unit_test_simutil_LDADD = @GLIB_LIBS@
538 unit_objects += $(unit_test_simutil_OBJECTS)
540 unit_test_stkutil_SOURCES = unit/test-stkutil.c src/util.c \
541 src/storage.c src/smsutil.c \
542 src/simutil.c src/stkutil.c
543 unit_test_stkutil_LDADD = @GLIB_LIBS@
544 unit_objects += $(unit_test_stkutil_OBJECTS)
546 unit_test_mux_SOURCES = unit/test-mux.c $(gatchat_sources)
547 unit_test_mux_LDADD = @GLIB_LIBS@
548 unit_objects += $(unit_test_mux_OBJECTS)
550 unit_test_caif_SOURCES = unit/test-caif.c $(gatchat_sources) \
551 drivers/stemodem/caif_socket.h \
552 drivers/stemodem/if_caif.h
553 unit_test_caif_LDADD = @GLIB_LIBS@
554 unit_objects += $(unit_test_caif_OBJECTS)
557 noinst_PROGRAMS += tools/huawei-audio tools/auto-enable
559 tools_huawei_audio_SOURCES = $(gdbus_sources) tools/huawei-audio.c
560 tools_huawei_audio_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
562 tools_auto_enable_SOURCES = $(gdbus_sources) tools/auto-enable.c
563 tools_auto_enable_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
566 noinst_PROGRAMS += gatchat/gsmdial gatchat/test-server gatchat/test-qcdm
568 gatchat_gsmdial_SOURCES = gatchat/gsmdial.c $(gatchat_sources)
569 gatchat_gsmdial_LDADD = @GLIB_LIBS@
571 gatchat_test_server_SOURCES = gatchat/test-server.c $(gatchat_sources)
572 gatchat_test_server_LDADD = @GLIB_LIBS@ -lutil
574 gatchat_test_qcdm_SOURCES = gatchat/test-qcdm.c $(gatchat_sources)
575 gatchat_test_qcdm_LDADD = @GLIB_LIBS@
578 DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles
580 MAINTAINERCLEANFILES = Makefile.in \
581 aclocal.m4 configure config.h.in config.sub config.guess \
582 ltmain.sh depcomp compile missing install-sh mkinstalldirs
585 src/plugin.$(OBJEXT): src/builtin.h
587 src/builtin.h: src/genbuiltin config.status
588 $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
591 $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
593 include/ofono/version.h: include/version.h
594 $(AM_V_at)$(MKDIR_P) include/ofono
595 $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
597 include/ofono/%.h: include/%.h
598 $(AM_V_at)$(MKDIR_P) include/ofono
599 $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
602 @$(RM) -rf include/ofono