1AM_CFLAGS = -Wundef \ 2 -MD \ 3 -Wno-trigraphs \ 4 -g -O0 \ 5 -fno-inline \ 6 -fno-short-enums \ 7 -fpic \ 8 -I./ \ 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 24libgps_utils_so_la_c_sources = \ 25 linked_list.c \ 26 msg_q.c \ 27 loc_cfg.cpp \ 28 loc_log.cpp \ 29 loc_target.cpp \ 30 LocHeap.cpp \ 31 LocTimer.cpp \ 32 LocThread.cpp \ 33 MsgTask.cpp \ 34 loc_misc_utils.cpp 35 36library_includedir = $(pkgincludedir)/utils 37 38library_include_HEADERS = $(libgps_utils_so_la_h_sources) 39 40libgps_utils_so_la_SOURCES = $(libgps_utils_so_la_c_sources) 41 42if USE_GLIB 43libgps_utils_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 44libgps_utils_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 45libgps_utils_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 46else 47libgps_utils_so_la_CFLAGS = $(AM_CFLAGS) 48libgps_utils_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0 49libgps_utils_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 50endif 51 52libgps_utils_so_la_LIBADD = -lcutils -lstdc++ -llog $(LOCPLA_LIBS) 53 54#Create and Install libraries 55lib_LTLIBRARIES = libgps_utils_so.la 56