Michael Bestas | 3a0209e | 2023-05-04 01:15:47 +0300 | [diff] [blame] | 1 | AM_CFLAGS = -Wundef \ |
| 2 | -Wno-trigraphs \ |
| 3 | -g -O0 \ |
| 4 | -fno-inline \ |
| 5 | -fno-short-enums \ |
| 6 | -fpic \ |
| 7 | ${GPSUTILS_CFLAGS} \ |
| 8 | ${LOCCORE_CFLAGS} \ |
| 9 | $(LOCPLA_CFLAGS) \ |
| 10 | -D__func__=__PRETTY_FUNCTION__ \ |
| 11 | -std=c++1y |
| 12 | |
| 13 | AM_CPPFLAGS = $(AM_CFLAGS) |
| 14 | |
| 15 | ACLOCAL_AMFLAGS = -I m4 |
| 16 | |
| 17 | requiredlibs = \ |
| 18 | ${LOCCORE_LIBS} \ |
| 19 | $(GPSUTILS_LIBS) \ |
| 20 | -llog |
| 21 | |
| 22 | h_sources = \ |
| 23 | GeofenceAdapter.h |
| 24 | |
| 25 | c_sources = \ |
| 26 | GeofenceAdapter.cpp \ |
| 27 | location_geofence.cpp |
| 28 | |
| 29 | libgeofencing_la_SOURCES = $(c_sources) |
| 30 | if USE_GLIB |
| 31 | libgeofencing_la_CFLAGS = -DUSE_GLIB @GLIB_CFLAGS@ $(AM_CFLAGS) |
| 32 | libgeofencing_la_CPPFLAGS = -DUSE_GLIB @GLIB_CFLAGS@ $(AM_CFLAGS) $(AM_CPPFLAGS) |
| 33 | libgeofencing_la_LDFLAGS = -lstdc++ -Wl,-z,defs @GLIB_LIBS@ $(requiredlibs) -shared -version-info 1:0:0 |
| 34 | libgeofencing_la_LIBDADD = $(requiredlibs) -lstdc++ @GLIB_LIBS@ |
| 35 | else |
| 36 | libgeofencing_la_CFLAGS = $(AM_CFLAGS) |
| 37 | libgeofencing_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) |
| 38 | libgeofencing_la_LDFLAGS = -lstdc++ -Wl,-z,defs $(requiredlibs) -shared -version-info 1:0:0 |
| 39 | libgeofencing_la_LIBDADD = $(requiredlibs) -lstdc++ |
| 40 | endif |
| 41 | |
| 42 | library_include_HEADERS = $(h_sources) |
| 43 | |
| 44 | library_includedir = $(pkgincludedir) |
| 45 | |
| 46 | lib_LTLIBRARIES = libgeofencing.la |
| 47 | |
| 48 | pkgconfigdir = $(libdir)/pkgconfig |
| 49 | pkgconfig_DATA = location-geofence.pc |
| 50 | EXTRA_DIST = $(pkgconfig_DATA) |