Home | History | Annotate | Download | only in utils
      1 AM_CFLAGS = -Wundef \
      2          -I./ \
      3          $(LOCPLA_CFLAGS)
      4 
      5 AM_CPPFLAGS = -Wundef \
      6          -I./ \
      7          $(LOCPLA_CFLAGS)
      8 
      9 libgps_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 
     26 libgps_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 
     40 library_include_HEADERS = $(libgps_utils_so_la_h_sources)
     41 
     42 libgps_utils_so_la_SOURCES = $(libgps_utils_so_la_c_sources)
     43 
     44 if USE_GLIB
     45 libgps_utils_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
     46 libgps_utils_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
     47 libgps_utils_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
     48 else
     49 libgps_utils_so_la_CFLAGS = $(AM_CFLAGS)
     50 libgps_utils_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
     51 libgps_utils_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
     52 endif
     53 
     54 libgps_utils_so_la_LIBADD = -lcutils -lstdc++ -llog $(LOCPLA_LIBS)
     55 
     56 #Create and Install libraries
     57 lib_LTLIBRARIES = libgps_utils_so.la
     58 library_includedir = $(pkgincludedir)
     59 pkgconfigdir = $(libdir)/pkgconfig
     60 
     61 pkgconfig_DATA = gps-utils.pc
     62 EXTRA_DIST = $(pkgconfig_DATA)
     63