Makefile.am 1.1 KB

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