summaryrefslogtreecommitdiff
path: root/NodeStateMachineTest/Makefile.am
blob: a7a57e350473db25ef8f10b37d0a5bb9326ce1db (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
#######################################################################################################################
#
# Copyright (C) 2012 Continental Automotive Systems, Inc.
#
# Author: Jean-Pierre.Bogler@continental-corporation.com
#
# Makefile template for the NodeStateTest executable and NodeStateMachineTest library.
#
# 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/.
#
# Date             Author              Reason
# 24.01.2013       Jean-Pierre Bogler  CSP_WZ#1194: Initial creation.
#
#######################################################################################################################

bin_PROGRAMS = NodeStateTest

NodeStateTest_SOURCES = NodeStateTest.c

nodist_NodeStateTest_SOURCES = NodeStateMachineTestApi.c                                            \
                               $(top_srcdir)/NodeStateAccess/generated/NodeStateConsumer.c          \
                               $(top_srcdir)/NodeStateAccess/generated/NodeStateLifecycleConsumer.c \
                               $(top_srcdir)/NodeStateAccess/generated/NodeStateLifecycleControl.c

NodeStateTest_CFLAGS =	-I$(top_srcdir)/NodeStateManager          \
                        -I$(top_srcdir)/NodeStateAccess           \
                        -I$(top_srcdir)/NodeStateAccess/generated \
                        $(GIO_CFLAGS)		                  \
                        $(GIO_UNIX_CFLAGS)                        \
                        $(GLIB_CFLAGS)                            \
                        $(GOBJECT_CFLAGS)

NodeStateTest_LDADD =	$(GIO_LIBS)      \
			$(GIO_UNIX_LIBS) \
			$(GLIB_LIBS)     \
		 	$(GOBJECT_LIBS)

lib_LTLIBRARIES = libNodeStateMachineTest.la

libNodeStateMachineTest_la_CFLAGS = -I../NodeStateManager \
                                    $(GIO_CFLAGS)         \
                                    $(GIO_UNIX_CFLAGS)    \
                                    $(GLIB_CFLAGS)        \
                                    $(GOBJECT_CFLAGS)

libNodeStateMachineTest_la_SOURCES = NodeStateMachine.c

nodist_libNodeStateMachineTest_la_SOURCES = NodeStateMachineTestApi.c

libNodeStateMachineTest_la_LDFLAGS = -avoid-version

BUILT_SOURCES = NodeStateMachineTestApi.h

CLEANFILES    = NodeStateMachineTestApi.c \
                NodeStateMachineTestApi.h

NodeStateMachineTestApi.c NodeStateMachineTestApi.h: org.genivi.NodeStateMachineTest.xml
	gdbus-codegen --interface-prefix com.contiautomotive.NodeStateMachineTest. --c-namespace NodeState --generate-c-code NodeStateMachineTestApi --annotate "com.contiautomotive.NodeStateMachineTest.Test.SetNsmData()[Data]" org.gtk.GDBus.C.ForceGVariant true --annotate "com.contiautomotive.NodeStateMachineTest.Test.GetNsmData()[DataIn]" org.gtk.GDBus.C.ForceGVariant true  --annotate "com.contiautomotive.NodeStateMachineTest.Test.GetNsmData()[DataOut]" org.gtk.GDBus.C.ForceGVariant true $<