• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1AM_CFLAGS = -Wundef \
2         -I./ \
3         -std=c++11 \
4         $(LOCPLA_CFLAGS)
5
6AM_CPPFLAGS = -Wundef \
7         -I./ \
8         -std=c++11 \
9         $(LOCPLA_CFLAGS)
10
11libgps_utils_so_la_h_sources = \
12        msg_q.h \
13        linked_list.h \
14        loc_cfg.h \
15        loc_log.h \
16        loc_target.h \
17        loc_timer.h \
18        MsgTask.h \
19        LocHeap.h \
20        LocThread.h \
21        LocTimer.h \
22        loc_misc_utils.h \
23        loc_nmea.h \
24        gps_extended_c.h \
25        gps_extended.h \
26        loc_gps.h
27
28libgps_utils_so_la_c_sources = \
29        linked_list.c \
30        msg_q.c \
31        loc_cfg.cpp \
32        loc_log.cpp \
33        loc_target.cpp \
34        LocHeap.cpp \
35        LocTimer.cpp \
36        LocThread.cpp \
37        MsgTask.cpp \
38        loc_misc_utils.cpp \
39        loc_nmea.cpp
40
41
42library_include_HEADERS = $(libgps_utils_so_la_h_sources)
43
44libgps_utils_so_la_SOURCES = $(libgps_utils_so_la_c_sources)
45
46if USE_GLIB
47libgps_utils_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
48libgps_utils_so_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
49libgps_utils_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
50else
51libgps_utils_so_la_CFLAGS = $(AM_CFLAGS)
52libgps_utils_so_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
53libgps_utils_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
54endif
55
56libgps_utils_so_la_LIBADD = -lcutils -lstdc++ -llog $(LOCPLA_LIBS)
57
58#Create and Install libraries
59lib_LTLIBRARIES = libgps_utils_so.la
60library_includedir = $(pkgincludedir)
61pkgconfigdir = $(libdir)/pkgconfig
62
63pkgconfig_DATA = gps-utils.pc
64EXTRA_DIST = $(pkgconfig_DATA)
65