aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-10-16 09:25:59 +0000
committerRoland McGrath <roland@gnu.org>2005-10-16 09:25:59 +0000
commitaed48a2a23c7aaf5d363206fcf3ba8961f90ce83 (patch)
treef7dbd35574751ccd9b68d104a408888d468d0e7e /Makerules
parent809e3018b3604c524e933643c3a06864978dfc53 (diff)
downloadglibc-aed48a2a23c7aaf5d363206fcf3ba8961f90ce83.zip
glibc-aed48a2a23c7aaf5d363206fcf3ba8961f90ce83.tar.gz
glibc-aed48a2a23c7aaf5d363206fcf3ba8961f90ce83.tar.bz2
2005-10-16 Daniel Jacobowitz <dan@codesourcery.com>
Roland McGrath <roland@redhat.com> * Makerules [module-names] (extra-modules-build): New variable. ($(extra-modules-build:%=$(objpfx)%.so)): New static pattern rule. Depend on libc.so and libc_nonshared.a. * dlfcn/Makefile ($(test-modules)): Remove static pattern rule. * elf/Makefile (modules-names-nobuild): New variable, add filtmod1. ($(test-modules)): Remove static pattern rule.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makerules b/Makerules
index 3791559..cc8c3d8 100644
--- a/Makerules
+++ b/Makerules
@@ -665,14 +665,20 @@ include $(patsubst %,$(..)extra-lib.mk,$(extra-libs))
endif
-# The makefile may define $(modules-names) # to build additional
-# modules.
+# The makefile may define $(modules-names) to build additional modules.
+# These are built with $(build-module), except any in $(modules-names-nobuild).
ifdef modules-names
# extra-lib.mk is included once for each extra lib to define rules
# to build it, and to add its objects to the various variables.
# During its evaluation, $(lib) is set to the name of the library.
extra-modules-left := $(modules-names)
include $(patsubst %,$(..)extra-modules.mk,$(modules-names))
+
+extra-modules-build := $(filter-out $(modules-names-nobuild),$(modules-names))
+$(extra-modules-build:%=$(objpfx)%.so): $(objpfx)%.so: \
+ $(objpfx)$(module).os $(common-objpfx)shlib.lds \
+ $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a
+ $(build-module)
endif
+depfiles := $(sources:.c=.d) \