summaryrefslogtreecommitdiff
path: root/legacy/edbus/Makefile.am
blob: d22d988f8ef461b73141d45b662a734c781d4330 (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
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
ACLOCAL_AMFLAGS = -I m4
CLEANFILES =
MAINTAINERCLEANFILES =
EXTRA_DIST =

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_EDBUS_BUILD=1

includedir = @includedir@/edbus-@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 = edbus2.pc
CLEANFILES += edbus2.pc
EXTRA_DIST += edbus2.pc.in

EXTRA_DIST += \
	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 = libedbus2.la

include_HEADERS = \
	src/lib/EDBus.h \
	src/lib/edbus_connection.h \
	src/lib/edbus_freedesktop.h \
	src/lib/edbus_message.h \
	src/lib/edbus_object.h \
	src/lib/edbus_pending.h \
	src/lib/edbus_proxy.h \
	src/lib/edbus_service.h \
	src/lib/edbus_signal_handler.h \
	src/lib/edbus_message_helper.h

libedbus2_la_LIBADD = @ECORE_LIBS@ @DBUS_LIBS@
libedbus2_la_SOURCES = \
	src/lib/edbus_private.h \
	src/lib/edbus_private_types.h \
	src/lib/edbus_proxy.c \
	src/lib/edbus_core.c \
	src/lib/edbus_message.c \
	src/lib/edbus_object.c \
	src/lib/edbus_pending.c \
	src/lib/edbus_freedesktop.c \
	src/lib/edbus_service.c \
	src/lib/edbus_signal_handler.c \
	src/lib/edbus_message_helper.c

if EFL_BUILD_EXAMPLES
noinst_PROGRAMS = \
	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

EXAMPLES_LIBS = libedbus2.la @ECORE_LIBS@

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)

endif

.PHONY: doc

# Documentation

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