1ACLOCAL_AMFLAGS = -I m4
2
3AM_CFLAGS = \
4     -I./ \
5     -I../utils \
6     $(LOCPLA_CFLAGS) \
7     $(GPSUTILS_CFLAGS) \
8     -std=c++11
9
10liblocation_api_la_SOURCES = \
11    LocationAPI.cpp \
12    LocationAPIClientBase.cpp
13
14if USE_GLIB
15liblocation_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
16liblocation_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
17liblocation_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
18else
19liblocation_api_la_CFLAGS = $(AM_CFLAGS)
20liblocation_api_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
21liblocation_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
22endif
23
24liblocation_api_la_LIBADD = -lstdc++ -ldl $(GPSUTILS_LIBS)
25
26library_include_HEADERS = \
27    LocationAPI.h \
28    LocationAPIClientBase.h \
29    location_interface.h \
30    LocationDataTypes.h \
31    ILocationAPI.h
32
33#Create and Install libraries
34lib_LTLIBRARIES = liblocation_api.la
35
36library_includedir = $(pkgincludedir)
37
38pkgconfigdir = $(libdir)/pkgconfig
39pkgconfig_DATA = location-api.pc
40EXTRA_DIST = $(pkgconfig_DATA)
41