aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-03-17 18:42:51 +0000
committerRoland McGrath <roland@gnu.org>1995-03-17 18:42:51 +0000
commit693e7b964f9d91d9df97b776718271c94131dcbd (patch)
treef8c09ba386017b689388f0dfd9b2cf8b3f647fd6 /sunrpc/Makefile
parent68b3ef49b933afbc35d4b78b99c5adafffc97770 (diff)
downloadglibc-693e7b964f9d91d9df97b776718271c94131dcbd.tar
glibc-693e7b964f9d91d9df97b776718271c94131dcbd.tar.gz
glibc-693e7b964f9d91d9df97b776718271c94131dcbd.tar.bz2
glibc-693e7b964f9d91d9df97b776718271c94131dcbd.zip
Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* sunrpc/Makefile (install-lib): Variable removed. (rpcsvc-objs): Variable removed. (extra-objs): Don't include $(rpcsvc-objs). (extra-libs): New variable, contains librpcsvc. (librpcsvc-routines): New variable. (librpcsvc-inhibit-o): New variable, contains .so. (omit-deps): Set this to $(librpcsvc-routines). ($(objpfx)rpcgen): Don't use $(libc.a). (lib, $(objpfx)librpcsvc.a): Targets removed. * o-iterator.mk, extra-lib.mk: New files. * Makerules (o-iterator): New variable. [extra-libs]: Include extra-lib.mk to generate rules for each word of $(extra-libs). * Makefile (distribute): Add extra-lib.mk, o-iterator.mk. (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed. * stdio/fpioconst.c, stdio/fpioconst.h: Don't use LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available exponent.
Diffstat (limited to 'sunrpc/Makefile')
-rw-r--r--sunrpc/Makefile29
1 files changed, 8 insertions, 21 deletions
diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index 6a5f895722..40026fecd4 100644
--- a/sunrpc/Makefile
+++ b/sunrpc/Makefile
@@ -64,25 +64,27 @@ routines := auth_none auth_unix authuxprot bindrsvprt \
svc_tcp svc_udp xdr xdr_array xdr_float xdr_mem \
xdr_rec xdr_ref xdr_stdio
-install-lib := librpcsvc.a
+others := portmap rpcinfo
install-bin := rpcgen
install-sbin := rpcinfo portmap
-rpcsvc-objs = $(rpcsvc:%.x=x%.o)
rpcgen-objs = rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o \
rpc_scan.o rpc_util.o rpc_svcout.o rpc_clntout.o
-extra-objs = $(rpcgen-objs) $(rpcsvc-objs)
-omit-deps = $(basename $(rpcsvc-objs))
# These headers are part of rpcgen.
distribute := rpc_util.h rpc_parse.h rpc_scan.h $(rpcgen-objs:.o=.c) etc.rpc
+extra-objs = $(rpcgen-objs)
+
+extra-libs := librpcsvc
+librpcsvc-routines = $(rpcsvc:%.x=x%)
+librpcsvc-inhibit-o = .so # Build no shared rpcsvc library.
+omit-deps = $(librpcsvc-routines)
-others := portmap rpcinfo
# Sun's code is not too clean.
override +gccwarn := -w
include ../Rules
-$(objpfx)rpcgen: $(addprefix $(objpfx),$(rpcgen-objs)) $(libc.a)
+$(objpfx)rpcgen: $(addprefix $(objpfx),$(rpcgen-objs)) $(common-objpfx)libc.a
$(+link)
rpcgen-cmd = $(dir $(word 2,$^))$(notdir $(word 2,$^))
@@ -100,21 +102,6 @@ $(sysconfdir)/rpc: etc.rpc
defines := $(defines) -D_PATH_RPC='"$(sysconfdir)/rpc"'
-# Build the `rpcsvc' library of XDR functions.
-
-lib: $(objpfx)librpcsvc.a
-
-$(objpfx)librpcsvc.a: $(addprefix $(objpfx),$(rpcsvc-objs))
-# This library is small enough that it's simplest to recreate the archive
-# from scratch each time.
- rm -f $@
-ifdef objdir
- cd $(objdir); $(AR) cq$(verbose) $@ $(^:$(objpfx)%=%)
-else
- $(AR) cq$(verbose) $@ $^
-endif
- $(RANLIB) $@
-
# Generate the rpcsvc headers with rpcgen.
$(objpfx)rpcsvc/%.h: rpcsvc/%.x $(objpfx)rpcgen
$(make-target-directory)