1AM_CFLAGS = \ 2 $(GPSUTILS_CFLAGS) \ 3 $(LOCCORE_CFLAGS) \ 4 -I./ \ 5 -std=c++1y \ 6 -D__func__=__PRETTY_FUNCTION__ \ 7 -fno-short-enums 8 9ACLOCAL_AMFLAGS = -I m4 10 11requiredlibs = \ 12 $(GPSUTILS_LIBS) \ 13 $(LOCCORE_LIBS) \ 14 -llog 15 16h_sources = \ 17 BatchingAdapter.h 18 19libbatching_la_SOURCES = \ 20 location_batching.cpp \ 21 BatchingAdapter.cpp 22 23if USE_GLIB 24libbatching_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 25#libbatching_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread $(requiredlibs) @GLIB_LIBS@ -shared -avoid-version 26libbatching_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread $(requiredlibs) @GLIB_LIBS@ -avoid-version 27libbatching_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 28else 29libbatching_la_CFLAGS = $(AM_CFLAGS) 30libbatching_la_LDFLAGS = -Wl,-z,defs -lpthread $(requiredlibs) -shared -version-info 1:0:0 31libbatching_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 32endif 33 34library_include_HEADERS = $(h_sources) 35 36library_includedir = $(pkgincludedir) 37 38#Create and Install libraries 39lib_LTLIBRARIES = libbatching.la 40 41pkgconfigdir = $(libdir)/pkgconfig 42pkgconfig_DATA = location-batching.pc 43sysconf_DATA = $(WORKSPACE)/hardware/qcom/sm7150/gps/etc/flp.conf 44EXTRA_DIST = $(pkgconfig_DATA) 45 46