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