summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: e1fc9ab8959f3a5b49f5d885533b9e3d3f620e1a (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = LICENSE
MOSTLYCLEANFILES =
# Library interface (not package version!)
LIBCOMMONAPI_CURRENT=2
LIBCOMMONAPI_REVISION=1
LIBCOMMONAPI_AGE=0

AM_CPPFLAGS = \
        -DCOMMONAPI_INTERNAL_COMPILATION

# ------------------------------------------------------------------------------
# Doxygen
include $(top_srcdir)/aminclude.am 
EXTRA_DIST += doxygen.cfg
MOSTLYCLEANFILES += ${DX_CLEANFILES}

# ------------------------------------------------------------------------------
MAINTAINERCLEANFILES = \
        Makefile.in \
        aclocal.m4 \
        configure

clean-local:
	-rm -rf src-gen

maintainer-clean-local:
	-rm -rf build-aux
	-rm -f config.h.in*
	-rm -f m4/libtool*.m4
	-rm -f m4/lt*.m4


lib_LTLIBRARIES = libCommonAPI.la

libCommonAPI_la_SOURCES = \
        src/CommonAPI/Runtime.cpp \
        src/CommonAPI/Configuration.cpp \
        src/CommonAPI/ContainerUtils.cpp

CommonAPI_includedir=$(includedir)/CommonAPI-${VERSION}/CommonAPI
CommonAPI_include_HEADERS = \
        src/CommonAPI/Attribute.h \
        src/CommonAPI/AttributeExtension.h \
        src/CommonAPI/ByteBuffer.h \
        src/CommonAPI/CommonAPI.h \
        src/CommonAPI/Configuration.h \
        src/CommonAPI/ContainerUtils.h \
        src/CommonAPI/Event.h \
        src/CommonAPI/Factory.h \
        src/CommonAPI/Factory.hpp \
        src/CommonAPI/InputStream.h \
        src/CommonAPI/MainLoopContext.h \
        src/CommonAPI/MiddlewareInfo.h \
        src/CommonAPI/OutputStream.h \
        src/CommonAPI/Proxy.h \
        src/CommonAPI/Runtime.h \
        src/CommonAPI/SelectiveEvent.h \
        src/CommonAPI/SerializableStruct.h \
        src/CommonAPI/SerializableVariant.h \
        src/CommonAPI/SerializableVariant.hpp \
        src/CommonAPI/ServicePublisher.h \
        src/CommonAPI/ServicePublisher.hpp \
        src/CommonAPI/Stub.h \
        src/CommonAPI/types.h \
        src/CommonAPI/utils.h

libCommonAPI_la_LIBADD = -ldl
libCommonAPI_la_LDFLAGS = \
        ${AM_LDFLAGS} \
        -version-info ${LIBCOMMONAPI_CURRENT}:${LIBCOMMONAPI_REVISION}:${LIBCOMMONAPI_AGE}

pkgconfigdir = ${libdir}/pkgconfig
pkgconfig_DATA = CommonAPI.pc

# ------------------------------------------------------------------------------
if ENABLE_TESTS

check_PROGRAMS = \
        VariantTest


TESTS = ${check_PROGRAMS}
VariantTest_includedir=$(includedir)/CommonAPI-${VERSION}/CommonAPI
VariantTest_SOURCES = src/test/VariantTest.cpp
VariantTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
VariantTest_CXXFLAGS = ${GTEST_CXXFLAGS} -Isrc
VariantTest_LDADD = ${LDADD} ${GTEST_LIBS} libCommonAPI.la

endif