1 AM_CFLAGS = \ 2 -I../../../utils \ 3 -I./inc \ 4 $(MSM7K_CFLAGS) 5 6 requiredlibs = \ 7 ../../../utils/libgps_utils_so.la \ 8 $(MSM7K_LIBS) 9 10 h_sources = \ 11 inc/loc_api_rpcgen_rpc.h \ 12 inc/loc_api_rpcgen_common_rpc.h \ 13 inc/loc_api_rpcgen_cb_rpc.h \ 14 inc/loc_apicb_appinit.h 15 16 c_sources = \ 17 src/loc_api_rpcgen_cb_xdr.c \ 18 src/loc_api_rpcgen_common_xdr.c \ 19 src/loc_api_rpcgen_cb_svc.c \ 20 src/loc_api_rpcgen_clnt.c \ 21 src/loc_api_rpcgen_xdr.c 22 23 24 25 library_includedir = $(pkgincludedir)/libloc_api-rpc-50001/libloc_api-rpc-stub/inc 26 library_include_HEADERS = $(h_sources) 27 libloc_api_rpcgen_la_SOURCES = $(c_sources) $(h_sources) 28 29 if USE_GLIB 30 libloc_api_rpcgen_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 31 libloc_api_rpcgen_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 32 libloc_api_rpcgen_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 33 else 34 libloc_api_rpcgen_la_CFLAGS = $(AM_CFLAGS) 35 libloc_api_rpcgen_la_LDFLAGS = -lpthread -shared -version-info 1:0:0 36 libloc_api_rpcgen_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 37 endif 38 39 libloc_api_rpcgen_la_LIBADD = $(requiredlibs) -lstdc++ 40 41 #Create and Install Libraries 42 lib_LTLIBRARIES = libloc_api_rpcgen.la 43