RemoteSettingsDatabase and d-bus client
[mokosuite2:libmokosuite.git] / mokosuite / utils / Makefile.am
1 AM_CPPFLAGS = \
2         @GLIB_CFLAGS@   \
3         @EINA_CFLAGS@   \
4         @ECORE_CFLAGS@  \
5         @FSO_CFLAGS@    \
6         @SQLITE_CFLAGS@ \
7         -Wall
8
9 VALAC_ARGS = \
10         --pkg dbus-glib-1 \
11         --pkg sqlite3 \
12         --save-temps \
13         --basedir $(top_srcdir)/mokosuite/utils
14
15 pkgconfigdir = $(libdir)/pkgconfig
16 pkgconfig_DATA = mokosuite-utils.pc
17
18 libmokosuite_utilsincludedir = $(includedir)/mokosuite-0/mokosuite/utils
19 libmokosuite_utilsinclude_HEADERS = \
20         $(libmokosuite_utils_VALASOURCES:.vala=.h) \
21         settings.h \
22         misc.h \
23         utils.h
24
25 lib_LTLIBRARIES = libmokosuite-utils.la
26
27 dbus_sources = \
28         settings-glue.h
29
30 BUILT_SOURCES = $(dbus_sources) .vala.stamp
31
32 #sed -i 's/\#include <settingsdb.h>//' settingsdb.c
33 .vala.stamp: $(libmokosuite_utils_VALASOURCES)
34         $(VALAC) -C $(VALAC_ARGS) -H $(^:.vala=.h) $^
35         touch $@
36
37 libmokosuite_utils_VALASOURCES = \
38         settingsdb.vala
39
40 libmokosuite_utils_la_SOURCES = \
41         $(dbus_sources) \
42         $(libmokosuite_utils_VALASOURCES:.vala=.c) \
43         $(libmokosuite_utils_VALASOURCES:.vala=.h) \
44         settings.c \
45         settings.h \
46         misc.c \
47         misc.h \
48         utils.c \
49         utils.h \
50         globals.h
51
52 libmokosuite_utils_la_LDFLAGS = \
53         -version-info 0:0:0 \
54         @GLIB_LIBS@     \
55         @EINA_LIBS@     \
56         @ECORE_LIBS@    \
57         @SQLITE_LIBS@
58
59 settings-glue.h: settings.xml
60         dbus-binding-tool --mode=glib-client --prefix=moko_settings --output=$@ $<
61
62 EXTRA_DIST = \
63         mokosuite-utils.pc.in \
64         $(BUILT_SOURCES) \
65         $(libmokosuite_utils_VALASOURCES:.vala=.c) \
66         $(libmokosuite_utils_VALASOURCES:.vala=.h)
67
68 CLEANFILES = \
69         $(BUILT_SOURCES) \
70         $(libmokosuite_utils_VALASOURCES:.vala=.c) \
71         $(libmokosuite_utils_VALASOURCES:.vala=.h)
72
73 MAINTAINERCLEANFILES = \
74         Makefile.in