2016-11-08 13:39:00 +00:00
|
|
|
AM_CFLAGS = -Wundef \
|
2017-06-27 09:20:50 +00:00
|
|
|
-I./ \
|
2018-01-07 23:57:38 +00:00
|
|
|
-std=c++11 \
|
|
|
|
$(LOCPLA_CFLAGS)
|
|
|
|
|
|
|
|
AM_CPPFLAGS = -Wundef \
|
|
|
|
-I./ \
|
|
|
|
-std=c++11 \
|
2017-06-27 09:20:50 +00:00
|
|
|
$(LOCPLA_CFLAGS)
|
|
|
|
|
|
|
|
libgps_utils_so_la_h_sources = \
|
|
|
|
msg_q.h \
|
|
|
|
linked_list.h \
|
|
|
|
loc_cfg.h \
|
|
|
|
loc_log.h \
|
|
|
|
loc_target.h \
|
|
|
|
loc_timer.h \
|
|
|
|
MsgTask.h \
|
|
|
|
LocHeap.h \
|
|
|
|
LocThread.h \
|
|
|
|
LocTimer.h \
|
2018-01-07 23:57:38 +00:00
|
|
|
loc_misc_utils.h \
|
|
|
|
loc_nmea.h \
|
|
|
|
gps_extended_c.h \
|
|
|
|
gps_extended.h \
|
|
|
|
loc_gps.h
|
2017-06-27 09:20:50 +00:00
|
|
|
|
|
|
|
libgps_utils_so_la_c_sources = \
|
|
|
|
linked_list.c \
|
|
|
|
msg_q.c \
|
|
|
|
loc_cfg.cpp \
|
|
|
|
loc_log.cpp \
|
|
|
|
loc_target.cpp \
|
|
|
|
LocHeap.cpp \
|
|
|
|
LocTimer.cpp \
|
|
|
|
LocThread.cpp \
|
|
|
|
MsgTask.cpp \
|
2018-01-07 23:57:38 +00:00
|
|
|
loc_misc_utils.cpp \
|
|
|
|
loc_nmea.cpp
|
2016-11-08 13:39:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
library_include_HEADERS = $(libgps_utils_so_la_h_sources)
|
|
|
|
|
|
|
|
libgps_utils_so_la_SOURCES = $(libgps_utils_so_la_c_sources)
|
|
|
|
|
|
|
|
if USE_GLIB
|
|
|
|
libgps_utils_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
|
2018-01-07 23:57:38 +00:00
|
|
|
libgps_utils_so_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
|
2016-11-08 13:39:00 +00:00
|
|
|
libgps_utils_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
|
|
|
|
else
|
|
|
|
libgps_utils_so_la_CFLAGS = $(AM_CFLAGS)
|
2018-01-07 23:57:38 +00:00
|
|
|
libgps_utils_so_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
|
2016-11-08 13:39:00 +00:00
|
|
|
libgps_utils_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
|
|
|
|
endif
|
|
|
|
|
2018-01-07 23:57:38 +00:00
|
|
|
libgps_utils_so_la_LIBADD = -lcutils -lstdc++ -llog $(LOCPLA_LIBS)
|
2016-11-08 13:39:00 +00:00
|
|
|
|
|
|
|
#Create and Install libraries
|
|
|
|
lib_LTLIBRARIES = libgps_utils_so.la
|
2018-01-07 23:57:38 +00:00
|
|
|
library_includedir = $(pkgincludedir)
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
|
|
|
pkgconfig_DATA = gps-utils.pc
|
|
|
|
EXTRA_DIST = $(pkgconfig_DATA)
|