• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1AM_CFLAGS = \
2   -I../../../utils \
3   -I./inc \
4   $(MSM7K_CFLAGS)
5
6requiredlibs = \
7    ../../../utils/libgps_utils_so.la \
8    $(MSM7K_LIBS)
9
10h_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
16c_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
25library_includedir = $(pkgincludedir)/libloc_api-rpc-50001/libloc_api-rpc-stub/inc
26library_include_HEADERS = $(h_sources)
27libloc_api_rpcgen_la_SOURCES = $(c_sources) $(h_sources)
28
29if USE_GLIB
30libloc_api_rpcgen_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
31libloc_api_rpcgen_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
32libloc_api_rpcgen_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
33else
34libloc_api_rpcgen_la_CFLAGS = $(AM_CFLAGS)
35libloc_api_rpcgen_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
36libloc_api_rpcgen_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
37endif
38
39libloc_api_rpcgen_la_LIBADD = $(requiredlibs) -lstdc++
40
41#Create and Install Libraries
42lib_LTLIBRARIES = libloc_api_rpcgen.la
43