summaryrefslogtreecommitdiff
path: root/src/examples/eldbus/Makefile.am
blob: 0bb7a993f1d67615d96d5c1d976a8c14f11a0766 (plain) (blame)
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
96
97
98
99
100
101
102
103
MAINTAINERCLEANFILES = Makefile.in

AM_CPPFLAGS = \
-I$(top_builddir)/src/lib/efl \
-I$(top_srcdir)/src/lib/eina \
-I$(top_srcdir)/src/lib/efl \
-I$(top_srcdir)/src/lib/eo \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_srcdir)/src/lib/eldbus \
-I$(top_builddir)/src/lib/eina \
-I$(top_builddir)/src/lib/eo \
-I$(top_builddir)/src/lib/ecore \
-I$(top_builddir)/src/lib/eldbus \
@ELDBUS_CFLAGS@

EXAMPLES_LIBS = \
$(top_builddir)/src/lib/eo/libeo.la \
$(top_builddir)/src/lib/ecore/libecore.la \
$(top_builddir)/src/lib/eina/libeina.la \
$(top_builddir)/src/lib/eldbus/libeldbus.la \
$(top_builddir)/src/lib/efl/libefl.la \
@ELDBUS_LDFLAGS@

SRCS = \
connman-list-services.c \
ofono-dial.c \
banshee.c \
complex-types.c \
complex-types-server.c \
server.c \
client.c \
simple-signal-emit.c \
complex-types-client-eina-value.c \
connect-address.c \
dbusmodel.c

EXTRA_PROGRAMS = \
connman-list-services \
ofono-dial \
banshee \
complex-types \
complex-types-server \
server \
client \
simple-signal-emit \
complex-types-client-eina-value \
connect-address \
dbusmodel

connman_list_services_SOURCES = connman-list-services.c
connman_list_services_LDADD = $(EXAMPLES_LIBS)

ofono_dial_SOURCES = ofono-dial.c
ofono_dial_LDADD = $(EXAMPLES_LIBS)

banshee_SOURCES = banshee.c
banshee_LDADD = $(EXAMPLES_LIBS)

complex_types_SOURCES = complex-types.c
complex_types_LDADD = $(EXAMPLES_LIBS)

complex_types_server_SOURCES = complex-types-server.c
complex_types_server_LDADD = $(EXAMPLES_LIBS)

server_SOURCES = server.c
server_LDADD = $(EXAMPLES_LIBS)

client_SOURCES = client.c
client_LDADD = $(EXAMPLES_LIBS)

simple_signal_emit_SOURCES = simple-signal-emit.c
simple_signal_emit_LDADD = $(EXAMPLES_LIBS)

complex_types_client_eina_value_SOURCES = complex-types-client-eina-value.c
complex_types_client_eina_value_LDADD = $(EXAMPLES_LIBS)

connect_address_SOURCES = connect-address.c
connect_address_LDADD = $(EXAMPLES_LIBS)

dbusmodel_SOURCES = dbusmodel.c
dbusmodel_LDADD = $(EXAMPLES_LIBS)

DATA_FILES = Makefile.examples

EXTRA_DIST = $(DATA_FILES)

examples: $(EXTRA_PROGRAMS)

clean-local:
	rm -f $(EXTRA_PROGRAMS)

install-examples:
	$(MKDIR_P) $(DESTDIR)$(datadir)/eldbus/examples
	cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/eldbus/examples

uninstall-local:
	for f in $(SRCS) $(DATA_FILES); do \
	  rm -f $(DESTDIR)$(datadir)/eldbus/examples/$$f ; \
	done

if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif