summaryrefslogtreecommitdiff
path: root/NodeStateManager/Makefile.am
blob: d3e9f5037b9e736bf5d8c602762f48f32782cf4f (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
#######################################################################################################################
#
# Copyright (C) 2012 Continental Automotive Systems, Inc.
#
# Author: Jean-Pierre.Bogler@continental-corporation.com
#
# Makefile template for the NodeStateManager
#
# Process this file with automake to produce a Makefile.in.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#######################################################################################################################

bin_PROGRAMS = NodeStateManager

NodeStateManager_SOURCES = NodeStateManager.c

NodeStateManager_CFLAGS = -I$(top_srcdir)/NodeStateMachineStub \
                          -I$(top_srcdir)/NodeStateAccess      \
                          $(DLT_CFLAGS)                        \
                          $(GIO_CFLAGS)                        \
                          $(GIO_UNIX_CFLAGS)                   \
                          $(GLIB_CFLAGS)                       \
                          $(GOBJECT_CFLAGS)                    \
                          $(SYSTEMD_CFLAGS)                    \
                          $(PCL_CFLAGS)

NodeStateManager_LDFLAGS = -export-dynamic

NodeStateManager_LDADD   =	-L$(top_srcdir)/NodeStateAccess -lNodeStateAccess       \
                            -L$(top_srcdir)/NodeStateMachineStub -lNodeStateMachine \
                            $(DLT_LIBS)                                             \
                            $(GIO_LIBS)                                             \
                            $(GIO_UNIX_LIBS)                                        \
                            $(GLIB_LIBS)                                            \
                            $(GOBJECT_LIBS)                                         \
                            $(SYSTEMD_LIBS)                                         \
                            $(PCL_LIBS)

include_HEADERS = NodeStateManager.h NodeStateTypes.h

systemdsystemunit_DATA = config/nodestatemanager-daemon.service

dbussystemunit_DATA = config/org.genivi.NodeStateManager.LifeCycleControl.service
dbuspolicy_DATA = config/org.genivi.NodeStateManager.conf

# Write the package config file of the NHM to it destination
pkgconfigdir   = $(libdir)/pkgconfig
pkgconfig_DATA = config/node-state-manager.pc

# Export the dbus interface descrition of the NHM
dbusinterfaces_DATA = $(top_srcdir)/NodeStateAccess/model/org.genivi.NodeStateManager.Consumer.xml          \
                      $(top_srcdir)/NodeStateAccess/model/org.genivi.NodeStateManager.LifecycleConsumer.xml \
                      $(top_srcdir)/NodeStateAccess/model/org.genivi.NodeStateManager.LifecycleControl.xml  \
                      $(top_srcdir)/NodeStateTest/org.genivi.NodeStateMachineTest.xml

EXTRA_DIST = $(systemdsystemunit_DATA) \
             $(dbussystemunit_DATA)    \
             $(dbuspolicy_DATA)        \
             $(dbusinterfaces_DATA)