1AM_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 13AM_CPPFLAGS = $(AM_CFLAGS) 14 15ACLOCAL_AMFLAGS = -I m4 16 17requiredlibs = \ 18 ${LOCCORE_LIBS} \ 19 $(GPSUTILS_LIBS) \ 20 -llog 21 22h_sources = \ 23 GeofenceAdapter.h 24 25c_sources = \ 26 GeofenceAdapter.cpp \ 27 location_geofence.cpp 28 29libgeofencing_la_SOURCES = $(c_sources) 30if USE_GLIB 31libgeofencing_la_CFLAGS = -DUSE_GLIB @GLIB_CFLAGS@ $(AM_CFLAGS) 32libgeofencing_la_CPPFLAGS = -DUSE_GLIB @GLIB_CFLAGS@ $(AM_CFLAGS) $(AM_CPPFLAGS) 33libgeofencing_la_LDFLAGS = -lstdc++ -Wl,-z,defs @GLIB_LIBS@ $(requiredlibs) -shared -version-info 1:0:0 34libgeofencing_la_LIBDADD = $(requiredlibs) -lstdc++ @GLIB_LIBS@ 35else 36libgeofencing_la_CFLAGS = $(AM_CFLAGS) 37libgeofencing_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 38libgeofencing_la_LDFLAGS = -lstdc++ -Wl,-z,defs $(requiredlibs) -shared -version-info 1:0:0 39libgeofencing_la_LIBDADD = $(requiredlibs) -lstdc++ 40endif 41 42library_include_HEADERS = $(h_sources) 43 44library_includedir = $(pkgincludedir) 45 46lib_LTLIBRARIES = libgeofencing.la 47 48pkgconfigdir = $(libdir)/pkgconfig 49pkgconfig_DATA = location-geofence.pc 50EXTRA_DIST = $(pkgconfig_DATA) 51