1AM_CFLAGS = \
2     -I../../utils \
3     -I../../platform_lib_abstractions \
4     -fno-short-enums \
5     -DFEATURE_GNSS_BIT_API
6
7libloc_adapter_so_la_SOURCES = loc_eng_log.cpp LocEngAdapter.cpp
8
9if USE_GLIB
10libloc_adapter_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
11libloc_adapter_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
12libloc_adapter_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
13else
14libloc_adapter_so_la_CFLAGS = $(AM_CFLAGS)
15libloc_adapter_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
16libloc_adapter_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
17endif
18libloc_adapter_so_la_LIBADD = -lstdc++ -lcutils ../../utils/libgps_utils_so.la
19
20
21libloc_eng_so_la_SOURCES = \
22    loc_eng.cpp \
23    loc_eng_agps.cpp \
24    loc_eng_xtra.cpp \
25    loc_eng_ni.cpp \
26    loc_eng_log.cpp \
27    loc_eng_dmn_conn.cpp \
28    loc_eng_dmn_conn_handler.cpp \
29    loc_eng_dmn_conn_thread_helper.c \
30    loc_eng_dmn_conn_glue_msg.c \
31    loc_eng_dmn_conn_glue_pipe.c
32
33
34if USE_GLIB
35libloc_eng_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
36libloc_eng_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
37libloc_eng_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
38else
39libloc_eng_so_la_CFLAGS = $(AM_CFLAGS)
40libloc_eng_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
41libloc_eng_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
42endif
43
44libloc_eng_so_la_LIBADD = -lstdc++ -lcutils -ldl ../../utils/libgps_utils_so.la libloc_adapter_so.la
45
46
47libgps_default_so_la_SOURCES = \
48      loc.cpp \
49      gps.c
50
51if USE_GLIB
52libgps_default_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
53libgps_default_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
54libgps_default_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
55else
56libgps_default_so_la_CFLAGS = $(AM_CFLAGS)
57libgps_default_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
58libgps_default_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
59endif
60
61libgps_default_so_la_LIBADD = -lstdc++ -lcutils ../../utils/libgps_utils_so.la -ldl libloc_eng_so.la
62
63library_include_HEADERS = \
64   LocEngAdapter.h \
65   loc.h \
66   loc_eng.h \
67   loc_eng_xtra.h \
68   loc_eng_ni.h \
69   loc_eng_agps.h \
70   loc_eng_msg.h \
71   loc_eng_log.h
72
73library_includedir = $(pkgincludedir)/libloc_api_50001
74
75#Create and Install libraries
76lib_LTLIBRARIES = libloc_adapter_so.la libloc_eng_so.la libgps_default_so.la
77