1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-01 04:47:16 +00:00
Files
libsearpc/tests/Makefile.am

45 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2012-06-23 11:43:42 +08:00
generated_sources = searpc-signature.h searpc-marshal.h
clar_suite_sources = clar.suite
2011-04-08 20:58:15 +08:00
2012-05-08 11:59:31 +08:00
AM_CFLAGS = @GLIB_CFLAGS@ \
@JANSSON_CFLAGS@ \
-I${top_srcdir}/lib
2012-06-23 11:43:42 +08:00
# we need to generate the first
BUILT_SOURCES = gensource
2011-04-08 20:58:15 +08:00
check_PROGRAMS = test-searpc
test_searpc_SOURCES = searpc.c clar.c main.c
2012-05-08 11:59:31 +08:00
test_searpc_LDADD = @GLIB_LIBS@ \
@JANSSON_LIBS@ \
$(top_builddir)/lib/libsearpc.la
2011-04-08 20:58:15 +08:00
test_searpc_LDFLAGS = -static
TESTS = test-searpc
2012-06-23 11:43:42 +08:00
EXTRA_DIST = rpc_table.py generate.py
2012-06-23 11:43:42 +08:00
gensource: ${generated_sources} ${clar_suite_sources}
2012-06-23 11:43:42 +08:00
2014-07-23 14:56:35 +08:00
rpc_table.stamp: ${top_srcdir}/tests/rpc_table.py ${top_srcdir}/lib/searpc-codegen.py
@rm -f rpc_table.tmp
@touch rpc_table.tmp
2012-06-23 11:43:42 +08:00
@echo "[libsearpc]: generating rpc header files"
2014-07-23 14:56:35 +08:00
@PYTHON@ ${top_srcdir}/lib/searpc-codegen.py ${top_srcdir}/tests/rpc_table.py
2012-06-23 11:43:42 +08:00
@echo "[libsearpc]: done"
2014-07-23 14:56:35 +08:00
@mv -f rpc_table.tmp $@
${generated_sources}: rpc_table.stamp
2012-06-23 11:43:42 +08:00
${clar_suite_sources}: $(top_srcdir)/tests/generate.py
@PYTHON@ $(top_srcdir)/tests/generate.py
2012-06-23 11:43:42 +08:00
clean-local:
2013-02-04 19:46:48 +08:00
rm -f ${generated_sources}
rm -f rpc_table.pyc
2014-07-23 14:56:35 +08:00
rm -f rpc_table.stamp
rm -f rpc_table.tmp
rm -f generate.pyc
2012-06-23 11:43:42 +08:00