summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-14 07:55:39 +0000
committerRoland McGrath <roland@gnu.org>2002-06-14 07:55:39 +0000
commitf9759862e97f610b9b58485ec28d91b51d46684d (patch)
treeaf93906d8a2c9d7231c562f5beb4f64eaa8360ba /Makeconf
parent48f9afdbfaf498a849e6882feb6441940b9d5e73 (diff)
2002-06-14 Roland McGrath <roland@frob.com>
* Makeconf (cleantarg): Add $(libname).so.$(hurd-version). * Makeconf ($(patsubst %.o,%.d,$(filter %.o,$(OBJS)))): Give these dep files a dependency on $(INSTALLED_LOCAL_HEADERS).
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makeconf b/Makeconf
index 83a29316..0aaa9aab 100644
--- a/Makeconf
+++ b/Makeconf
@@ -150,7 +150,8 @@ ifeq ($(makemode),library)
linktarg := $(libname).so.$(hurd-version)
clean := yes
- cleantarg := $(linktarg) $(addprefix $(libname),.a _p.a _pic.a .so)
+ cleantarg := $(linktarg) $(addprefix $(libname),.a _p.a _pic.a \
+ .so .so.$(hurd-version))
targets := $(libname).a $(libname).so
ifneq ($(no_pic),t)
@@ -255,6 +256,8 @@ $(INSTALLED_LOCAL_HEADERS): ../$(local-installhdrsubdir)/%: ../config.make
echo '#include "../$(dir)/$*"' > $@
endif
libs: $(INSTALLED_LOCAL_HEADERS)
+# Make sure we make those before compiling, since -MG will be unhelpful.
+$(patsubst %.o,%.d,$(filter %.o,$(OBJS))): $(INSTALLED_LOCAL_HEADERS)
# The installed local headers referring to our own files will use
# relative names with ../$(dir) and make won't notice that's us.