build: Reduce indentation for isimodem and atmodem sources
[platform/upstream/ofono.git] / Makefile.am
1
2 AM_MAKEFLAGS = --no-print-directory
3
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 \
19                         include/cdma-connman.h include/gnss.h \
20                         include/private-network.h include/cdma-netreg.h \
21                         include/cdma-provision.h include/handsfree.h
22
23 nodist_pkginclude_HEADERS = include/version.h
24
25 local_headers = $(foreach file,$(pkginclude_HEADERS) \
26                                 $(nodist_pkginclude_HEADERS), \
27                                         include/ofono/$(notdir $(file)))
28
29 pkgconfigdir = $(libdir)/pkgconfig
30 pkgconfig_DATA = ofono.pc
31
32
33 if DATAFILES
34 dbusconfdir = @DBUS_CONFDIR@
35
36 dist_dbusconf_DATA = src/ofono.conf
37
38 if SYSTEMD
39 systemdunitdir = @SYSTEMD_UNITDIR@
40
41 systemdunit_DATA = src/ofono.service
42 endif
43
44 confdir = $(sysconfdir)/ofono
45
46 dist_conf_DATA =
47
48 statedir = $(localstatedir)/lib/ofono
49
50 state_DATA =
51 endif
52
53 builtin_modules =
54 builtin_sources =
55 builtin_libadd =
56 builtin_cflags =
57
58 gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \
59                                         gdbus/object.c gdbus/polkit.c
60
61 gatchat_sources = gatchat/gatchat.h gatchat/gatchat.c \
62                                 gatchat/gatresult.h gatchat/gatresult.c \
63                                 gatchat/gatsyntax.h gatchat/gatsyntax.c \
64                                 gatchat/ringbuffer.h gatchat/ringbuffer.c \
65                                 gatchat/gatio.h gatchat/gatio.c \
66                                 gatchat/crc-ccitt.h gatchat/crc-ccitt.c \
67                                 gatchat/gatmux.h gatchat/gatmux.c \
68                                 gatchat/gsm0710.h gatchat/gsm0710.c \
69                                 gatchat/gattty.h gatchat/gattty.c \
70                                 gatchat/gatutil.h gatchat/gatutil.c \
71                                 gatchat/gat.h \
72                                 gatchat/gatserver.h gatchat/gatserver.c \
73                                 gatchat/gatrawip.h gatchat/gatrawip.c \
74                                 gatchat/gathdlc.c gatchat/gathdlc.h \
75                                 gatchat/gatppp.c gatchat/gatppp.h \
76                                 gatchat/ppp.h gatchat/ppp_cp.h \
77                                 gatchat/ppp_cp.c gatchat/ppp_lcp.c \
78                                 gatchat/ppp_auth.c gatchat/ppp_net.c \
79                                 gatchat/ppp_ipcp.c gatchat/ppp_ipv6cp.c
80
81 gisi_sources = gisi/client.c gisi/client.h gisi/common.h \
82                                 gisi/iter.c gisi/iter.h \
83                                 gisi/message.c gisi/message.h \
84                                 gisi/modem.c gisi/modem.h \
85                                 gisi/netlink.c gisi/netlink.h \
86                                 gisi/pep.c gisi/pep.h \
87                                 gisi/phonet.h \
88                                 gisi/pipe.c gisi/pipe.h \
89                                 gisi/server.c gisi/server.h \
90                                 gisi/socket.c gisi/socket.h
91
92 btio_sources = btio/btio.h btio/btio.c
93
94 if UDEV
95 builtin_modules += udev
96 builtin_sources += plugins/udev.c
97 builtin_cflags += @UDEV_CFLAGS@
98 builtin_libadd += @UDEV_LIBS@
99
100 builtin_modules += udevng
101 builtin_sources += plugins/udevng.c
102 endif
103
104 if ISIMODEM
105 builtin_modules += isimodem
106 builtin_sources += $(gisi_sources) \
107                         drivers/isimodem/isimodem.h \
108                         drivers/isimodem/isimodem.c \
109                         drivers/isimodem/mtc.h \
110                         drivers/isimodem/debug.h \
111                         drivers/isimodem/isiutil.h \
112                         drivers/isimodem/debug.c \
113                         drivers/isimodem/phonebook.c \
114                         drivers/isimodem/devinfo.c \
115                         drivers/isimodem/info.h \
116                         drivers/isimodem/network-registration.c \
117                         drivers/isimodem/network.h \
118                         drivers/isimodem/infoserver.h \
119                         drivers/isimodem/infoserver.c \
120                         drivers/isimodem/voicecall.c \
121                         drivers/isimodem/call.h \
122                         drivers/isimodem/sms.c \
123                         drivers/isimodem/sms.h \
124                         drivers/isimodem/cbs.c \
125                         drivers/isimodem/sim.c \
126                         drivers/isimodem/sim.h \
127                         drivers/isimodem/ussd.c \
128                         drivers/isimodem/call-forwarding.c \
129                         drivers/isimodem/call-settings.c \
130                         drivers/isimodem/call-barring.c \
131                         drivers/isimodem/call-meter.c \
132                         drivers/isimodem/ss.h \
133                         drivers/isimodem/radio-settings.c \
134                         drivers/isimodem/gss.h \
135                         drivers/isimodem/gprs.c \
136                         drivers/isimodem/gprs-context.c \
137                         drivers/isimodem/gpds.h \
138                         drivers/isimodem/audio-settings.c \
139                         drivers/isimodem/uicc.h \
140                         drivers/isimodem/uicc.c \
141                         drivers/isimodem/uicc-util.h \
142                         drivers/isimodem/uicc-util.c
143
144 builtin_modules += isiusb
145 builtin_sources += plugins/isiusb.c
146
147 builtin_modules += n900
148 builtin_sources += plugins/n900.c plugins/nokia-gpio.h plugins/nokia-gpio.c
149
150 builtin_modules += u8500
151 builtin_sources += plugins/u8500.c
152 endif
153
154 if QMIMODEM
155 builtin_modules += qmimodem
156 builtin_sources += drivers/qmimodem/qmimodem.h drivers/qmimodem/qmimodem.c
157
158 builtin_modules += gobi
159 builtin_sources += plugins/gobi.c
160 endif
161
162 if ATMODEM
163 builtin_modules += atmodem
164 builtin_sources += $(gatchat_sources) \
165                         drivers/atmodem/atmodem.h \
166                         drivers/atmodem/atmodem.c \
167                         drivers/atmodem/call-settings.c \
168                         drivers/atmodem/sms.c \
169                         drivers/atmodem/cbs.c \
170                         drivers/atmodem/call-forwarding.c \
171                         drivers/atmodem/call-meter.c \
172                         drivers/atmodem/network-registration.c \
173                         drivers/atmodem/sim.c \
174                         drivers/atmodem/stk.c \
175                         drivers/atmodem/stk.h \
176                         drivers/atmodem/ussd.c \
177                         drivers/atmodem/voicecall.c \
178                         drivers/atmodem/call-barring.c \
179                         drivers/atmodem/phonebook.c \
180                         drivers/atmodem/devinfo.c \
181                         drivers/atmodem/call-volume.c \
182                         drivers/atmodem/vendor.h \
183                         drivers/atmodem/atutil.h \
184                         drivers/atmodem/atutil.c \
185                         drivers/atmodem/gprs.c \
186                         drivers/atmodem/gprs-context.c \
187                         drivers/atmodem/sim-auth.c \
188                         drivers/atmodem/gnss.c
189
190 builtin_modules += nwmodem
191 builtin_sources += drivers/atmodem/atutil.h \
192                         drivers/nwmodem/nwmodem.h \
193                         drivers/nwmodem/nwmodem.c \
194                         drivers/nwmodem/radio-settings.c
195
196 builtin_modules += swmodem
197 builtin_sources += drivers/atmodem/atutil.h \
198                         drivers/swmodem/swmodem.h \
199                         drivers/swmodem/swmodem.c \
200                         drivers/swmodem/gprs-context.c
201
202 builtin_modules += ztemodem
203 builtin_sources += drivers/atmodem/atutil.h \
204                         drivers/ztemodem/ztemodem.h \
205                         drivers/ztemodem/ztemodem.c \
206                         drivers/ztemodem/radio-settings.c
207
208 builtin_modules += iceramodem
209 builtin_sources += drivers/atmodem/atutil.h \
210                         drivers/iceramodem/iceramodem.h \
211                         drivers/iceramodem/iceramodem.c \
212                         drivers/iceramodem/gprs-context.c \
213                         drivers/iceramodem/radio-settings.c
214
215 builtin_modules += huaweimodem
216 builtin_sources += drivers/atmodem/atutil.h \
217                         drivers/huaweimodem/huaweimodem.h \
218                         drivers/huaweimodem/huaweimodem.c \
219                         drivers/huaweimodem/ussd.c \
220                         drivers/huaweimodem/voicecall.c \
221                         drivers/huaweimodem/audio-settings.c \
222                         drivers/huaweimodem/gprs-context.c \
223                         drivers/huaweimodem/radio-settings.c \
224                         drivers/huaweimodem/cdma-netreg.c
225
226 builtin_modules += calypsomodem
227 builtin_sources += drivers/atmodem/atutil.h \
228                         drivers/calypsomodem/calypsomodem.h \
229                         drivers/calypsomodem/calypsomodem.c \
230                         drivers/calypsomodem/voicecall.c \
231                         drivers/calypsomodem/stk.c
232
233 builtin_modules += mbmmodem
234 builtin_sources += drivers/atmodem/atutil.h \
235                         drivers/mbmmodem/mbmmodem.h \
236                         drivers/mbmmodem/mbmmodem.c \
237                         drivers/mbmmodem/gprs-context.c \
238                         drivers/mbmmodem/stk.c \
239                         drivers/mbmmodem/location-reporting.c
240
241 builtin_modules += hsomodem
242 builtin_sources += drivers/atmodem/atutil.h \
243                         drivers/hsomodem/hsomodem.h \
244                         drivers/hsomodem/hsomodem.c \
245                         drivers/hsomodem/gprs-context.c \
246                         drivers/hsomodem/radio-settings.c
247
248 builtin_modules += ifxmodem
249 builtin_sources += drivers/atmodem/atutil.h \
250                         drivers/ifxmodem/ifxmodem.h \
251                         drivers/ifxmodem/ifxmodem.c \
252                         drivers/ifxmodem/voicecall.c \
253                         drivers/ifxmodem/audio-settings.c \
254                         drivers/ifxmodem/radio-settings.c \
255                         drivers/ifxmodem/gprs-context.c \
256                         drivers/ifxmodem/stk.c \
257                         drivers/ifxmodem/ctm.c
258
259 builtin_modules += stemodem
260 builtin_sources += drivers/atmodem/atutil.h \
261                         drivers/stemodem/stemodem.h \
262                         drivers/stemodem/stemodem.c \
263                         drivers/stemodem/voicecall.c \
264                         drivers/stemodem/radio-settings.c \
265                         drivers/stemodem/caif_rtnl.c \
266                         drivers/stemodem/caif_rtnl.h \
267                         drivers/stemodem/gprs-context.c \
268                         drivers/stemodem/caif_socket.h \
269                         drivers/stemodem/if_caif.h
270
271 builtin_modules += dunmodem
272 builtin_sources += drivers/atmodem/atutil.h \
273                         drivers/dunmodem/dunmodem.h \
274                         drivers/dunmodem/dunmodem.c \
275                         drivers/dunmodem/network-registration.c \
276                         drivers/dunmodem/gprs.c
277
278 builtin_modules += hfpmodem
279 builtin_sources += drivers/atmodem/atutil.h \
280                         drivers/hfpmodem/hfpmodem.h \
281                         drivers/hfpmodem/hfpmodem.c \
282                         drivers/hfpmodem/slc.h \
283                         drivers/hfpmodem/slc.c \
284                         drivers/hfpmodem/voicecall.c \
285                         drivers/hfpmodem/network-registration.c \
286                         drivers/hfpmodem/call-volume.c \
287                         drivers/hfpmodem/devinfo.c \
288                         drivers/hfpmodem/handsfree.c
289
290 builtin_modules += speedupmodem
291 builtin_sources += drivers/atmodem/atutil.h \
292                         drivers/speedupmodem/speedupmodem.h \
293                         drivers/speedupmodem/speedupmodem.c \
294                         drivers/speedupmodem/ussd.c
295
296 if PHONESIM
297 builtin_modules += phonesim
298 builtin_sources += plugins/phonesim.c
299
300 if DATAFILES
301 dist_conf_DATA += plugins/phonesim.conf
302 endif
303 endif
304
305 if CDMAMODEM
306 builtin_modules += cdmamodem
307 builtin_sources += drivers/cdmamodem/cdmamodem.h \
308                         drivers/cdmamodem/cdmamodem.c \
309                         drivers/cdmamodem/voicecall.c \
310                         drivers/cdmamodem/devinfo.c \
311                         drivers/cdmamodem/connman.c
312 endif
313
314 builtin_modules += g1
315 builtin_sources += plugins/g1.c
316
317 builtin_modules += wavecom
318 builtin_sources += plugins/wavecom.c
319
320 builtin_modules += calypso
321 builtin_sources += plugins/calypso.c
322
323 builtin_modules += mbm
324 builtin_sources += plugins/mbm.c
325
326 builtin_modules += hso
327 builtin_sources += plugins/hso.c
328
329 builtin_modules += zte
330 builtin_sources += plugins/zte.c
331
332 builtin_modules += huawei
333 builtin_sources += plugins/huawei.c
334
335 builtin_modules += sierra
336 builtin_sources += plugins/sierra.c
337
338 builtin_modules += novatel
339 builtin_sources += plugins/novatel.c
340
341 builtin_modules += palmpre
342 builtin_sources += plugins/palmpre.c
343
344 builtin_modules += ifx
345 builtin_sources += plugins/ifx.c
346
347 builtin_modules += ste
348 builtin_sources += plugins/ste.c
349
350 builtin_modules += stemgr
351 builtin_sources += plugins/stemgr.c
352
353 builtin_modules += caif
354 builtin_sources += plugins/caif.c
355
356 builtin_modules += tc65
357 builtin_sources += plugins/tc65.c
358
359 builtin_modules += nokia
360 builtin_sources += plugins/nokia.c
361
362 builtin_modules += nokiacdma
363 builtin_sources += plugins/nokiacdma.c
364
365 builtin_modules += linktop
366 builtin_sources += plugins/linktop.c
367
368 builtin_modules += icera
369 builtin_sources += plugins/icera.c
370
371 builtin_modules += alcatel
372 builtin_sources += plugins/alcatel.c
373
374 builtin_modules += speedup
375 builtin_sources += plugins/speedup.c
376
377 builtin_modules += speedupcdma
378 builtin_sources += plugins/speedupcdma.c
379
380 builtin_modules += samsung
381 builtin_sources += plugins/samsung.c
382
383 builtin_modules += sim900
384 builtin_sources += plugins/sim900.c
385
386 if BLUETOOTH
387 builtin_modules += bluetooth
388 builtin_sources += plugins/bluetooth.c plugins/bluetooth.h
389
390 builtin_modules += telit
391 builtin_sources += plugins/telit.c plugins/bluetooth.h
392
393 builtin_modules += sap
394 builtin_sources += plugins/sap.c plugins/bluetooth.h
395
396 builtin_modules += hfp
397 builtin_sources += plugins/hfp_hf.c plugins/bluetooth.h
398
399 builtin_modules += hfp_ag
400 builtin_sources += plugins/hfp_ag.c plugins/bluetooth.h
401
402 builtin_modules += dun_gw
403 builtin_sources += plugins/dun_gw.c plugins/bluetooth.h
404
405 builtin_modules += connman
406 builtin_sources += plugins/connman.c
407
408 builtin_sources += $(btio_sources)
409 builtin_cflags += @BLUEZ_CFLAGS@
410 builtin_libadd += @BLUEZ_LIBS@
411 endif
412 endif
413
414 if PROVISION
415 builtin_sources += plugins/mbpi.h plugins/mbpi.c
416
417 builtin_modules += provision
418 builtin_sources += plugins/provision.c
419
420 builtin_modules += cdma_provision
421 builtin_sources += plugins/cdma-provision.c
422 endif
423
424 if MAINTAINER_MODE
425 builtin_modules += example_history
426 builtin_sources += examples/history.c
427
428 builtin_modules += example_nettime
429 builtin_sources += examples/nettime.c
430
431 builtin_modules += example_provision
432 builtin_sources += examples/provision.c
433
434 builtin_modules += example_emulator
435 builtin_sources += examples/emulator.c
436
437 builtin_modules += example_private_network
438 builtin_sources += examples/private-network.c
439 endif
440
441 builtin_modules += smart_messaging
442 builtin_sources += plugins/smart-messaging.c
443
444 builtin_modules += push_notification
445 builtin_sources += plugins/push-notification.c
446
447 sbin_PROGRAMS = src/ofonod
448
449 src_ofonod_SOURCES = $(gdbus_sources) $(builtin_sources) src/ofono.ver \
450                         src/main.c src/ofono.h src/log.c src/plugin.c \
451                         src/modem.c src/common.h src/common.c \
452                         src/manager.c src/dbus.c src/util.h src/util.c \
453                         src/network.c src/voicecall.c src/ussd.c src/sms.c \
454                         src/call-settings.c src/call-forwarding.c \
455                         src/call-meter.c src/smsutil.h src/smsutil.c \
456                         src/call-barring.c src/sim.c src/stk.c \
457                         src/phonebook.c src/history.c src/message-waiting.c \
458                         src/simutil.h src/simutil.c src/storage.h \
459                         src/storage.c src/cbs.c src/watch.c src/call-volume.c \
460                         src/gprs.c src/idmap.h src/idmap.c \
461                         src/radio-settings.c src/stkutil.h src/stkutil.c \
462                         src/nettime.c src/stkagent.c src/stkagent.h \
463                         src/simfs.c src/simfs.h src/audio-settings.c \
464                         src/smsagent.c src/smsagent.h src/ctm.c \
465                         src/cdma-voicecall.c src/sim-auth.c \
466                         src/message.h src/message.c src/gprs-provision.c \
467                         src/emulator.c src/location-reporting.c \
468                         src/cdma-connman.c src/gnss.c \
469                         src/gnssagent.c src/gnssagent.h \
470                         src/cdma-smsutil.h src/cdma-smsutil.c \
471                         src/cdma-sms.c src/private-network.c src/cdma-netreg.c \
472                         src/cdma-provision.c src/handsfree.c
473
474 src_ofonod_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ -ldl
475
476 src_ofonod_LDFLAGS = -Wl,--export-dynamic \
477                                 -Wl,--version-script=$(srcdir)/src/ofono.ver
478
479 BUILT_SOURCES = $(local_headers) src/builtin.h
480
481 CLEANFILES = $(BUILT_SOURCES) $(rules_DATA)
482
483 plugindir = $(pkglibdir)/plugins
484
485 if MAINTAINER_MODE
486 build_plugindir = $(abs_top_srcdir)/plugins/.libs
487 else
488 build_plugindir = $(plugindir)
489 endif
490
491 AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @CAPNG_CFLAGS@ @USB_CFLAGS@ \
492                                         $(builtin_cflags) \
493                                         -DOFONO_PLUGIN_BUILTIN \
494                                         -DPLUGINDIR=\""$(build_plugindir)"\"
495
496 INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/src \
497                         -I$(srcdir)/gdbus -I$(srcdir)/gisi -I$(srcdir)/gatchat \
498                         -I$(srcdir)/btio
499
500 doc_files = doc/overview.txt doc/ofono-paper.txt doc/release-faq.txt \
501                 doc/manager-api.txt doc/modem-api.txt doc/network-api.txt \
502                         doc/voicecallmanager-api.txt doc/voicecall-api.txt \
503                         doc/call-forwarding-api.txt doc/call-settings-api.txt \
504                         doc/call-meter-api.txt doc/call-barring-api.txt \
505                         doc/supplementaryservices-api.txt \
506                         doc/connman-api.txt doc/features.txt \
507                         doc/pushnotification-api.txt \
508                         doc/smartmessaging-api.txt \
509                         doc/call-volume-api.txt doc/cell-broadcast-api.txt \
510                         doc/messagemanager-api.txt doc/message-waiting-api.txt \
511                         doc/phonebook-api.txt doc/radio-settings-api.txt \
512                         doc/sim-api.txt doc/stk-api.txt \
513                         doc/audio-settings-api.txt doc/text-telephony-api.txt \
514                         doc/calypso-modem.txt doc/message-api.txt \
515                         doc/location-reporting-api.txt
516
517
518 test_scripts = test/backtrace \
519                 test/create-internet-context \
520                 test/create-mms-context \
521                 test/activate-context \
522                 test/deactivate-context \
523                 test/deactivate-all \
524                 test/dial-number \
525                 test/list-calls \
526                 test/answer-calls \
527                 test/reject-calls \
528                 test/create-multiparty \
529                 test/private-chat \
530                 test/disable-modem \
531                 test/enable-modem \
532                 test/enter-pin \
533                 test/reset-pin \
534                 test/hangup-all \
535                 test/hangup-active \
536                 test/set-mms-details \
537                 test/set-roaming-allowed \
538                 test/list-contexts \
539                 test/list-modems \
540                 test/list-operators \
541                 test/scan-for-operators \
542                 test/get-operators\
543                 test/monitor-ofono \
544                 test/process-context-settings \
545                 test/receive-sms \
546                 test/remove-contexts \
547                 test/send-sms \
548                 test/set-mic-volume \
549                 test/set-speaker-volume \
550                 test/test-stk-menu \
551                 test/test-advice-of-charge \
552                 test/test-call-barring \
553                 test/test-call-forwarding \
554                 test/test-call-settings \
555                 test/test-modem \
556                 test/test-network-registration \
557                 test/test-phonebook \
558                 test/test-cbs \
559                 test/test-ss-control-cb \
560                 test/test-ss-control-cf \
561                 test/test-ss-control-cs \
562                 test/test-voicecall \
563                 test/test-ussd \
564                 test/cancel-ussd \
565                 test/initiate-ussd \
566                 test/offline-modem \
567                 test/online-modem \
568                 test/get-tech-preference \
569                 test/set-tech-preference \
570                 test/set-use-sms-reports \
571                 test/set-cbs-topics \
572                 test/enable-cbs \
573                 test/lock-pin \
574                 test/unlock-pin \
575                 test/enable-gprs \
576                 test/disable-gprs \
577                 test/get-icon \
578                 test/set-fast-dormancy \
579                 test/test-push-notification \
580                 test/test-smart-messaging \
581                 test/send-vcard \
582                 test/send-vcal \
583                 test/set-tty \
584                 test/set-gsm-band \
585                 test/set-umts-band \
586                 test/lockdown-modem \
587                 test/set-call-forwarding \
588                 test/cdma-list-call \
589                 test/cdma-dial-number \
590                 test/cdma-hangup \
591                 test/cdma-set-credentials \
592                 test/disable-call-forwarding \
593                 test/list-messages \
594                 test/test-sms \
595                 test/test-message-waiting \
596                 test/cdma-connman-disable \
597                 test/cdma-connman-enable \
598                 test/set-context-property \
599                 test/test-gnss \
600                 test/swap-calls \
601                 test/release-and-answer
602
603 if TEST
604 testdir = $(pkglibdir)/test
605 test_SCRIPTS = $(test_scripts)
606 endif
607
608 EXTRA_DIST = src/genbuiltin plugins/ofono.rules plugins/ofono-speedup.rules \
609                                 $(doc_files) $(test_scripts)
610
611 dist_man_MANS = doc/ofonod.8
612
613
614 unit_objects =
615
616 unit_tests = unit/test-common unit/test-util unit/test-idmap \
617                                 unit/test-simutil unit/test-stkutil \
618                                 unit/test-sms unit/test-cdmasms
619
620 noinst_PROGRAMS = $(unit_tests) \
621                         unit/test-sms-root unit/test-mux unit/test-caif
622
623 unit_test_common_SOURCES = unit/test-common.c src/common.c src/util.c
624 unit_test_common_LDADD = @GLIB_LIBS@
625 unit_objects += $(unit_test_common_OBJECTS)
626
627 unit_test_util_SOURCES = unit/test-util.c src/util.c
628 unit_test_util_LDADD = @GLIB_LIBS@
629 unit_objects += $(unit_test_utils_OBJECTS)
630
631 unit_test_idmap_SOURCES = unit/test-idmap.c src/idmap.c
632 unit_test_idmap_LDADD = @GLIB_LIBS@
633 unit_objects += $(unit_test_idmap_OBJECTS)
634
635 unit_test_simutil_SOURCES = unit/test-simutil.c src/util.c \
636                                 src/simutil.c src/smsutil.c src/storage.c
637 unit_test_simutil_LDADD = @GLIB_LIBS@
638 unit_objects += $(unit_test_simutil_OBJECTS)
639
640 unit_test_stkutil_SOURCES = unit/test-stkutil.c src/util.c \
641                                 src/storage.c src/smsutil.c \
642                                 src/simutil.c src/stkutil.c
643 unit_test_stkutil_LDADD = @GLIB_LIBS@
644 unit_objects += $(unit_test_stkutil_OBJECTS)
645
646 unit_test_sms_SOURCES = unit/test-sms.c src/util.c src/smsutil.c src/storage.c
647 unit_test_sms_LDADD = @GLIB_LIBS@
648 unit_objects += $(unit_test_sms_OBJECTS)
649
650 unit_test_cdmasms_SOURCES = unit/test-cdmasms.c src/cdma-smsutil.c
651 unit_test_cdmasms_LDADD = @GLIB_LIBS@
652 unit_objects += $(unit_test_cdmasms_OBJECTS)
653
654 unit_test_sms_root_SOURCES = unit/test-sms.c src/util.c src/smsutil.c src/storage.c
655 unit_test_sms_root_LDADD = @GLIB_LIBS@
656 unit_objects += $(unit_test_sms_root_OBJECTS)
657
658 unit_test_mux_SOURCES = unit/test-mux.c $(gatchat_sources)
659 unit_test_mux_LDADD = @GLIB_LIBS@
660 unit_objects += $(unit_test_mux_OBJECTS)
661
662 unit_test_caif_SOURCES = unit/test-caif.c $(gatchat_sources) \
663                                         drivers/stemodem/caif_socket.h \
664                                         drivers/stemodem/if_caif.h
665 unit_test_caif_LDADD = @GLIB_LIBS@
666 unit_objects += $(unit_test_caif_OBJECTS)
667
668 TESTS = $(unit_tests)
669
670 if TOOLS
671 noinst_PROGRAMS += tools/huawei-audio tools/auto-enable \
672                         tools/get-location tools/lookup-apn \
673                         tools/lookup-provider-name
674
675 tools_huawei_audio_SOURCES = $(gdbus_sources) tools/huawei-audio.c
676 tools_huawei_audio_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
677
678 tools_auto_enable_SOURCES = $(gdbus_sources) tools/auto-enable.c
679 tools_auto_enable_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
680
681 tools_get_location_SOURCES = tools/get-location.c
682 tools_get_location_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
683
684 tools_lookup_apn_SOURCES = plugins/mbpi.c plugins/mbpi.h tools/lookup-apn.c
685 tools_lookup_apn_LDADD = @GLIB_LIBS@
686
687 tools_lookup_provider_name_SOURCES = plugins/mbpi.c plugins/mbpi.h \
688                                 tools/lookup-provider-name.c
689 tools_lookup_provider_name_LDADD = @GLIB_LIBS@
690 endif
691
692 if DUNDEE
693 sbin_PROGRAMS += dundee/dundee
694
695 dundee_dundee_SOURCES = $(gdbus_sources) $(gatchat_sources) $(btio_sources) \
696                         src/log.c src/dbus.c plugins/bluetooth.c \
697                         dundee/dundee.h dundee/main.c dundee/dbus.c \
698                         dundee/manager.c dundee/device.c dundee/bluetooth.c
699
700 dundee_dundee_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \
701                                                         @CAPNG_LIBS@ -ldl
702
703 if DATAFILES
704 dist_dbusconf_DATA += dundee/dundee.conf
705
706 if SYSTEMD
707 systemdunit_DATA += dundee/dundee.service
708 endif
709 endif
710
711 endif
712
713 noinst_PROGRAMS += gatchat/gsmdial gatchat/test-server gatchat/test-qcdm
714
715 gatchat_gsmdial_SOURCES = gatchat/gsmdial.c $(gatchat_sources)
716 gatchat_gsmdial_LDADD = @GLIB_LIBS@
717
718 gatchat_test_server_SOURCES = gatchat/test-server.c $(gatchat_sources)
719 gatchat_test_server_LDADD = @GLIB_LIBS@ -lutil
720
721 gatchat_test_qcdm_SOURCES = gatchat/test-qcdm.c $(gatchat_sources)
722 gatchat_test_qcdm_LDADD = @GLIB_LIBS@
723
724
725 DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles
726
727 MAINTAINERCLEANFILES = Makefile.in \
728         aclocal.m4 configure config.h.in config.sub config.guess \
729         ltmain.sh depcomp compile missing install-sh mkinstalldirs
730
731
732 src/builtin.h: src/genbuiltin config.status
733         $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
734
735 plugins/%.rules:
736         $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
737
738 include/ofono/version.h: include/version.h
739         $(AM_V_at)$(MKDIR_P) include/ofono
740         $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
741
742 include/ofono/%.h: $(abs_top_srcdir)/include/%.h
743         $(AM_V_at)$(MKDIR_P) include/ofono
744         $(AM_V_GEN)$(LN_S) $< $@
745
746 clean-local:
747         @$(RM) -rf include/ofono