changeset 2490:eb3e02c0f5e2

[project @ 1996-11-08 22:39:25 by jwe]
author jwe
date Fri, 08 Nov 1996 22:39:25 +0000
parents 269ecd74cebe
children d47834a272c2
files libcruft/Makefile.in
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libcruft/Makefile.in
+++ b/libcruft/Makefile.in
@@ -32,7 +32,7 @@
 
 DISTFILES = Makefile.in ChangeLog Makerules.in $(SOURCES) STOP.patch
 
-all: $(SUBDIRS) libcruft.a stamp-shared
+all: $(SUBDIRS) stamp-shared
 .PHONY: all
 
 $(SUBDIRS):
@@ -40,10 +40,13 @@
 	cd $@; $(MAKE) all
 .PHONY: $(SUBDIRS)
 
+# XXX FIXME XXX -- this should build the shared library directly from
+# a normal archive file (created from PIC code, though).
+
 MISC_OBJ := misc/machar.o misc/dostop.o misc/f77-extern.o misc/lo-error.o
 
 CRUFT_FSRC := $(foreach dir, $(SUBDIRS), $(wildcard $(srcdir)/$(dir)/*.f))
-CRUFT_OBJ2 := $(patsubst $(srcdir)/%, %, $(CRUFT_FSRC))
+gCRUFT_OBJ2 := $(patsubst $(srcdir)/%, %, $(CRUFT_FSRC))
 CRUFT_OBJ1 := $(patsubst %.f, %.o, $(CRUFT_OBJ2))
 CRUFT_OBJ := $(CRUFT_OBJ1) $(MISC_OBJ)
 
@@ -58,11 +61,6 @@
   endif
 endif
 
-libcruft.a: $(CRUFT_OBJ)
-	rm -f libcruft.a
-	$(AR) $(ARFLAGS) libcruft.a $(CRUFT_OBJ)
-	$(RANLIB) libcruft.a
-
 stamp-shared: $(CRUFT_PICOBJ)
 	if $(SHARED_LIBS); then \
 	  $(CC) -shared -o libcruft.$(SHLEXT) $(CRUFT_PICOBJ) \