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@
25libbatching_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread $(requiredlibs) @GLIB_LIBS@ -shared -version-info 1:0:0
26libbatching_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
27else
28libbatching_la_CFLAGS = $(AM_CFLAGS)
29libbatching_la_LDFLAGS = -Wl,-z,defs -lpthread $(requiredlibs) -shared -version-info 1:0:0
30libbatching_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
31endif
32
33library_include_HEADERS = $(h_sources)
34
35library_includedir = $(pkgincludedir)
36
37#Create and Install libraries
38lib_LTLIBRARIES = libbatching.la
39
40pkgconfigdir = $(libdir)/pkgconfig
41pkgconfig_DATA = location-batching.pc
42sysconf_DATA = $(WORKSPACE)/hardware/qcom/gps/etc/flp.conf
43EXTRA_DIST = $(pkgconfig_DATA)
44
45