2001-10-16 19:29:03 +00:00
|
|
|
# rpcrig_xdr.c rpcrig_svc.c rpcrig_clnt.c and rpcrig.h are generated by rpcgen
|
|
|
|
# have to provide: rpcrig_proc.c rpcrigd.c rpcrig_backend.c
|
2002-07-06 09:24:10 +00:00
|
|
|
#
|
|
|
|
# Note: automake complains rpcrig_xdr.c is generated both with and
|
|
|
|
# without libtool, hence the copy rpcrig_xdr_lt.c
|
2001-12-19 03:31:53 +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
|
2001-12-16 11:07:54 +00:00
|
|
|
|
2002-10-31 01:43:22 +00:00
|
|
|
BUILT_SOURCES = rpcrig_xdr.c rpcrig_svc.c rpcrig_xdr_lt.c rpcrig_clnt.c rpcrig.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
|
|
|
|
|
2001-10-16 19:29:03 +00:00
|
|
|
# The RPC backend
|
2002-11-04 22:19:31 +00:00
|
|
|
lib_LTLIBRARIES = hamlib-rpcrig.la
|
|
|
|
hamlib_rpcrig_la_SOURCES = rpcrig_backend.c rpcrig_backend.h
|
2003-04-23 21:05:39 +00:00
|
|
|
nodist_hamlib_rpcrig_la_SOURCES = rpcrig_clnt.c rpcrig_xdr_lt.c rpcrig.h
|
2002-11-04 22:19:31 +00:00
|
|
|
hamlib_rpcrig_la_LDFLAGS = -no-undefined -module -avoid-version
|
2002-11-13 20:39:07 +00:00
|
|
|
hamlib_rpcrig_la_LIBADD = $(top_builddir)/src/libhamlib.la @NET_LIBS@
|
2001-10-16 19:29:03 +00:00
|
|
|
|
2003-05-03 11:23:06 +00:00
|
|
|
# The RPC server
|
|
|
|
sbin_PROGRAMS = rpc.rigd
|
|
|
|
rpc_rigd_DEPENDENCIES = $(DEPENDENCIES) @BACKENDEPS@ hamlib-rpcrig.la
|
|
|
|
rpc_rigd_SOURCES = rpcrigd.c rpcrig_proc.c
|
|
|
|
nodist_rpc_rigd_SOURCES = rpcrig_svc.c rpcrig_xdr.c rpcrig.h
|
|
|
|
rpc_rigd_LDFLAGS = @BACKENDLNK@
|
|
|
|
man_MANS = rpc.rigd.8
|
|
|
|
|
2001-10-16 19:29:03 +00:00
|
|
|
EXTRA_DIST = rpcrig.x $(man_MANS)
|
|
|
|
|
|
|
|
RPCGEN = rpcgen
|
|
|
|
|
2003-04-23 21:05:39 +00:00
|
|
|
rpcrig.h: Makefile rpcrig.x
|
2001-10-16 19:29:03 +00:00
|
|
|
rm -f $@
|
2003-04-23 21:05:39 +00:00
|
|
|
$(RPCGEN) -h -C `test -f rpcrig.x || echo '$(srcdir)/'`rpcrig.x -o $@
|
2001-10-16 19:29:03 +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
|
|
|
rpcrig_clnt.c: Makefile rpcrig.x
|
2001-10-16 19:29:03 +00:00
|
|
|
rm -f $@
|
2004-01-15 22:48:29 +00:00
|
|
|
abs_builddir=`pwd` ; \
|
|
|
|
cd $(srcdir) && $(RPCGEN) -l -C rpcrig.x -o $$abs_builddir/$@
|
2001-10-16 19:29:03 +00:00
|
|
|
|
2003-04-23 21:05:39 +00:00
|
|
|
rpcrig_svc.c: Makefile rpcrig.x
|
2001-10-16 19:29:03 +00:00
|
|
|
rm -f $@
|
2004-01-15 22:48:29 +00:00
|
|
|
abs_builddir=`pwd` ; \
|
|
|
|
cd $(srcdir) && $(RPCGEN) -m -C rpcrig.x -o $$abs_builddir/$@
|
2002-10-31 00:22:20 +00:00
|
|
|
|
|
|
|
# note:
|
|
|
|
# we need 2 rpcrig_xdr.c's: one for static rpcrig deamon, one for lt backend
|
2001-10-16 19:29:03 +00:00
|
|
|
|
2003-04-23 21:05:39 +00:00
|
|
|
rpcrig_xdr.c: Makefile rpcrig.x
|
2001-10-16 19:29:03 +00:00
|
|
|
rm -f $@
|
2004-01-15 22:48:29 +00:00
|
|
|
abs_builddir=`pwd` ; \
|
|
|
|
cd $(srcdir) && $(RPCGEN) -c -C rpcrig.x -o $$abs_builddir/$@
|
2001-10-16 19:29:03 +00:00
|
|
|
|
2003-04-23 21:05:39 +00:00
|
|
|
rpcrig_xdr_lt.c: Makefile rpcrig.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 rpcrig.x -o $$abs_builddir/$@
|
2002-07-06 09:24:10 +00:00
|
|
|
|