1AM_CFLAGS = -Wundef \ 2 -MD \ 3 -Wno-trigraphs \ 4 -g -O0 \ 5 -fno-inline \ 6 -fno-short-enums \ 7 -fpic \ 8 -I../platform_lib_abstractions 9 10libgps_utils_so_la_h_sources = log_util.h \ 11 msg_q.h \ 12 linked_list.h \ 13 loc_cfg.h \ 14 loc_log.h \ 15 ../platform_lib_abstractions/platform_lib_includes.h \ 16 ../platform_lib_abstractions/platform_lib_time.h \ 17 ../platform_lib_abstractions/platform_lib_macros.h 18 19libgps_utils_so_la_c_sources = linked_list.c \ 20 msg_q.c \ 21 loc_cfg.cpp \ 22 loc_log.cpp \ 23 ../platform_lib_abstractions/elapsed_millis_since_boot.cpp 24 25library_includedir = $(pkgincludedir)/utils 26 27library_include_HEADERS = $(libgps_utils_so_la_h_sources) 28 29libgps_utils_so_la_SOURCES = $(libgps_utils_so_la_c_sources) 30 31if USE_GLIB 32libgps_utils_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 33libgps_utils_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 34libgps_utils_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 35else 36libgps_utils_so_la_CFLAGS = $(AM_CFLAGS) 37libgps_utils_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0 38libgps_utils_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 39endif 40 41libgps_utils_so_la_LIBADD = -lstdc++ -lcutils 42 43#Create and Install libraries 44lib_LTLIBRARIES = libgps_utils_so.la 45