# HG changeset patch # User jwe # Date 827928494 0 # Node ID 91d7630f727af608daf7daec019793ebd235397a # Parent 809871abd06b7d5721557a6a9bae68882c1d5b04 [project @ 1996-03-27 12:04:06 by jwe] diff --git a/libcruft/Makefile.in b/libcruft/Makefile.in --- a/libcruft/Makefile.in +++ b/libcruft/Makefile.in @@ -64,7 +64,7 @@ $(AR) $(ARFLAGS) libcruft.a $(CRUFT_OBJ) $(RANLIB) libcruft.a -stamp-shared: +stamp-shared: $(CRUFT_PICOBJ) if $(SHARED_LIBS); then \ $(CXX) -shared -o libcruft.$(SHLEXT) $(CRUFT_PICOBJ) $(FLIBS); \ else true; fi diff --git a/libcruft/Makerules.in b/libcruft/Makerules.in --- a/libcruft/Makerules.in +++ b/libcruft/Makerules.in @@ -16,10 +16,16 @@ CRUFT_CSRC = $(patsubst %.f, %.c, $(CRUFT_BASE)) CRUFT_OBJ = $(patsubst %.f, %.o, $(CRUFT_BASE)) +ifeq ($(SHARED_LIBS), true) + ifdef FPICFLAG + CRUFT_PICOBJ := $(addprefix pic/, $(CRUFT_OBJ)) + endif +endif + CWD = $(shell pwd) THISDIR = $(notdir $(CWD)) -all: stamp-picdir $(CRUFT_OBJ) $(SPECIAL_DEPEND) +all: stamp-picdir $(CRUFT_OBJ) $(SPECIAL_DEPEND) $(CRUFT_PICOBJ) .PHONY: all stamp-picdir: