-
Notifications
You must be signed in to change notification settings - Fork 85
/
Makefile.am
47 lines (31 loc) · 1.31 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
generated_sources = searpc-signature.h searpc-marshal.h
AM_CFLAGS = @GLIB_CFLAGS@ \
-I${top_srcdir}/lib
# we need to generate the first
BUILT_SOURCES = gensource
noinst_PROGRAMS = searpc-demo-server searpc-demo-client searpc-async-client
searpc_demo_server_SOURCES = test-object.c searpc-demo-server.c searpc-demo-packet.h
noinst_HEADERS = test-object.h
searpc_demo_server_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
@GLIB_LIBS@ @JANSSON_LIBS@
searpc_demo_client_SOURCES = test-object.c searpc-demo-client.c searpc-demo-packet.h
searpc_demo_client_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
@GLIB_LIBS@ @JANSSON_LIBS@
searpc_async_client_SOURCES = demo-async-client.c searpc-demo-packet.h
searpc_async_client_LDADD = ${top_builddir}/lib/libsearpc.la @LIB_WS32@ \
@GLIB_LIBS@ @JANSSON_LIBS@
EXTRA_DIST = rpc_table.py
gensource: ${generated_sources}
rpc_table.stamp: ${top_srcdir}/demo/rpc_table.py ${top_srcdir}/lib/searpc-codegen.py
@rm -f rpc_table.tmp
@touch rpc_table.tmp
@echo "[libsearpc]: generating rpc header files"
@PYTHON@ ${top_srcdir}/lib/searpc-codegen.py ${top_srcdir}/demo/rpc_table.py
@echo "[libsearpc]: done"
@mv -f rpc_table.tmp $@
${generated_sources}: rpc_table.stamp
clean-local:
rm -f ${generated_sources}
rm -f rpc_table.pyc
rm -f rpc_table.stamp
rm -f rpc_table.tmp