2002-01-27 23:51:46 +00:00
|
|
|
# $Id: Makefile.am,v 1.3 2002-01-27 23:51:46 fillods Exp $
|
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
|
|
|
|
|
|
|
|
RPCROT_SVC = rpcrot.h rpcrot_xdr.c rpcrot_svc.c rpcrot_proc.c rpcrotd.c
|
|
|
|
RPCROT_CLNT = rpcrot.h rpcrot_xdr.c rpcrot_clnt.c rpcrot_backend.c
|
|
|
|
|
2002-01-27 23:51:46 +00:00
|
|
|
LDADD = ../src/libhamlib.la @NET_LIBS@
|
2002-01-16 16:45:11 +00:00
|
|
|
DEPENDENCIES = ../src/libhamlib.la
|
|
|
|
|
|
|
|
# The RPC server
|
|
|
|
sbin_PROGRAMS = rpc.rotd
|
2002-01-16 19:17:10 +00:00
|
|
|
rpc_rotd_DEPENDENCIES = $(DEPENDENCIES) @ROT_BACKENDEPS@
|
2002-01-16 16:45:11 +00:00
|
|
|
rpc_rotd_SOURCES = $(RPCROT_SVC)
|
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
|
|
|
|
lib_LTLIBRARIES = libhamlib-rpcrot.la
|
|
|
|
libhamlib_rpcrot_la_SOURCES = $(RPCROT_CLNT)
|
|
|
|
libhamlib_rpcrot_la_LDFLAGS = -no-undefined -module -version-info 0:0:0
|
2002-01-27 23:51:46 +00:00
|
|
|
libhamlib_rpcrot_la_LIBADD = ../src/libhamlib.la @NET_LIBS@
|
2002-01-16 16:45:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
noinst_HEADERS = rpcrot.h rpcrot_backend.h
|
|
|
|
|
|
|
|
EXTRA_DIST = rpcrot.x $(man_MANS)
|
|
|
|
|
|
|
|
RPCGEN = rpcgen
|
|
|
|
|
|
|
|
rpcrot.h: rpcrot.x
|
|
|
|
rm -f $@
|
|
|
|
$(RPCGEN) -h $< -o $@
|
|
|
|
|
|
|
|
rpcrot_clnt.c: rpcrot.x
|
|
|
|
rm -f $@
|
|
|
|
$(RPCGEN) -l $< -o $@
|
|
|
|
|
|
|
|
rpcrot_svc.c: rpcrot.x
|
|
|
|
rm -f $@
|
|
|
|
$(RPCGEN) -m $< -o $@
|
|
|
|
|
|
|
|
rpcrot_xdr.c: rpcrot.x
|
|
|
|
rm -f $@
|
|
|
|
$(RPCGEN) -c $< -o $@
|
|
|
|
|