2002-01-16 16:45:11 +00:00
|
|
|
# rpcrot_xdr.c rpcrot_svc.c rpcrot_clnt.c and rpcrot.h are generated by rpcgen
|
|
|
|
# have to provide: rpcrot_proc.c rpcrotd.c rpcrot_backend.c
|
2002-07-06 09:24:10 +00:00
|
|
|
#
|
|
|
|
# Note: automake complains rpcrot_xdr.c is generated both with and
|
|
|
|
# without libtool, hence the copy rpcrot_xdr_lt.c
|
2002-01-16 16:45:11 +00:00
|
|
|
|
2002-10-31 00:22:20 +00:00
|
|
|
LDADD = ../src/libhamlib.la ../lib/libmisc.la @NET_LIBS@
|
2002-01-16 16:45:11 +00:00
|
|
|
DEPENDENCIES = ../src/libhamlib.la
|
|
|
|
|
2002-10-31 01:43:22 +00:00
|
|
|
BUILT_SOURCES = rpcrot_xdr.c rpcrot_svc.c rpcrot_xdr_lt.c rpcrot_clnt.c rpcrot.h
|
|
|
|
DISTCLEANFILES = rpcrot_xdr.c rpcrot_svc.c rpcrot_xdr_lt.c rpcrot_clnt.c rpcrot.h
|
2002-10-31 00:22:20 +00:00
|
|
|
|
2002-01-16 16:45:11 +00:00
|
|
|
# The RPC server
|
|
|
|
sbin_PROGRAMS = rpc.rotd
|
2002-01-16 19:17:10 +00:00
|
|
|
rpc_rotd_DEPENDENCIES = $(DEPENDENCIES) @ROT_BACKENDEPS@
|
2002-10-31 00:22:20 +00:00
|
|
|
rpc_rotd_SOURCES = rpcrot_proc.c rpcrotd.c
|
|
|
|
nodist_rpc_rotd_SOURCES = rpcrot_xdr.c rpcrot_svc.c rpcrot.h
|
2002-01-16 19:17:10 +00:00
|
|
|
rpc_rotd_LDFLAGS = @ROT_BACKENDLNK@
|
2002-01-16 16:45:11 +00:00
|
|
|
man_MANS = rpc.rotd.8
|
|
|
|
|
|
|
|
# The RPC backend
|
2002-11-04 22:19:31 +00:00
|
|
|
lib_LTLIBRARIES = hamlib-rpcrot.la
|
|
|
|
hamlib_rpcrot_la_SOURCES = rpcrot_backend.c rpcrot_backend.h
|
|
|
|
nodist_hamlib_rpcrot_la_SOURCES = rpcrot_xdr_lt.c rpcrot_clnt.c rpcrot.h
|
|
|
|
hamlib_rpcrot_la_LDFLAGS = -no-undefined -module -avoid-version
|
|
|
|
hamlib_rpcrot_la_LIBADD = ../src/libhamlib.la @NET_LIBS@
|
2002-01-16 16:45:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
EXTRA_DIST = rpcrot.x $(man_MANS)
|
|
|
|
|
|
|
|
RPCGEN = rpcgen
|
|
|
|
|
|
|
|
rpcrot.h: rpcrot.x
|
|
|
|
rm -f $@
|
2002-10-31 01:43:22 +00:00
|
|
|
$(RPCGEN) -h `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@
|
2002-01-16 16:45:11 +00:00
|
|
|
|
2002-09-03 16:12:36 +00:00
|
|
|
rpcrot_clnt.c: rpcrot.x rpcrot.h
|
2002-01-16 16:45:11 +00:00
|
|
|
rm -f $@
|
2002-10-31 01:43:22 +00:00
|
|
|
$(RPCGEN) -l `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@
|
2002-01-16 16:45:11 +00:00
|
|
|
|
2002-09-03 16:12:36 +00:00
|
|
|
rpcrot_svc.c: rpcrot.x rpcrot.h
|
2002-01-16 16:45:11 +00:00
|
|
|
rm -f $@
|
2002-10-31 01:43:22 +00:00
|
|
|
$(RPCGEN) -m `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@
|
2002-10-31 00:22:20 +00:00
|
|
|
|
|
|
|
# note:
|
|
|
|
# we need 2 rpcrot_xdr.c's: one for static rpcrot deamon, one for lt backend
|
2002-01-16 16:45:11 +00:00
|
|
|
|
2002-09-03 16:12:36 +00:00
|
|
|
rpcrot_xdr.c: rpcrot.x rpcrot.h
|
2002-01-16 16:45:11 +00:00
|
|
|
rm -f $@
|
2002-10-31 01:43:22 +00:00
|
|
|
$(RPCGEN) -c `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@
|
2002-01-16 16:45:11 +00:00
|
|
|
|
2002-10-31 00:22:20 +00:00
|
|
|
rpcrot_xdr_lt.c: rpcrot.x rpcrot.h
|
|
|
|
rm -f $@
|
2002-10-31 01:43:22 +00:00
|
|
|
$(RPCGEN) -c `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@
|
2002-07-06 09:24:10 +00:00
|
|
|
|