Zvikomborero VIncent Zvikaramba | afe3e87 | 2016-07-24 20:53:15 -0400 | [diff] [blame^] | 1 | AM_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 | |
| 10 | libgps_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 | |
| 19 | libgps_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 | |
| 25 | library_includedir = $(pkgincludedir)/utils |
| 26 | |
| 27 | library_include_HEADERS = $(libgps_utils_so_la_h_sources) |
| 28 | |
| 29 | libgps_utils_so_la_SOURCES = $(libgps_utils_so_la_c_sources) |
| 30 | |
| 31 | if USE_GLIB |
| 32 | libgps_utils_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ |
| 33 | libgps_utils_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 |
| 34 | libgps_utils_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ |
| 35 | else |
| 36 | libgps_utils_so_la_CFLAGS = $(AM_CFLAGS) |
| 37 | libgps_utils_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0 |
| 38 | libgps_utils_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) |
| 39 | endif |
| 40 | |
| 41 | libgps_utils_so_la_LIBADD = -lstdc++ -lcutils |
| 42 | |
| 43 | #Create and Install libraries |
| 44 | lib_LTLIBRARIES = libgps_utils_so.la |