1AM_CFLAGS = -I./ \ 2 -I../utils \ 3 $(LOCPLA_CFLAGS) \ 4 $(GPSUTILS_CFLAGS) \ 5 -I$(WORKSPACE)/gps-noship/flp \ 6 -D__func__=__PRETTY_FUNCTION__ \ 7 -fno-short-enums 8 9libloc_core_la_h_sources = \ 10 LocApiBase.h \ 11 LocAdapterBase.h \ 12 ContextBase.h \ 13 LocDualContext.h \ 14 LBSProxyBase.h \ 15 UlpProxyBase.h \ 16 loc_core_log.h \ 17 LocAdapterProxyBase.h \ 18 SystemStatus.h 19 20libloc_core_la_c_sources = \ 21 LocApiBase.cpp \ 22 LocAdapterBase.cpp \ 23 ContextBase.cpp \ 24 LocDualContext.cpp \ 25 loc_core_log.cpp \ 26 SystemStatus.cpp 27 28library_includedir = $(pkgincludedir)/core 29 30library_include_HEADERS = $(libloc_core_la_h_sources) 31 32libloc_core_la_SOURCES = $(libloc_core_la_c_sources) 33 34if USE_GLIB 35libloc_core_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 36libloc_core_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 37libloc_core_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 38else 39libloc_core_la_CFLAGS = $(AM_CFLAGS) 40libloc_core_la_LDFLAGS = -lpthread -shared -version-info 1:0:0 41libloc_core_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 42endif 43 44libloc_core_la_LIBADD = -lstdc++ -ldl $(LOCPLA_LIBS) $(GPSUTILS_LIBS) 45 46#Create and Install libraries 47lib_LTLIBRARIES = libloc_core.la 48