1AM_CFLAGS = \
2     $(LOCPLA_CFLAGS) \
3     $(LOCHAL_CFLAGS) \
4     $(GPSUTILS_CFLAGS) \
5     $(LOCCORE_CFLAGS) \
6     -I./ \
7     -I../utils \
8     -I$(WORKSPACE)/hardware/qcom/gps/core/data-items \
9     -I../location \
10     -std=c++1y
11
12libgnss_la_SOURCES = \
13    location_gnss.cpp \
14    GnssAdapter.cpp \
15    XtraSystemStatusObserver.cpp \
16    Agps.cpp
17
18if USE_GLIB
19libgnss_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
20libgnss_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -avoid-version
21libgnss_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
22else
23libgnss_la_CFLAGS = $(AM_CFLAGS)
24libgnss_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
25libgnss_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
26endif
27
28libgnss_la_LIBADD = -lstdc++ -ldl $(GPSUTILS_LIBS) $(LOCCORE_LIBS)
29
30#Create and Install libraries
31lib_LTLIBRARIES = libgnss.la
32