summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: c8d850c7df2383149c030cd389385adce6ff162b (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
ACLOCAL_AMFLAGS = -I m4
CLEANFILES =
MAINTAINERCLEANFILES =
EXTRA_DIST = \
	eldbus.spec

SUBDIRS = doc

AM_MAKEFLAGS = --no-print-directory
AM_CFLAGS = \
	-include $(top_builddir)/config.h \
	-I$(top_srcdir)/src/lib \
	@ECORE_CFLAGS@ \
	@DBUS_CFLAGS@

AM_CPPFLAGS = -DEFL_ELDBUS_BUILD=1

includedir = @includedir@/eldbus-@VMAJ@/

SED_PROCESS = \
	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
	-e 's,@VERSION\@,$(VERSION),g' \
	-e 's,@prefix\@,$(prefix),g' \
	-e 's,@exec_prefix\@,$(exec_prefix),g' \
	-e 's,@libdir\@,$(libdir),g' \
	-e 's,@includedir\@,$(includedir),g' \
	< $< > $@ || rm $@

%.pc: %.pc.in Makefile
	$(SED_PROCESS)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = eldbus.pc
CLEANFILES += eldbus.pc
EXTRA_DIST += eldbus.pc.in

EXTRA_DIST += \
	README \
	AUTHORS \
	COPYING \
	m4/efl_doxygen.m4 \
	m4/efl_compiler_flag.m4


MAINTAINERCLEANFILES += \
	aclocal.m4 \
	compile \
	config.guess \
	config.h.in \
	config.sub \
	configure \
	depcomp \
	install-sh \
	ltmain.sh \
	Makefile.in \
	missing \
	mkinstalldirs

lib_LTLIBRARIES = libeldbus.la

include_HEADERS = \
	src/lib/Eldbus.h \
	src/lib/eldbus_connection.h \
	src/lib/eldbus_freedesktop.h \
	src/lib/eldbus_message.h \
	src/lib/eldbus_object.h \
	src/lib/eldbus_pending.h \
	src/lib/eldbus_proxy.h \
	src/lib/eldbus_service.h \
	src/lib/eldbus_signal_handler.h \
	src/lib/eldbus_message_helper.h \
	src/lib/eldbus_message_eina_value.h

libeldbus_la_LIBADD = @ECORE_LIBS@ @DBUS_LIBS@
libeldbus_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
libeldbus_la_SOURCES = \
	src/lib/eldbus_private.h \
	src/lib/eldbus_private_types.h \
	src/lib/eldbus_proxy.c \
	src/lib/eldbus_core.c \
	src/lib/eldbus_message.c \
	src/lib/eldbus_object.c \
	src/lib/eldbus_pending.c \
	src/lib/eldbus_freedesktop.c \
	src/lib/eldbus_service.c \
	src/lib/eldbus_signal_handler.c \
	src/lib/eldbus_message_helper.c \
	src/lib/eldbus_message_to_eina_value.c \
	src/lib/eldbus_message_from_eina_value.c

EXAMPLES = \
	src/examples/connman-list-services \
	src/examples/ofono-dial \
	src/examples/banshee \
	src/examples/complex-types \
	src/examples/complex-types_server \
	src/examples/server \
	src/examples/client \
	src/examples/simple-signal-emit \
	src/examples/complex-types-client-eina-value \
	src/examples/connect-address

EXAMPLES_LIBS = libeldbus.la @ECORE_LIBS@ @EINA_LIBS@

EXTRA_PROGRAMS = $(EXAMPLES)

src_examples_connman_list_services_SOURCES = src/examples/connman-list-services.c
src_examples_connman_list_services_LDADD = $(EXAMPLES_LIBS)

src_examples_ofono_dial_SOURCES = src/examples/ofono-dial.c
src_examples_ofono_dial_LDADD = $(EXAMPLES_LIBS)

src_examples_banshee_SOURCES = src/examples/banshee.c
src_examples_banshee_LDADD = $(EXAMPLES_LIBS)

src_examples_complex_types_SOURCES = src/examples/complex-types.c
src_examples_complex_types_LDADD = $(EXAMPLES_LIBS)

src_examples_complex_types_server_SOURCES = src/examples/complex-types-server.c
src_examples_complex_types_server_LDADD = $(EXAMPLES_LIBS)

src_examples_server_SOURCES = src/examples/server.c
src_examples_server_LDADD = $(EXAMPLES_LIBS)

src_examples_client_SOURCES = src/examples/client.c
src_examples_client_LDADD = $(EXAMPLES_LIBS)

src_examples_simple_signal_emit_SOURCES = src/examples/simple-signal-emit.c
src_examples_simple_signal_emit_LDADD = $(EXAMPLES_LIBS)

src_examples_complex_types_client_eina_value_SOURCES = src/examples/complex-types-client-eina-value.c
src_examples_complex_types_client_eina_value_LDADD = $(EXAMPLES_LIBS)

src_examples_connect_address_SOURCE = src/examples/connect-address.c
src_examples_connect_address_LDADD = $(EXAMPLES_LIBS)

if BUILD_ELDBUS_CODEGEN
bin_PROGRAMS = src/codegen/eldbus-codegen
src_codegen_eldbus_codegen_SOURCES = \
	src/codegen/codegen.h \
	src/codegen/utils.c \
	src/codegen/parser.c \
	src/codegen/dbus.c \
	src/codegen/source_client.c \
	src/codegen/client.c
src_codegen_eldbus_codegen_CFLAGS = -I$(top_srcdir)/src/codegen @ELDBUS_CODEGEN_CFLAGS@ @ECORE_CFLAGS@
src_codegen_eldbus_codegen_LDADD = @ELDBUS_CODEGEN_LIBS@ @ECORE_LIBS@
endif

.PHONY: doc examples

examples: $(EXAMPLES)

# Documentation

doc:
	@echo "entering doc/"
	make -C doc doc