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        LocLoggerBase.h
36
37libgps_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
52library_includedir = $(pkgincludedir)
53
54library_include_HEADERS = $(libgps_utils_la_h_sources)
55
56libgps_utils_la_SOURCES = $(libgps_utils_la_c_sources)
57
58if USE_GLIB
59libgps_utils_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
60libgps_utils_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
61libgps_utils_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
62else
63libgps_utils_la_CFLAGS = $(AM_CFLAGS)
64libgps_utils_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
65libgps_utils_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
66endif
67
68libgps_utils_la_LIBADD = $(CUTILS_LIBS) -ldl
69
70#Create and Install libraries
71lib_LTLIBRARIES = libgps_utils.la
72
73pkgconfigdir = $(libdir)/pkgconfig
74pkgconfig_DATA = gps-utils.pc
75EXTRA_DIST = $(pkgconfig_DATA)
76