summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-09-08 08:38:28 +0000
committerThomas Bushnell <thomas@gnu.org>1999-09-08 08:38:28 +0000
commit39b3cbd4b7fcfe5e9f530ea30c9d9b04e617ab4e (patch)
tree19513bf72927c5334c1cf8fcedd680ccf2bccf41 /Makeconf
parentae61a2d341f870d806ed318234e53894396865e3 (diff)
1999-09-08 Thomas Bushnell, BSG <tb@mit.edu>
* Makeconf (cleantarg): Add `$(libname)_pic.a'. [$(makemode) = library] (targets): Likewise. ($(libname)_pic.a): New rule. ($(libdir)/$(libname)_pic.a): Extended from the previous _p.a and .a rules. Submitted by Marcus Brinkmann (Marcus.Brinkmann@ruhr-uni-bochum.de).
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf23
1 files changed, 18 insertions, 5 deletions
diff --git a/Makeconf b/Makeconf
index ba114c65..aaafbb20 100644
--- a/Makeconf
+++ b/Makeconf
@@ -128,14 +128,22 @@ endif
ifeq ($(makemode),library)
linktarg := $(libname).so.$(hurd-version)
clean := yes
- cleantarg := $(libname).a $(libname)_p.a $(libname).so $(linktarg)
+ cleantarg := $(libname).a $(libname)_p.a $(libname).so $(libname)_pic.a $(linktarg)
ifndef installhdrsubdir
installhdrsubdir = hurd
endif
- ifeq ($(no_prof),t)
- targets := $(libname).a $(libname).so
+ ifeq ($(no_pic),t)
+ ifeq ($(no_prof),t)
+ targets := $(libname).a $(libname).so
+ else
+ targets := $(libname).a $(libname).so $(libname)_p.a
+ endif
else
- targets := $(libname).a $(libname).so $(libname)_p.a
+ ifeq ($(no_prof),t)
+ targets := $(libname).a $(libname).so $(libname)_pic.a
+ else
+ targets := $(libname).a $(libname).so $(libname)_pic.a $(libname)_p.a
+ endif
endif
endif
@@ -203,7 +211,7 @@ $(INSTALLED_LOCAL_HEADERS): $(top_srcdir)/$(installhdrsubdir)/%:
endif
libs: $(INSTALLED_LOCAL_HEADERS)
-$(addprefix $(libdir)/$(libname),_p.a .a): $(libdir)/%: %
+$(addprefix $(libdir)/$(libname),_p.a .a _pic.a): $(libdir)/%: %
$(INSTALL_DATA) $< $@
$(RANLIB) $@
@@ -281,6 +289,11 @@ $(libname)_p.a: $(patsubst %.o,%_p.o,$(OBJS))
$(AR) r $@ $^
$(RANLIB) $@
+$(libname)_pic.a: $(patsubst %.o,%_pic.o,$(OBJS))
+ rm -f $(libname)_pic.a
+ $(AR) r $@ $^
+ $(RANLIB) $@
+
# The shared object needs to be findable in the build directory as
# libfoo.so.VERSION (i.e. its soname) so that ld finds it when looking
# for dependencies of other shared libraries.