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        loc_misc_utils.h \
27        loc_nmea.h \
28        gps_extended_c.h \
29        gps_extended.h \
30        loc_gps.h \
31        log_util.h \
32        LocSharedLock.h \
33        LocUnorderedSetMap.h
34
35libgps_utils_la_c_sources = \
36        linked_list.c \
37        msg_q.c \
38        loc_cfg.cpp \
39        loc_log.cpp \
40        loc_target.cpp \
41        LocHeap.cpp \
42        LocTimer.cpp \
43        LocThread.cpp \
44        LocIpc.cpp \
45        MsgTask.cpp \
46        loc_misc_utils.cpp \
47        loc_nmea.cpp
48
49library_includedir = $(pkgincludedir)
50
51library_include_HEADERS = $(libgps_utils_la_h_sources)
52
53libgps_utils_la_SOURCES = $(libgps_utils_la_c_sources)
54
55if USE_GLIB
56libgps_utils_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
57libgps_utils_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
58libgps_utils_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
59else
60libgps_utils_la_CFLAGS = $(AM_CFLAGS)
61libgps_utils_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
62libgps_utils_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
63endif
64
65libgps_utils_la_LIBADD = $(CUTILS_LIBS) -ldl
66
67#Create and Install libraries
68lib_LTLIBRARIES = libgps_utils.la
69
70pkgconfigdir = $(libdir)/pkgconfig
71pkgconfig_DATA = gps-utils.pc
72EXTRA_DIST = $(pkgconfig_DATA)
73