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