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/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/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 \
141 drivers/isimodem/uicc.h
144 builtin_modules += isiusb
145 builtin_sources += plugins/isiusb.c
147 builtin_modules += n900
148 builtin_sources += plugins/n900.c plugins/nokia-gpio.h plugins/nokia-gpio.c
150 builtin_modules += u8500
151 builtin_sources += plugins/u8500.c
155 builtin_modules += atmodem
156 builtin_sources += $(gatchat_sources) \
157 drivers/atmodem/atmodem.h \
158 drivers/atmodem/atmodem.c \
159 drivers/atmodem/call-settings.c \
160 drivers/atmodem/sms.c \
161 drivers/atmodem/cbs.c \
162 drivers/atmodem/call-forwarding.c \
163 drivers/atmodem/call-meter.c \
164 drivers/atmodem/network-registration.c \
165 drivers/atmodem/sim.c \
166 drivers/atmodem/stk.c \
167 drivers/atmodem/stk.h \
168 drivers/atmodem/sim-poll.c \
169 drivers/atmodem/sim-poll.h \
170 drivers/atmodem/ussd.c \
171 drivers/atmodem/voicecall.c \
172 drivers/atmodem/call-barring.c \
173 drivers/atmodem/phonebook.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 \
219 drivers/mbmmodem/location-reporting.c
221 builtin_modules += hsomodem
222 builtin_sources += drivers/atmodem/atutil.h \
223 drivers/hsomodem/hsomodem.h \
224 drivers/hsomodem/hsomodem.c \
225 drivers/hsomodem/gprs-context.c \
226 drivers/hsomodem/radio-settings.c
228 builtin_modules += ifxmodem
229 builtin_sources += drivers/atmodem/atutil.h \
230 drivers/ifxmodem/ifxmodem.h \
231 drivers/ifxmodem/ifxmodem.c \
232 drivers/ifxmodem/voicecall.c \
233 drivers/ifxmodem/audio-settings.c \
234 drivers/ifxmodem/radio-settings.c \
235 drivers/ifxmodem/gprs-context.c \
236 drivers/ifxmodem/stk.c \
237 drivers/ifxmodem/ctm.c
239 builtin_modules += stemodem
240 builtin_sources += drivers/atmodem/atutil.h \
241 drivers/stemodem/stemodem.h \
242 drivers/stemodem/stemodem.c \
243 drivers/stemodem/voicecall.c \
244 drivers/stemodem/radio-settings.c \
245 drivers/stemodem/caif_rtnl.c \
246 drivers/stemodem/caif_rtnl.h \
247 drivers/stemodem/gprs-context.c \
248 drivers/stemodem/caif_socket.h \
249 drivers/stemodem/if_caif.h
252 builtin_modules += phonesim
253 builtin_sources += plugins/phonesim.c
256 dist_conf_DATA += plugins/phonesim.conf
261 builtin_modules += cdmamodem
262 builtin_sources += drivers/cdmamodem/cdmamodem.h \
263 drivers/cdmamodem/cdmamodem.c \
264 drivers/cdmamodem/voicecall.c \
265 drivers/cdmamodem/devinfo.c
268 builtin_modules += g1
269 builtin_sources += plugins/g1.c
271 builtin_modules += gobi
272 builtin_sources += plugins/gobi.c
274 builtin_modules += wavecom
275 builtin_sources += plugins/wavecom.c
277 builtin_modules += calypso
278 builtin_sources += plugins/calypso.c
280 builtin_modules += mbm
281 builtin_sources += plugins/mbm.c
283 builtin_modules += hso
284 builtin_sources += plugins/hso.c
286 builtin_modules += zte
287 builtin_sources += plugins/zte.c
289 builtin_modules += huawei
290 builtin_sources += plugins/huawei.c
292 builtin_modules += sierra
293 builtin_sources += plugins/sierra.c
295 builtin_modules += novatel
296 builtin_sources += plugins/novatel.c
298 builtin_modules += palmpre
299 builtin_sources += plugins/palmpre.c
301 builtin_modules += ifx
302 builtin_sources += plugins/ifx.c
304 builtin_modules += ste
305 builtin_sources += plugins/ste.c
307 builtin_modules += stemgr
308 builtin_sources += plugins/stemgr.c
310 builtin_modules += caif
311 builtin_sources += plugins/caif.c
313 builtin_modules += tc65
314 builtin_sources += plugins/tc65.c
316 builtin_modules += nokia
317 builtin_sources += plugins/nokia.c
319 builtin_modules += nokiacdma
320 builtin_sources += plugins/nokiacdma.c
322 builtin_modules += linktop
323 builtin_sources += plugins/linktop.c
326 builtin_modules += bluetooth
327 builtin_sources += plugins/bluetooth.c plugins/bluetooth.h
329 builtin_modules += hfp
330 builtin_sources += plugins/hfp_hf.c plugins/bluetooth.h
332 builtin_modules += hfp_ag
333 builtin_sources += plugins/hfp_ag.c plugins/bluetooth.h
335 builtin_modules += dun_gw
336 builtin_sources += plugins/dun_gw.c plugins/bluetooth.h
338 builtin_sources += $(btio_sources)
339 builtin_cflags += @BLUEZ_CFLAGS@
340 builtin_libadd += @BLUEZ_LIBS@
345 builtin_modules += example_history
346 builtin_sources += examples/history.c
348 builtin_modules += example_nettime
349 builtin_sources += examples/nettime.c
351 builtin_modules += example_provision
352 builtin_sources += examples/provision.c
354 builtin_modules += example_emulator
355 builtin_sources += examples/emulator.c
358 builtin_modules += smart_messaging
359 builtin_sources += plugins/smart-messaging.c
361 builtin_modules += push_notification
362 builtin_sources += plugins/push-notification.c
364 sbin_PROGRAMS = src/ofonod
366 src_ofonod_SOURCES = $(gdbus_sources) $(builtin_sources) src/ofono.ver \
367 src/main.c src/ofono.h src/log.c src/plugin.c \
368 src/modem.c src/common.h src/common.c \
369 src/manager.c src/dbus.c src/util.h src/util.c \
370 src/network.c src/voicecall.c src/ussd.c src/sms.c \
371 src/call-settings.c src/call-forwarding.c \
372 src/call-meter.c src/smsutil.h src/smsutil.c \
373 src/call-barring.c src/sim.c src/stk.c \
374 src/phonebook.c src/history.c src/message-waiting.c \
375 src/simutil.h src/simutil.c src/storage.h \
376 src/storage.c src/cbs.c src/watch.c src/call-volume.c \
377 src/gprs.c src/idmap.h src/idmap.c \
378 src/radio-settings.c src/stkutil.h src/stkutil.c \
379 src/nettime.c src/stkagent.c src/stkagent.h \
380 src/simfs.c src/simfs.h src/audio-settings.c \
381 src/smsagent.c src/smsagent.h src/ctm.c \
382 src/cdma-voicecall.c src/sim-auth.c \
383 src/message.h src/message.c src/gprs-provision.c \
384 src/emulator.c src/location-reporting.c
386 src_ofonod_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ -ldl
388 src_ofonod_LDFLAGS = -Wl,--export-dynamic \
389 -Wl,--version-script=$(srcdir)/src/ofono.ver
391 BUILT_SOURCES = $(local_headers)
393 CLEANFILES = src/builtin.h $(BUILT_SOURCES) $(rules_DATA)
395 plugindir = $(pkglibdir)/plugins
398 build_plugindir = $(abs_top_srcdir)/plugins/.libs
400 build_plugindir = $(plugindir)
403 AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @CAPNG_CFLAGS@ @USB_CFLAGS@ \
405 -DOFONO_PLUGIN_BUILTIN \
406 -DPLUGINDIR=\""$(build_plugindir)"\"
408 INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/src \
409 -I$(srcdir)/gdbus -I$(srcdir)/gisi -I$(srcdir)/gatchat \
412 doc_files = doc/overview.txt doc/ofono-paper.txt doc/release-faq.txt \
413 doc/manager-api.txt doc/modem-api.txt doc/network-api.txt \
414 doc/voicecallmanager-api.txt doc/voicecall-api.txt \
415 doc/call-forwarding-api.txt doc/call-settings-api.txt \
416 doc/call-meter-api.txt doc/call-barring-api.txt \
417 doc/supplementaryservices-api.txt \
418 doc/connman-api.txt doc/features.txt \
419 doc/pushnotification-api.txt \
420 doc/smartmessaging-api.txt \
421 doc/call-volume-api.txt doc/cell-broadcast-api.txt \
422 doc/messagemanager-api.txt doc/message-waiting-api.txt \
423 doc/phonebook-api.txt doc/radio-settings-api.txt \
424 doc/sim-api.txt doc/stk-api.txt \
425 doc/audio-settings-api.txt doc/text-telephony-api.txt \
426 doc/calypso-modem.txt doc/message-api.txt \
427 doc/location-reporting-api.txt
430 test_scripts = test/backtrace \
431 test/create-internet-context \
432 test/create-mms-context \
433 test/activate-context \
434 test/deactivate-context \
435 test/deactivate-all \
439 test/create-multiparty \
447 test/set-mms-details \
448 test/set-roaming-allowed \
451 test/list-operators \
452 test/scan-for-operators \
455 test/process-context-settings \
457 test/remove-contexts \
459 test/set-mic-volume \
460 test/set-speaker-volume \
462 test/test-advice-of-charge \
463 test/test-call-barring \
464 test/test-call-forwarding \
465 test/test-call-settings \
467 test/test-network-registration \
468 test/test-phonebook \
469 test/test-ss-control-cb \
470 test/test-ss-control-cf \
471 test/test-ss-control-cs \
472 test/test-voicecall \
478 test/get-tech-preference \
479 test/set-tech-preference \
480 test/set-use-sms-reports \
481 test/set-cbs-topics \
488 test/set-fast-dormancy \
489 test/test-push-notification \
490 test/test-smart-messaging \
495 test/lockdown-modem \
496 test/set-call-forwarding \
497 test/cdma-list-call \
498 test/cdma-dial-number \
500 test/disable-call-forwarding \
503 test/test-message-waiting
506 testdir = $(pkglibdir)/test
507 test_SCRIPTS = $(test_scripts)
510 EXTRA_DIST = src/genbuiltin $(udev_files) $(doc_files) $(test_scripts)
512 dist_man_MANS = doc/ofonod.8
515 noinst_PROGRAMS = unit/test-common unit/test-util unit/test-idmap \
516 unit/test-sms unit/test-simutil \
517 unit/test-mux unit/test-caif \
522 unit_test_common_SOURCES = unit/test-common.c src/common.c src/util.c
523 unit_test_common_LDADD = @GLIB_LIBS@
524 unit_objects += $(unit_test_common_OBJECTS)
526 unit_test_util_SOURCES = unit/test-util.c src/util.c
527 unit_test_util_LDADD = @GLIB_LIBS@
528 unit_objects += $(unit_test_utils_OBJECTS)
530 unit_test_idmap_SOURCES = unit/test-idmap.c src/idmap.c
531 unit_test_idmap_LDADD = @GLIB_LIBS@
532 unit_objects += $(unit_test_idmap_OBJECTS)
534 unit_test_sms_SOURCES = unit/test-sms.c src/util.c src/smsutil.c src/storage.c
535 unit_test_sms_LDADD = @GLIB_LIBS@
536 unit_objects += $(unit_test_sms_OBJECTS)
538 unit_test_simutil_SOURCES = unit/test-simutil.c src/util.c \
539 src/simutil.c src/smsutil.c src/storage.c
540 unit_test_simutil_LDADD = @GLIB_LIBS@
541 unit_objects += $(unit_test_simutil_OBJECTS)
543 unit_test_stkutil_SOURCES = unit/test-stkutil.c src/util.c \
544 src/storage.c src/smsutil.c \
545 src/simutil.c src/stkutil.c
546 unit_test_stkutil_LDADD = @GLIB_LIBS@
547 unit_objects += $(unit_test_stkutil_OBJECTS)
549 unit_test_mux_SOURCES = unit/test-mux.c $(gatchat_sources)
550 unit_test_mux_LDADD = @GLIB_LIBS@
551 unit_objects += $(unit_test_mux_OBJECTS)
553 unit_test_caif_SOURCES = unit/test-caif.c $(gatchat_sources) \
554 drivers/stemodem/caif_socket.h \
555 drivers/stemodem/if_caif.h
556 unit_test_caif_LDADD = @GLIB_LIBS@
557 unit_objects += $(unit_test_caif_OBJECTS)
560 noinst_PROGRAMS += tools/huawei-audio tools/auto-enable tools/get-location
562 tools_huawei_audio_SOURCES = $(gdbus_sources) tools/huawei-audio.c
563 tools_huawei_audio_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
565 tools_auto_enable_SOURCES = $(gdbus_sources) tools/auto-enable.c
566 tools_auto_enable_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
568 tools_get_location_SOURCES = tools/get-location.c
569 tools_get_location_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
572 noinst_PROGRAMS += gatchat/gsmdial gatchat/test-server gatchat/test-qcdm
574 gatchat_gsmdial_SOURCES = gatchat/gsmdial.c $(gatchat_sources)
575 gatchat_gsmdial_LDADD = @GLIB_LIBS@
577 gatchat_test_server_SOURCES = gatchat/test-server.c $(gatchat_sources)
578 gatchat_test_server_LDADD = @GLIB_LIBS@ -lutil
580 gatchat_test_qcdm_SOURCES = gatchat/test-qcdm.c $(gatchat_sources)
581 gatchat_test_qcdm_LDADD = @GLIB_LIBS@
584 DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles
586 MAINTAINERCLEANFILES = Makefile.in \
587 aclocal.m4 configure config.h.in config.sub config.guess \
588 ltmain.sh depcomp compile missing install-sh mkinstalldirs
591 src/plugin.$(OBJEXT): src/builtin.h
593 src/builtin.h: src/genbuiltin config.status
594 $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
597 $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
599 include/ofono/version.h: include/version.h
600 $(AM_V_at)$(MKDIR_P) include/ofono
601 $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
603 include/ofono/%.h: include/%.h
604 $(AM_V_at)$(MKDIR_P) include/ofono
605 $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
608 @$(RM) -rf include/ofono