1AM_CFLAGS = -I./ \
2            -I../utils \
3            $(LOCPLA_CFLAGS) \
4           -I$(WORKSPACE)/gps-noship/flp \
5            -D__func__=__PRETTY_FUNCTION__ \
6            -fno-short-enums
7
8libloc_core_la_h_sources = \
9           LocApiBase.h \
10           LocAdapterBase.h \
11           ContextBase.h \
12           LocDualContext.h \
13           LBSProxyBase.h \
14           UlpProxyBase.h \
15           loc_gps.h \
16           gps_extended_c.h \
17           gps_extended.h \
18           loc_core_log.h \
19           LocAdapterProxyBase.h
20
21libloc_core_la_c_sources = \
22           LocApiBase.cpp \
23           LocAdapterBase.cpp \
24           ContextBase.cpp \
25           LocDualContext.cpp \
26           loc_core_log.cpp
27
28library_includedir = $(pkgincludedir)/core
29
30library_include_HEADERS = $(libloc_core_la_h_sources)
31
32libloc_core_la_SOURCES = $(libloc_core_la_c_sources)
33
34if USE_GLIB
35libloc_core_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
36libloc_core_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
37libloc_core_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
38else
39libloc_core_la_CFLAGS = $(AM_CFLAGS)
40libloc_core_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
41libloc_core_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
42endif
43
44libloc_core_la_LIBADD = -lstdc++ -ldl $(LOCPLA_LIBS) ../utils/libgps_utils_so.la
45
46#Create and Install libraries
47lib_LTLIBRARIES = libloc_core.la
48