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_EXTERNAL_AP 15AM_CFLAGS += -DFEATURE_EXTERNAL_AP 16endif 17 18if USE_GLIB 19liblocation_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 20liblocation_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 21liblocation_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 22else 23liblocation_api_la_CFLAGS = $(AM_CFLAGS) 24liblocation_api_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0 25liblocation_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 26endif 27 28liblocation_api_la_LIBADD = -lstdc++ -ldl $(GPSUTILS_LIBS) 29 30library_include_HEADERS = \ 31 LocationAPI.h \ 32 LocationAPIClientBase.h \ 33 location_interface.h \ 34 LocationDataTypes.h \ 35 ILocationAPI.h 36 37#Create and Install libraries 38lib_LTLIBRARIES = liblocation_api.la 39 40library_includedir = $(pkgincludedir) 41 42pkgconfigdir = $(libdir)/pkgconfig 43pkgconfig_DATA = location-api.pc 44EXTRA_DIST = $(pkgconfig_DATA) 45