Makefile.am 1.3 KB

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