• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
43library_includedir = $(pkgincludedir)
44
45library_include_HEADERS = $(libloc_core_la_h_sources)
46
47libloc_core_la_SOURCES = $(libloc_core_la_c_sources)
48
49if USE_GLIB
50libloc_core_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
51libloc_core_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
52libloc_core_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
53else
54libloc_core_la_CFLAGS = $(AM_CFLAGS)
55libloc_core_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
56libloc_core_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
57endif
58
59libloc_core_la_LIBADD = -ldl $(GPSUTILS_LIBS)
60
61#Create and Install libraries
62lib_LTLIBRARIES = libloc_core.la
63
64pkgconfigdir = $(libdir)/pkgconfig
65pkgconfig_DATA = loc-core.pc
66EXTRA_DIST = $(pkgconfig_DATA)
67