Add .changes file with initial release notes
[profile/ivi/common-api-runtime.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 EXTRA_DIST = LICENSE
3 MOSTLYCLEANFILES =
4 # Library interface (not package version!)
5 LIBCOMMONAPI_CURRENT=3
6 LIBCOMMONAPI_REVISION=1
7 LIBCOMMONAPI_AGE=0
8
9 AM_CPPFLAGS = \
10         -DCOMMONAPI_INTERNAL_COMPILATION
11
12 # ------------------------------------------------------------------------------
13 # Doxygen
14 include $(top_srcdir)/aminclude.am 
15 EXTRA_DIST += doxygen.cfg
16 MOSTLYCLEANFILES += ${DX_CLEANFILES}
17
18 # ------------------------------------------------------------------------------
19 MAINTAINERCLEANFILES = \
20         Makefile.in \
21         aclocal.m4 \
22         configure
23
24 clean-local:
25         -rm -rf src-gen
26
27 maintainer-clean-local:
28         -rm -rf build-aux
29         -rm -f config.h.in*
30         -rm -f m4/libtool*.m4
31         -rm -f m4/lt*.m4
32
33
34 lib_LTLIBRARIES = libCommonAPI.la
35
36 libCommonAPI_la_SOURCES = \
37         src/CommonAPI/Runtime.cpp \
38         src/CommonAPI/Configuration.cpp \
39         src/CommonAPI/ServicePublisher.cpp \
40         src/CommonAPI/ContainerUtils.cpp \
41         src/CommonAPI/MainLoopContext.cpp \
42         src/CommonAPI/InputStream.cpp \
43         src/CommonAPI/Factory.cpp \
44         src/CommonAPI/utils.cpp
45
46 CommonAPI_includedir=$(includedir)/CommonAPI-${COMMONAPI_API_HEADER_VERSION}/CommonAPI
47 CommonAPI_include_HEADERS = \
48         src/CommonAPI/Attribute.h \
49         src/CommonAPI/AttributeExtension.h \
50         src/CommonAPI/ByteBuffer.h \
51         src/CommonAPI/CommonAPI.h \
52         src/CommonAPI/Configuration.h \
53         src/CommonAPI/ContainerUtils.h \
54         src/CommonAPI/Event.h \
55         src/CommonAPI/Factory.h \
56         src/CommonAPI/Factory.hpp \
57         src/CommonAPI/InputStream.h \
58         src/CommonAPI/MainLoopContext.h \
59         src/CommonAPI/MiddlewareInfo.h \
60         src/CommonAPI/OutputStream.h \
61         src/CommonAPI/Proxy.h \
62         src/CommonAPI/ProxyManager.h \
63         src/CommonAPI/Runtime.h \
64         src/CommonAPI/SelectiveEvent.h \
65         src/CommonAPI/SerializableStruct.h \
66         src/CommonAPI/SerializableVariant.h \
67         src/CommonAPI/SerializableVariant.hpp \
68         src/CommonAPI/ServicePublisher.h \
69         src/CommonAPI/ServicePublisher.hpp \
70         src/CommonAPI/Stub.h \
71         src/CommonAPI/types.h \
72         src/CommonAPI/utils.h
73
74 libCommonAPI_la_LIBADD = -ldl
75 libCommonAPI_la_LDFLAGS = \
76         ${AM_LDFLAGS} \
77         -version-info ${LIBCOMMONAPI_CURRENT}:${LIBCOMMONAPI_REVISION}:${LIBCOMMONAPI_AGE}
78
79 pkgconfigdir = ${libdir}/pkgconfig
80 pkgconfig_DATA = CommonAPI.pc
81
82 # ------------------------------------------------------------------------------
83 if ENABLE_TESTS
84
85 check_PROGRAMS = \
86         VariantTest
87
88
89 TESTS = ${check_PROGRAMS}
90 VariantTest_includedir=$(includedir)/CommonAPI-${COMMONAPI_API_HEADER_VERSION}/CommonAPI
91 VariantTest_SOURCES = src/test/VariantTest.cpp
92 VariantTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS}
93 VariantTest_CXXFLAGS = ${GTEST_CXXFLAGS} -Isrc
94 VariantTest_LDADD = ${LDADD} ${GTEST_LIBS} libCommonAPI.la
95
96 endif
97
98 doc: doxygen-doc
99         asciidoc -a version=@PACKAGE_VERSION@ -b html -o doc/html/README.html README