1 AM_CFLAGS = \ 2 ${QMIF_CFLAGS} \ 3 -I../../utils \ 4 -I../../platform_lib_abstractions \ 5 -I../libloc_api_50001 6 7 requiredlibs = \ 8 ${QMIF_LIBS} \ 9 ../libloc_api_50001/libloc_adapter_so.la \ 10 ../../utils/libgps_utils_so.la 11 12 h_sources = LocApiV02Adapter.h \ 13 loc_util_log.h \ 14 location_service_v02.h \ 15 loc_api_sync_req.h \ 16 loc_api_v02_client.h \ 17 loc_api_v02_log.h 18 19 c_sources = LocApiV02Adapter.cpp \ 20 loc_api_v02_log.c \ 21 loc_api_v02_client.c \ 22 loc_api_sync_req.c \ 23 location_service_v02.c 24 25 library_includedir = $(pkgincludedir) 26 library_include_HEADERS = $(h_sources) 27 28 libloc_api_la_SOURCES = $(c_sources) $(h_sources) 29 30 if USE_GLIB 31 libloc_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 32 libloc_api_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 33 libloc_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 34 else 35 libloc_api_la_CFLAGS = $(AM_CFLAGS) 36 libloc_api_la_LDFLAGS = -shared -version-info 1:0:0 37 libloc_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 38 endif 39 40 libloc_api_la_LIBADD = $(requiredlibs) -lstdc++ 41 42 lib_LTLIBRARIES = libloc_api.la 43