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