1ACLOCAL_AMFLAGS = -I m4 2 3AM_CFLAGS = -Wundef \ 4 -MD \ 5 -Wno-trigraphs \ 6 -g -O0 \ 7 -fno-inline \ 8 -fno-short-enums \ 9 -fpic \ 10 -I./ \ 11 -std=c++14 \ 12 $(LOCPLA_CFLAGS) 13 14libgps_utils_la_h_sources = \ 15 msg_q.h \ 16 linked_list.h \ 17 loc_cfg.h \ 18 loc_log.h \ 19 loc_target.h \ 20 loc_timer.h \ 21 MsgTask.h \ 22 LocHeap.h \ 23 LocThread.h \ 24 LocTimer.h \ 25 LocIpc.h \ 26 SkipList.h\ 27 loc_misc_utils.h \ 28 loc_nmea.h \ 29 gps_extended_c.h \ 30 gps_extended.h \ 31 loc_gps.h \ 32 log_util.h \ 33 LocSharedLock.h \ 34 LocUnorderedSetMap.h 35 36libgps_utils_la_c_sources = \ 37 linked_list.c \ 38 msg_q.c \ 39 loc_cfg.cpp \ 40 loc_log.cpp \ 41 loc_target.cpp \ 42 LocHeap.cpp \ 43 LocTimer.cpp \ 44 LocThread.cpp \ 45 LocIpc.cpp \ 46 LogBuffer.cpp \ 47 MsgTask.cpp \ 48 loc_misc_utils.cpp \ 49 loc_nmea.cpp 50 51library_includedir = $(pkgincludedir) 52 53library_include_HEADERS = $(libgps_utils_la_h_sources) 54 55libgps_utils_la_SOURCES = $(libgps_utils_la_c_sources) 56 57if USE_GLIB 58libgps_utils_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 59libgps_utils_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 60libgps_utils_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 61else 62libgps_utils_la_CFLAGS = $(AM_CFLAGS) 63libgps_utils_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0 64libgps_utils_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 65endif 66 67libgps_utils_la_LIBADD = $(CUTILS_LIBS) -ldl 68 69#Create and Install libraries 70lib_LTLIBRARIES = libgps_utils.la 71 72pkgconfigdir = $(libdir)/pkgconfig 73pkgconfig_DATA = gps-utils.pc 74EXTRA_DIST = $(pkgconfig_DATA) 75