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
82 libpers_common_la_SOURCES += \
83 ../src/key-value-store/pers_low_level_db_access.c \
84 ../src/key-value-store/crc32.c \
85 ../src/key-value-store/database/kissdb.c \
86 ../src/key-value-store/hashtable/md5c.c \
87 ../src/key-value-store/hashtable/qhash.c \
88 ../src/key-value-store/hashtable/qhasharr.c
92 libpers_common_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
95 libpers_common_la_LIBADD = \
104 libpers_common_la_LIBADD += \
109 libpers_common_la_LIBADD += \
114 libpers_common_la_LIBADD += \
118 dbuspolicy_DATA = ../dbus_config/org.genivi.persistence.admin.conf
120 # Export interface description of org.genivi.persistence.admin DBus interface
121 dbusinterfaces_DATA = ../dbus_specifications/org.genivi.persistence.admin.xml
123 EXTRA_DIST = $(dbuspolicy_DATA) \
124 $(dbusinterfaces_DATA)
127 pkgconfigdir = $(libdir)/pkgconfig
128 pkgconfig_DATA = ../pkgconfig/libperscommon.pc