From e57931a8261389d27817543952232eab48469475 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 3 May 1999 08:46:13 +0000 Subject: Update. 1999-05-02 Andreas Schwab * sunrpc/Makefile: Generate dependencies for all flavors of librpcsvc objects. (rpcgen-cmd): Pass -Y flag here and remove it from the macro invocations. 1999-05-02 Andreas Schwab * elf/dlopenold.c: Move #if down after includes to get dependencies right. 1999-05-01 Andreas Schwab * sysdeps/generic/bzero.c: Undefine __bzero. --- sunrpc/Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'sunrpc') diff --git a/sunrpc/Makefile b/sunrpc/Makefile index a661084014..1ce03d7d98 100644 --- a/sunrpc/Makefile +++ b/sunrpc/Makefile @@ -123,9 +123,9 @@ $(objpfx)rpcgen: $(addprefix $(objpfx),$(rpcgen-objs)) \ $(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit) $(+link) -# Tell rpcgen that it should unset LD_LIBRARY_PATH before executing the -# preprocessor. -rpcgen-cmd = $(built-program-cmd) +# Tell rpcgen where to find the C preprocessor. +rpcgen-cmd = $(built-program-cmd) -Y `$(CC) -print-file-name=cpp | \ + sed "s|/cpp$$||"` # Install the rpc data base file. $(inst_sysconfdir)/rpc: etc.rpc $(+force) @@ -139,8 +139,7 @@ $(rpcsvc:%.x=$(objpfx)rpcsvc/%.h): $(objpfx)rpcsvc/%.h: $(objpfx)rpcsvc/%.stmp $(objpfx)rpcsvc/%.stmp: rpcsvc/%.x $(objpfx)rpcgen $(make-target-directory) -@rm -f ${@:stmp=T} $@ - $(rpcgen-cmd) -Y `$(CC) -print-file-name=cpp | sed "s|/cpp$$||"` \ - -h $< -o ${@:stmp=T} + $(rpcgen-cmd) -h $< -o ${@:stmp=T} $(move-if-change) $(@:stmp=T) $(@:stmp=h) touch $@ @@ -149,16 +148,19 @@ $(rpcsvc:%.x=$(objpfx)x%.c): $(objpfx)x%.c: $(objpfx)x%.stmp @: $(objpfx)x%.stmp: rpcsvc/%.x $(objpfx)rpcgen -@rm -f ${@:stmp=T} $@ - $(rpcgen-cmd) -Y `$(CC) -print-file-name=cpp | sed "s|/cpp$$||"` \ - -c $< -o ${@:stmp=T} + $(rpcgen-cmd) -c $< -o ${@:stmp=T} $(move-if-change) $(@:stmp=T) $(@:stmp=c) touch $@ # The generated source files depend on the corresponding generated headers. # Gratuitous dependency on generated .c file here just gets it mentioned to # avoid being an intermediate file and getting removed. -$(rpcsvc:%.x=$(objpfx)x%.o): $(objpfx)x%.o: $(objpfx)x%.c $(objpfx)rpcsvc/%.h \ +define o-iterator-doit +$(rpcsvc:%.x=$(objpfx)x%$o): $(objpfx)x%$o: $(objpfx)x%.c $(objpfx)rpcsvc/%.h \ $(objpfx)rpc-proto.d +endef +object-suffixes-left = $(filter-out $(librpcsvc-inhibit-o),$(object-suffixes)) +include $(o-iterator) ifndef no_deps -include $(objpfx)rpc-proto.d -- cgit 1.4.1