Michael Bestas | 3a0209e | 2023-05-04 01:15:47 +0300 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | |
| 3 | AM_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 | |
| 14 | libgps_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 | LocLoggerBase.h |
| 36 | |
| 37 | libgps_utils_la_c_sources = \ |
| 38 | linked_list.c \ |
| 39 | msg_q.c \ |
| 40 | loc_cfg.cpp \ |
| 41 | loc_log.cpp \ |
| 42 | loc_target.cpp \ |
| 43 | LocHeap.cpp \ |
| 44 | LocTimer.cpp \ |
| 45 | LocThread.cpp \ |
| 46 | LocIpc.cpp \ |
| 47 | LogBuffer.cpp \ |
| 48 | MsgTask.cpp \ |
| 49 | loc_misc_utils.cpp \ |
| 50 | loc_nmea.cpp |
| 51 | |
| 52 | library_includedir = $(pkgincludedir) |
| 53 | |
| 54 | library_include_HEADERS = $(libgps_utils_la_h_sources) |
| 55 | |
| 56 | libgps_utils_la_SOURCES = $(libgps_utils_la_c_sources) |
| 57 | |
| 58 | if USE_GLIB |
| 59 | libgps_utils_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ |
| 60 | libgps_utils_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 |
| 61 | libgps_utils_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ |
| 62 | else |
| 63 | libgps_utils_la_CFLAGS = $(AM_CFLAGS) |
| 64 | libgps_utils_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0 |
| 65 | libgps_utils_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) |
| 66 | endif |
| 67 | |
| 68 | libgps_utils_la_LIBADD = $(CUTILS_LIBS) -ldl |
| 69 | |
| 70 | #Create and Install libraries |
| 71 | lib_LTLIBRARIES = libgps_utils.la |
| 72 | |
| 73 | pkgconfigdir = $(libdir)/pkgconfig |
| 74 | pkgconfig_DATA = gps-utils.pc |
| 75 | EXTRA_DIST = $(pkgconfig_DATA) |