summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen/Makefile
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-12-13 03:31:10 +0000
committerwpaul <wpaul@FreeBSD.org>1995-12-13 03:31:10 +0000
commit15a1e09c3d41cb01afc70a2ea4d20c5a0d09348a (patch)
tree3547b9f6ff2d917f7e05d08348c8ae595e59f942 /usr.bin/rpcgen/Makefile
parent914aabf9597b86239a1773687af4db7b2cc37d12 (diff)
downloadFreeBSD-src-15a1e09c3d41cb01afc70a2ea4d20c5a0d09348a.zip
FreeBSD-src-15a1e09c3d41cb01afc70a2ea4d20c5a0d09348a.tar.gz
Clean up. (I hope I'm doing this right.)
Update rpcgen with the one from the TI-RPC 2.3 distribution. Note that when built for FreeBSD, this version of rpcgen assumes backwards compatibility mode by default. This means that it will produce ONCRPC 4.0 compatible code unless otherwise instructed, instead of the other way around. One incompatibility has also been worked around: this rpcgen normally always emits an '#include <stropts.h>' directive whether you select backwards compatibility mode or not. We don't have STREAMS, so this behavior has been changed: now it will only emit this line if run in TI-RPC mode. The 'generate output files in current directory instead of the directory where the protocol definition file lives' hack from the original rpcgen has been preserved. Notable new features: - Can be used to generate RPC servers that can be launched from port monitors such as inetd(5). - Can generate ANSI C code. - Can generate sample client and server top-level programs and makefiles in addition to the usual client and server stubs. - Can generate inline XDR routines.
Diffstat (limited to 'usr.bin/rpcgen/Makefile')
-rw-r--r--usr.bin/rpcgen/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.bin/rpcgen/Makefile b/usr.bin/rpcgen/Makefile
index 3379b27..d0e4c14 100644
--- a/usr.bin/rpcgen/Makefile
+++ b/usr.bin/rpcgen/Makefile
@@ -1,7 +1,13 @@
-# $Id: Makefile,v 1.1 1994/08/07 18:01:27 wollman Exp $
+SRCS= rpc_main.c rpc_clntout.c rpc_cout.c rpc_hout.c rpc_parse.c \
+ rpc_sample.c rpc_scan.c rpc_svcout.c rpc_tblout.c rpc_util.c
-PROG= rpcgen
-SRCS= rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c rpc_parse.c rpc_scan.c \
- rpc_svcout.c rpc_util.c
+PROG= rpcgen
+MAN1= rpcgen.1
+
+#
+# This is a kludge to work around the fact that this program
+# uses 'inline' as a variable name.
+#
+CFLAGS+=-Dinline=rpcgen_inline
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud