summaryrefslogtreecommitdiff
path: root/modem/Makefile.am
blob: 55984ee3c734070a4ee2b3231a101f9258a4b7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# Makefile.am for modem libraries
#
# Copyright (C) 2007 Nokia Corporation
# Contact: Pekka Pessi <first.surname@nokia.com>
# See file COPYING.
#

SUBDIRS = . tests

# -----------------------------------------------------------------------------
# Headers and libraries

AM_CFLAGS = $(ERROR_CFLAGS) @GLIB_CFLAGS@ @DBUS_CFLAGS@ @TP_CFLAGS@ \
	    @UUID_CFLAGS@

INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/modem

AM_LDFLAGS =

LIBADD = @TP_LIBS@ @DBUS_LIBS@ @GLIB_LIBS@ @UUID_LIBS@

# Build targets

lib_LTLIBRARIES = \
	libmodem-glib.la \
	libmodem-call-glib.la \
	libmodem-sms-glib.la \
	libmodem-sim-glib.la

noinst_LTLIBRARIES =

modemdir = ${includemodemdir}/modem

modem_HEADERS = request.h errors.h

libmodem_glib_la_SOURCES = request.c request-private.h \
	ofono.h ofono.c errors.c \
	service.c service.h \
	debug.h debug.c

nodist_libmodem_glib_la_SOURCES = $(BUILT_SOURCES)

libmodem_glib_la_LIBADD = ${LIBADD}

modem_HEADERS += call.h tones.h

libmodem_call_glib_la_SOURCES = call-service.c call.c tones.c

libmodem_call_glib_la_LIBADD = libmodem-glib.la ${LIBADD}

modem_HEADERS += sms.h

libmodem_sms_glib_la_SOURCES = sms-service.c

libmodem_sms_glib_la_LIBADD = libmodem-glib.la ../sms-glib/libsms-glib.la ${LIBADD}

modem_HEADERS += sim.h

libmodem_sim_glib_la_SOURCES = sim-service.c

libmodem_sim_glib_la_LIBADD = libmodem-glib.la ${LIBADD}

# ----------------------------------------------------------------------

EXTRA_DIST = signals-marshal.list

BUILT_SOURCES = \
		signals-marshal.h \
		signals-marshal.c

signals-marshal.c: ${srcdir}/signals-marshal.list
	$(AM_V_GEN)glib-genmarshal --body --prefix=_modem__marshal $< >$@

signals-marshal.h: ${srcdir}/signals-marshal.list
	$(AM_V_GEN)glib-genmarshal --header --prefix=_modem__marshal $< >$@

CLEANFILES = ${BUILT_SOURCES}

# -----------------------------------------------------------------------------

#pkgconfigdir = $(libdir)/pkgconfig
#pkgconfig_DATA = modem.pc

# -----------------------------------------------------------------------------

# include Makefile-tests.am

noinst_LTLIBRARIES += libtest-modem-sms.la

libtest_modem_sms_la_SOURCES = \
	$(libmodem_sms_la_SOURCES) \
	$(nodist_libmodem_sms_glib_la_SOURCES)

libtest_modem_sms_la_LIBADD = libmodem-glib.la