1 #######################################################################################################################
3 # Copyright (C) 2012 Continental Automotive Systems, Inc.
5 # Author: Ana.Chisca@continental-corporation.com
6 # Petrica.Manoila@continental-corporation.com
8 # Makefile template for the persistence common library
10 # Process this file with automake to produce a Makefile.in.
12 # This Source Code Form is subject to the terms of the Mozilla Public
13 # License, v. 2.0. If a copy of the MPL was not distributed with this
14 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
16 #######################################################################################################################
20 # Build objects into the subdirectory of the build directory corresponding to the subdirectory of the source files
21 # to avoid conflicts for pers_low_level_db_access.c files for different databases
22 AUTOMAKE_OPTIONS = subdir-objects
24 lib_LTLIBRARIES = libpers_common.la
27 ../inc/protected/persComTypes.h \
28 ../inc/protected/persComDataOrg.h \
29 ../inc/protected/persComDbAccess.h \
30 ../inc/protected/persComErrors.h \
31 ../inc/protected/persComRct.h \
32 ../inc/protected/persComIpc.h
34 libpers_common_la_CFLAGS = \
35 -I ../inc/private -I ../inc/protected -I ../generated\
44 libpers_common_la_CFLAGS += \
49 libpers_common_la_CFLAGS += \
54 libpers_common_la_CFLAGS += \
58 libpers_common_la_SOURCES = \
59 ../generated/PasClientNotificationGen.c\
60 ../src/pers_data_organization.c\
61 ../src/pers_local_shared_db_access.c\
62 ../src/pers_resource_config_table.c\
64 ../src/pers_ipc_dbus.c
67 libpers_common_la_SOURCES += \
68 ../src/itzam/pers_low_level_db_access.c
72 libpers_common_la_SOURCES += \
73 ../src/sqlite/pers_low_level_db_access.c
77 libpers_common_la_SOURCES += \
78 ../src/rawdb/pers_low_level_db_access.c
81 libpers_common_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
84 libpers_common_la_LIBADD = \
93 libpers_common_la_LIBADD += \
98 libpers_common_la_LIBADD += \
103 libpers_common_la_LIBADD += \
107 dbuspolicy_DATA = ../dbus_config/org.genivi.persistence.admin.conf
109 # Export interface description of org.genivi.persistence.admin DBus interface
110 dbusinterfaces_DATA = ../dbus_specifications/org.genivi.persistence.admin.xml
112 EXTRA_DIST = $(dbuspolicy_DATA) \
113 $(dbusinterfaces_DATA)
116 pkgconfigdir = $(libdir)/pkgconfig
117 pkgconfig_DATA = ../pkgconfig/libperscommon.pc