# HG changeset patch # User jwe # Date 847492747 0 # Node ID 269ecd74cebea8ce4e37ba35fe194b934b7b8e65 # Parent d4eb39779b88995622422aceb02c0182de9d0d7a [project @ 1996-11-08 22:39:07 by jwe] Makefile.in diff -r d4eb39779b88 -r 269ecd74cebe libcruft/ChangeLog --- a/libcruft/ChangeLog Fri Nov 08 22:37:42 1996 +0000 +++ b/libcruft/ChangeLog Fri Nov 08 22:39:07 1996 +0000 @@ -1,5 +1,9 @@ Fri Nov 8 09:55:40 1996 John W. Eaton + * Makefile.in (libcruft.a): Delete target. + * Makerules.in, Makefile.in: Use real archive rules to build + libcruft.a in parts. + * Makefile.in (install): Use $(INSTALL_PROGRAM) for installing shared library. diff -r d4eb39779b88 -r 269ecd74cebe libcruft/Makerules.in --- a/libcruft/Makerules.in Fri Nov 08 22:37:42 1996 +0000 +++ b/libcruft/Makerules.in Fri Nov 08 22:39:07 1996 +0000 @@ -2,6 +2,9 @@ # # Common rules for octave's libcruft directories. # +# XXX FIXME XXX -- assumes that the libcruft directory tree is only +# one level deep. +# # John W. Eaton # jwe@bevo.che.wisc.edu # University of Wisconsin-Madison @@ -25,10 +28,32 @@ CWD = $(shell pwd) THISDIR = $(notdir $(CWD)) -all: stamp-picdir $(CRUFT_OBJ) $(CRUFT_PICOBJ) \ - $(SPECIAL_DEPEND) $(SPECIAL_PICDEPEND) +LIBCRUFT = ../libcruft.a + +LIBCRUFT_OBJS = $(CRUFT_OBJ) $(SPECIAL_DEPEND) + +LIBCRUFT_DEPS = $(LIBCRUFT)($(LIBCRUFT_OBJS)) + +all: stamp-picdir $(LIBCRUFT) $(CRUFT_PICOBJ) $(SPECIAL_PICDEPEND) .PHONY: all +# Cancel the default action for when an archive member is out of +# date. Instead of inserting the out of date members individually, we +# will insert them in batches, even if some of them are up to date. +# This is much faster for a large archive like libcruft.a. + +(%) : % + @true + +$(LIBCRUFT): $(LIBCRUFT_DEPS) + $(AR) $(ARFLAGS) $(LIBCRUFT) $(LIBCRUFT_OBJS) + $(RANLIB) $(LIBCRUFT) + +# This is necessary, otherwise we won't have any .o files left when it +# comes time to insert them in the archive. + +.PRECIOUS: $(LIBCRUFT_OBJS) + stamp-picdir: if [ "$(SHARED_LIBS)" = true ]; then \ if [ -n "$(FPICFLAG)" ]; then \