2012-06-21 02:20:26 +00:00
|
|
|
generated_sources = searpc-signature.h searpc-marshal.h
|
2012-06-20 12:24:49 +00:00
|
|
|
|
2012-05-08 03:59:31 +00:00
|
|
|
AM_CFLAGS = @GLIB_CFLAGS@ \
|
2013-08-08 08:24:20 +00:00
|
|
|
-I${top_srcdir}/lib
|
2012-06-20 12:24:49 +00:00
|
|
|
|
|
|
|
# we need to generate the first
|
|
|
|
BUILT_SOURCES = gensource
|
2011-04-15 06:33:25 +00:00
|
|
|
|
2011-09-13 05:07:31 +00:00
|
|
|
noinst_PROGRAMS = searpc-demo-server searpc-demo-client searpc-async-client
|
2011-04-15 06:33:25 +00:00
|
|
|
|
2013-08-08 08:24:20 +00:00
|
|
|
searpc_demo_server_SOURCES = test-object.c searpc-demo-server.c searpc-demo-packet.h
|
2011-04-15 06:33:25 +00:00
|
|
|
|
2013-12-09 11:25:33 +00:00
|
|
|
noinst_HEADERS = test-object.h
|
|
|
|
|
2013-08-09 06:24:12 +00:00
|
|
|
searpc_demo_server_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
|
|
|
|
@GLIB_LIBS@ @JANSSON_LIBS@
|
2011-04-15 06:33:25 +00:00
|
|
|
|
2013-08-08 08:24:20 +00:00
|
|
|
searpc_demo_client_SOURCES = test-object.c searpc-demo-client.c searpc-demo-packet.h
|
2011-04-15 06:33:25 +00:00
|
|
|
|
2013-08-09 06:24:12 +00:00
|
|
|
searpc_demo_client_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
|
|
|
|
@GLIB_LIBS@ @JANSSON_LIBS@
|
2011-04-15 06:33:25 +00:00
|
|
|
|
2011-09-13 05:07:31 +00:00
|
|
|
searpc_async_client_SOURCES = demo-async-client.c searpc-demo-packet.h
|
|
|
|
|
2013-08-09 06:24:12 +00:00
|
|
|
searpc_async_client_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
|
|
|
|
@GLIB_LIBS@ @JANSSON_LIBS@
|
2011-09-13 05:07:31 +00:00
|
|
|
|
2012-06-20 12:24:49 +00:00
|
|
|
EXTRA_DIST = rpc_table.py
|
|
|
|
|
|
|
|
gensource: ${generated_sources}
|
|
|
|
|
2014-07-23 06:56:35 +00:00
|
|
|
rpc_table.stamp: ${top_srcdir}/demo/rpc_table.py ${top_srcdir}/lib/searpc-codegen.py
|
|
|
|
@rm -f rpc_table.tmp
|
|
|
|
@touch rpc_table.tmp
|
2012-06-20 12:24:49 +00:00
|
|
|
@echo "[libsearpc]: generating rpc header files"
|
2012-12-17 03:29:52 +00:00
|
|
|
@PYTHON@ ${top_srcdir}/lib/searpc-codegen.py ${top_srcdir}/demo/rpc_table.py
|
2012-06-20 12:24:49 +00:00
|
|
|
@echo "[libsearpc]: done"
|
2014-07-23 06:56:35 +00:00
|
|
|
@mv -f rpc_table.tmp $@
|
|
|
|
|
|
|
|
${generated_sources}: rpc_table.stamp
|
2012-06-20 12:24:49 +00:00
|
|
|
|
2012-06-21 02:20:26 +00:00
|
|
|
clean-local:
|
2013-02-04 11:46:48 +00:00
|
|
|
rm -f ${generated_sources}
|
|
|
|
rm -f rpc_table.pyc
|
2014-07-23 06:56:35 +00:00
|
|
|
rm -f rpc_table.stamp
|
|
|
|
rm -f rpc_table.tmp
|
2012-06-21 02:20:26 +00:00
|
|
|
|