2012-06-21 10:20:26 +08:00
|
|
|
generated_sources = searpc-signature.h searpc-marshal.h
|
2012-06-20 20:24:49 +08:00
|
|
|
|
2012-05-08 11:59:31 +08:00
|
|
|
AM_CFLAGS = @GLIB_CFLAGS@ \
|
2012-06-20 20:24:49 +08:00
|
|
|
-I${top_srcdir}/lib \
|
|
|
|
-I${top_srcdir}/json-glib
|
|
|
|
|
|
|
|
# we need to generate the first
|
|
|
|
BUILT_SOURCES = gensource
|
2011-04-15 14:33:25 +08:00
|
|
|
|
2011-09-13 13:07:31 +08:00
|
|
|
noinst_PROGRAMS = searpc-demo-server searpc-demo-client searpc-async-client
|
2011-04-15 14:33:25 +08:00
|
|
|
|
|
|
|
searpc_demo_server_SOURCES = searpc-demo-server.c searpc-demo-packet.h
|
|
|
|
|
2012-05-08 11:59:31 +08:00
|
|
|
searpc_demo_server_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
|
2012-12-14 13:56:31 +08:00
|
|
|
@GLIB_LIBS@ \
|
2012-06-20 20:24:49 +08:00
|
|
|
${top_builddir}/json-glib/json-glib/libsearpc-json-glib.la
|
2011-04-15 14:33:25 +08:00
|
|
|
|
|
|
|
searpc_demo_client_SOURCES = searpc-demo-client.c searpc-demo-packet.h
|
|
|
|
|
2012-05-08 11:59:31 +08:00
|
|
|
searpc_demo_client_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
|
2012-12-14 13:56:31 +08:00
|
|
|
@GLIB_LIBS@
|
2011-04-15 14:33:25 +08:00
|
|
|
|
2011-09-13 13:07:31 +08:00
|
|
|
searpc_async_client_SOURCES = demo-async-client.c searpc-demo-packet.h
|
|
|
|
|
2012-05-08 11:59:31 +08:00
|
|
|
searpc_async_client_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
|
2012-12-14 13:56:31 +08:00
|
|
|
@GLIB_LIBS@
|
2011-09-13 13:07:31 +08:00
|
|
|
|
2012-06-20 20:24:49 +08:00
|
|
|
EXTRA_DIST = rpc_table.py
|
|
|
|
|
|
|
|
gensource: ${generated_sources}
|
|
|
|
|
2012-09-11 16:17:48 +08:00
|
|
|
${generated_sources}: ${top_srcdir}/demo/rpc_table.py
|
2012-06-20 20:24:49 +08:00
|
|
|
@echo "[libsearpc]: generating rpc header files"
|
2012-09-11 16:17:48 +08:00
|
|
|
python ${top_srcdir}/lib/searpc-codegen.py ${top_srcdir}/demo/rpc_table.py
|
2012-06-20 20:24:49 +08:00
|
|
|
@echo "[libsearpc]: done"
|
|
|
|
|
2012-06-21 10:20:26 +08:00
|
|
|
clean-local:
|
|
|
|
-rm ${generated_sources}
|
|
|
|
|