1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-08-03 21:49:21 +00:00
libsearpc/demo/Makefile.am

48 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

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-09-13 05:07:31 +00:00
noinst_PROGRAMS = searpc-demo-server searpc-demo-client searpc-async-client
2013-08-08 08:24:20 +00:00
searpc_demo_server_SOURCES = test-object.c searpc-demo-server.c searpc-demo-packet.h
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@
2013-08-08 08:24:20 +00:00
searpc_demo_client_SOURCES = test-object.c searpc-demo-client.c searpc-demo-packet.h
2013-08-09 06:24:12 +00:00
searpc_demo_client_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
@GLIB_LIBS@ @JANSSON_LIBS@
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"
@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
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