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-11-13 20:39:07 +00:00
|
|
|
LDADD = $(top_builddir)/src/libhamlib.la $(top_builddir)/lib/libmisc.la @NET_LIBS@
|
|
|
|
DEPENDENCIES = $(top_builddir)/src/libhamlib.la
|
2002-01-16 16:45:11 +00:00
|
|
|
|
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
|
2003-04-23 21:05:39 +00:00
|
|
|
DISTCLEANFILES = $(BUILT_SOURCES)
|
2002-10-31 00:22:20 +00:00
|
|
|
|
2002-12-16 22:07:02 +00:00
|
|
|
# needed for backward compatibility on Solaris.
|
|
|
|
AM_CFLAGS = $(CFLAGS) -DPORTMAP
|
|
|
|
|
2002-01-16 16:45:11 +00:00
|
|
|
# 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
|
2003-04-23 21:05:39 +00:00
|
|
|
nodist_hamlib_rpcrot_la_SOURCES = rpcrot_clnt.c rpcrot_xdr_lt.c rpcrot.h
|
2002-11-04 22:19:31 +00:00
|
|
|
hamlib_rpcrot_la_LDFLAGS = -no-undefined -module -avoid-version
|
2002-11-13 20:39:07 +00:00
|
|
|
hamlib_rpcrot_la_LIBADD = $(top_builddir)/src/libhamlib.la @NET_LIBS@
|
2002-01-16 16:45:11 +00:00
|
|
|
|
2003-05-03 11:23:06 +00:00
|
|
|
# The RPC server
|
|
|
|
sbin_PROGRAMS = rpc.rotd
|
|
|
|
rpc_rotd_DEPENDENCIES = $(DEPENDENCIES) @ROT_BACKENDEPS@ hamlib-rpcrot.la
|
|
|
|
rpc_rotd_SOURCES = rpcrotd.c rpcrot_proc.c
|
|
|
|
nodist_rpc_rotd_SOURCES = rpcrot_svc.c rpcrot_xdr.c rpcrot.h
|
|
|
|
rpc_rotd_LDFLAGS = @ROT_BACKENDLNK@
|
|
|
|
man_MANS = rpc.rotd.8
|
|
|
|
|
2002-01-16 16:45:11 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = rpcrot.x $(man_MANS)
|
|
|
|
|
|
|
|
RPCGEN = rpcgen
|
|
|
|
|
2003-04-23 21:05:39 +00:00
|
|
|
rpcrot.h: Makefile rpcrot.x
|
2002-01-16 16:45:11 +00:00
|
|
|
rm -f $@
|
2003-04-23 21:05:39 +00:00
|
|
|
$(RPCGEN) -h -C `test -f rpcrot.x || echo '$(srcdir)/'`rpcrot.x -o $@
|
2002-01-16 16:45:11 +00:00
|
|
|
|
2004-01-15 22:48:29 +00:00
|
|
|
|
2003-10-31 16:45:06 +00:00
|
|
|
# Need to chdir in source dir, otherwise rpcgen hardcodes header path. sigh.
|
2003-04-23 21:05:39 +00:00
|
|
|
rpcrot_clnt.c: Makefile rpcrot.x
|
2002-01-16 16:45:11 +00:00
|
|
|
rm -f $@
|
2004-01-15 22:48:29 +00:00
|
|
|
abs_builddir=`pwd` ; \
|
|
|
|
cd $(srcdir) && $(RPCGEN) -l -C rpcrot.x -o $$abs_builddir/$@
|
2002-01-16 16:45:11 +00:00
|
|
|
|
2003-04-23 21:05:39 +00:00
|
|
|
rpcrot_svc.c: Makefile rpcrot.x
|
2002-01-16 16:45:11 +00:00
|
|
|
rm -f $@
|
2004-01-15 22:48:29 +00:00
|
|
|
abs_builddir=`pwd` ; \
|
|
|
|
cd $(srcdir) && $(RPCGEN) -m -C rpcrot.x -o $$abs_builddir/$@
|
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
|
|
|
|
2003-04-23 21:05:39 +00:00
|
|
|
rpcrot_xdr.c: Makefile rpcrot.x
|
2002-01-16 16:45:11 +00:00
|
|
|
rm -f $@
|
2004-01-15 22:48:29 +00:00
|
|
|
abs_builddir=`pwd` ; \
|
|
|
|
cd $(srcdir) && $(RPCGEN) -c -C rpcrot.x -o $$abs_builddir/$@
|
2002-01-16 16:45:11 +00:00
|
|
|
|
2003-04-23 21:05:39 +00:00
|
|
|
rpcrot_xdr_lt.c: Makefile rpcrot.x
|
2002-10-31 00:22:20 +00:00
|
|
|
rm -f $@
|
2004-01-15 22:48:29 +00:00
|
|
|
abs_builddir=`pwd` ; \
|
|
|
|
cd $(srcdir) && $(RPCGEN) -c -C rpcrot.x -o $$abs_builddir/$@
|
2002-07-06 09:24:10 +00:00
|
|
|
|