1ACLOCAL_AMFLAGS = -I m4
2
3AM_CFLAGS = -I./ \
4            $(LOCPLA_CFLAGS) \
5            $(GPSUTILS_CFLAGS) \
6            -I./data-items/ \
7            -I./data-items/common \
8            -I./observer \
9            -I$(WORKSPACE)/gps-noship/flp \
10            -D__func__=__PRETTY_FUNCTION__ \
11            -fno-short-enums \
12            -std=c++11
13
14libloc_core_la_h_sources = \
15           LocApiBase.h \
16           LocAdapterBase.h \
17           ContextBase.h \
18           LocContext.h \
19           LBSProxyBase.h \
20           loc_core_log.h \
21           LocAdapterProxyBase.h \
22           EngineHubProxyBase.h \
23           data-items/DataItemId.h \
24           data-items/IDataItemCore.h \
25           data-items/DataItemConcreteTypesBase.h \
26           observer/IDataItemObserver.h \
27           observer/IDataItemSubscription.h \
28           observer/IFrameworkActionReq.h \
29           observer/IOsObserver.h \
30           SystemStatusOsObserver.h \
31           SystemStatus.h
32
33libloc_core_la_c_sources = \
34           LocApiBase.cpp \
35           LocAdapterBase.cpp \
36           ContextBase.cpp \
37           LocContext.cpp \
38           loc_core_log.cpp \
39           data-items/DataItemsFactoryProxy.cpp \
40           SystemStatusOsObserver.cpp \
41           SystemStatus.cpp
42
43if USE_EXTERNAL_AP
44AM_CFLAGS += -DFEATURE_EXTERNAL_AP
45endif
46
47library_includedir = $(pkgincludedir)
48
49library_include_HEADERS = $(libloc_core_la_h_sources)
50
51libloc_core_la_SOURCES = $(libloc_core_la_c_sources)
52
53if USE_GLIB
54libloc_core_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
55libloc_core_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
56libloc_core_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
57else
58libloc_core_la_CFLAGS = $(AM_CFLAGS)
59libloc_core_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
60libloc_core_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
61endif
62
63if USE_FEATURE_AUTOMOTIVE
64AM_CFLAGS += -DFEATURE_AUTOMOTIVE
65endif
66
67libloc_core_la_LIBADD = -ldl $(GPSUTILS_LIBS)
68
69#Create and Install libraries
70lib_LTLIBRARIES = libloc_core.la
71
72pkgconfigdir = $(libdir)/pkgconfig
73pkgconfig_DATA = loc-core.pc
74EXTRA_DIST = $(pkgconfig_DATA)
75