1AM_CFLAGS = \ 2 -I../../../utils \ 3 -I../../../platform_lib_abstractions \ 4 -I./rpc_inc \ 5 -I../libloc_api-rpc-stub/inc \ 6 -I../../libloc_api_50001 \ 7 $(MSM7K_CFLAGS) \ 8 -DUSE_QCOM_AUTO_RPC 9 10requiredlibs = \ 11 ../../../utils/libgps_utils_so.la \ 12 $(MSM7K_LIBS) 13 14h_sources = \ 15 rpc_inc/loc_api_rpc_glue.h \ 16 rpc_inc/loc_api_fixup.h \ 17 rpc_inc/loc_api_sync_call.h \ 18 rpc_inc/loc_apicb_appinit.h \ 19 20c_sources = \ 21 src/loc_api_rpc_glue.c \ 22 src/loc_api_sync_call.c \ 23 src/loc_apicb_appinit.c \ 24 src/loc_api_fixup.c \ 25 src/loc_api_log.c \ 26 src/LocApiRpcAdapter.cpp \ 27 28 29library_includedir = $(pkgincludedir)/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc 30library_include_HEADERS = $(h_sources) 31libloc_api_rpc_qc_la_SOURCES = $(c_sources) $(h_sources) 32 33if USE_GLIB 34libloc_api_rpc_qc_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 35libloc_api_rpc_qc_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 36libloc_api_rpc_qc_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 37else 38libloc_api_rpc_qc_la_CFLAGS = $(AM_CFLAGS) 39libloc_api_rpc_qc_la_LDFLAGS = -lpthread -shared -version-info 1:0:0 40libloc_api_rpc_qc_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 41endif 42 43libloc_api_rpc_qc_la_LIBADD = $(requiredlibs) -lstdc++ 44 45#Create and Install Libraries 46lib_LTLIBRARIES = libloc_api_rpc_qc.la 47