8ce5f22293978ebce0944791989d7096bc7e18d8
[profile/ivi/node-startup-controller.git] / common / Makefile.am
1 # vi:set ts=8 sw=8 noet ai nocindent:
2
3 noinst_LTLIBRARIES = libcommon.la
4
5 libcommon_la_built_headers =                                            \
6         nsm-consumer-dbus.h                                             \
7         nsm-lifecycle-control-dbus.h                                    \
8         shutdown-consumer-dbus.h
9
10 libcommon_la_built_sources =                                            \
11         nsm-consumer-dbus.c                                             \
12         nsm-lifecycle-control-dbus.c                                    \
13         shutdown-consumer-dbus.c                                        \
14         $(libcommon_la_built_headers)
15
16 libcommon_la_SOURCES =                                                  \
17         watchdog-client.c                                               \
18         watchdog-client.h                                               \
19         $(libcommon_la_built_sources)
20
21 libcommon_la_CFLAGS =                                                   \
22         -DG_LOG_DOMAIN=\"common\"                                       \
23         -I$(top_srcdir)                                                 \
24         $(GIO_CFLAGS)                                                   \
25         $(GIO_UNIX_CFLAGS)                                              \
26         $(GLIB_CFLAGS)                                                  \
27         $(PLATFORM_CFLAGS)                                              \
28         $(PLATFORM_CPPFLAGS)                                            \
29         $(SYSTEMD_DAEMON_CFLAGS)
30
31 libcommon_la_LDFLAGS =                                                  \
32         -no-undefined                                                   \
33         $(PLATFORM_LDFLAGS)
34
35 libcommon_la_LIBADD =                                                   \
36         $(GIO_LIBS)                                                     \
37         $(GIO_UNIX_LIBS)                                                \
38         $(GLIB_LIBS)                                                    \
39         $(SYSTEMD_DAEMON_LIBS)
40
41 EXTRA_DIST =                                                            \
42         nsm-consumer-dbus.xml                                           \
43         nsm-lifecycle-control-dbus.xml                                  \
44         shutdown-consumer-dbus.xml
45
46 DISTCLEANFILES =                                                        \
47         $(libcommon_la_built_sources)
48
49 BUILT_SOURCES =                                                         \
50         $(libcommon_la_built_headers)
51
52 nsm-consumer-dbus.h: nsm-consumer-dbus.xml Makefile
53         $(AM_V_GEN) $(GDBUS_CODEGEN)                                                    \
54             --interface-prefix com.conti.NodeStateManager                               \
55             --c-namespace ""                                                            \
56             --generate-c-code nsm-consumer-dbus                                         \
57             --annotate com.conti.NodeStateManager.Consumer org.gtk.GDBus.C.Name         \
58               NSM_Consumer $<
59
60 nsm-lifecycle-control-dbus.h: nsm-lifecycle-control-dbus.xml Makefile
61         $(AM_V_GEN) $(GDBUS_CODEGEN)                                                    \
62             --interface-prefix com.conti.NodeStateManager                               \
63             --c-namespace ""                                                            \
64             --generate-c-code nsm-lifecycle-control-dbus                                \
65             --annotate com.conti.NodeStateManager.LifecycleControl org.gtk.GDBus.C.Name \
66               NSM_Lifecycle_Control $<
67
68 shutdown-consumer-dbus.h: shutdown-consumer-dbus.xml Makefile
69         $(AM_V_GEN) $(GDBUS_CODEGEN)                                    \
70             --interface-prefix org.genivi                               \
71             --c-namespace ""                                            \
72             --generate-c-code shutdown-consumer-dbus                    \
73             --annotate org.genivi.BootManager1.ShutdownConsumer org.gtk.GDBus.C.Name    \
74               Shutdown_Consumer $<