Bump version to 0.3.
[profile/ivi/settings-daemon.git] / src / Makefile.am
1 ## Copyright 2012, 2013 Intel Corporation All Rights Reserved.
2 ##
3 ## This library is free software; you can redistribute it and/or
4 ## modify it under the terms of the GNU Lesser General Public
5 ## License as published by the Free Software Foundation;
6 ## version 2.1 of the License.
7 ##
8 ## This library is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 ## Lesser General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU Lesser General Public
14 ## License along with this library; if not, write to the Free Software
15 ## Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 ## Boston, MA  02110-1301  USA
17
18 ## ---------------------------------------------------------
19 ##                      settings daemon
20 ## ---------------------------------------------------------
21
22 # The settingsd stand-alone binary.
23 bin_PROGRAMS  = settingsd
24
25 ## Note that we define some preprocessor symbols on the command line
26 ## since the required shell variables cannot be fully expanded at
27 ## configure-time.
28 settingsd_CPPFLAGS =                                            \
29         $(BOOST_CPPFLAGS)                                       \
30         $(GIO_CFLAGS)                                           \
31         $(JSON_GLIB_CFLAGS)                                     \
32         $(LIBWEBSOCKETS_CFLAGS)                                 \
33         -I$(top_srcdir)/include                                 \
34         -DIVI_SETTINGS_CONFIG_DIR='"$(sysconfdir)/@PACKAGE@"'   \
35         -DIVI_SETTINGS_DEFAULT_SETTINGS_DIR='"$(pkglibdir)"'
36
37 settingsd_SOURCES =                     \
38         configurator.cpp                \
39         daemon.cpp                      \
40         websocket_server.cpp
41
42 settingsd_LDFLAGS = $(BOOST_LDFLAGS)
43
44 settingsd_LDADD   =                             \
45         $(top_builddir)/lib/libsettings.la      \
46         $(BOOST_PROGRAM_OPTIONS_LIB)            \
47         $(JSON_GLIB_LIBS)                       \
48         $(GIO_LIBS)                             \
49         $(LIBWEBSOCKETS_LIBS)                   \
50         @IVI_SETTINGS_DLOPEN_LIBS@
51
52 noinst_HEADERS =                \
53         configurator.hpp        \
54         websocket_server.hpp
55
56
57 ## Silent mode output for D-bus related code generation.
58 dbus_codegen_verbose = $(dbus_codegen_verbose_$(V))
59 dbus_codegen_verbose_ = $(dbus_codegen_verbose_$(AM_DEFAULT_VERBOSITY))
60 dbus_codegen_verbose_0 = @echo 'CODEGEN ' $@;
61
62 ## Geocoding related D-bus glue code generation.
63 %-glue.c %-glue.h: %.xml Makefile
64         $(dbus_codegen_verbose)gdbus-codegen --generate-c-code $*-glue  \
65               --interface-prefix org.tizen. $<
66
67 BUILT_SOURCES =
68
69 CLEANFILES = $(BUILT_SOURCES)
70
71 dist-hook:
72         cd $(distdir); rm -f $(BUILT_SOURCES)
73
74 EXTRA_DIST =