summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-19 00:09:19 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-19 00:09:19 +0000
commit115a4a29181d752ce925ebf9707977b081e91ad5 (patch)
tree3767a7700c8a883fdd659e494e4fafe127764a0d
parent91871af57d44f462c76b1891b5fe67a804b7e233 (diff)
(%.d: %.c): Include the _pic.o files if we are making a library.
-rw-r--r--Makeconf7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makeconf b/Makeconf
index 3ff9fa37..d87a71c6 100644
--- a/Makeconf
+++ b/Makeconf
@@ -279,7 +279,6 @@ include $(subst User.o,.miguh_d,$(filter %User.o,$(OBJS))) /dev/null
# For each .o file we need a .d file.
include $(subst .o,.d,$(OBJS)) /dev/null
-
# Here is how to build those dependency files
# Dependencies for fooServer.c files.
@@ -302,9 +301,15 @@ include $(subst .o,.d,$(OBJS)) /dev/null
sed -e 's/User\.c/_U\.h/' -e 's/migu_d/miguh_d/' < $< > $@
# Here is how to make .d files from .c files
+ifeq ($(makemode),library)
+%.d: %.c
+ (set -e; $(CC) $(CFLAGS) $(CPPFLAGS) -M -MG $< | \
+ sed -e 's/$*\.o:/$*.o $*_pic.o $@:/' > $@)
+else
%.d: %.c
(set -e; $(CC) $(CFLAGS) $(CPPFLAGS) -M -MG $< | \
sed -e 's/$*\.o:/$*.o $@:/' > $@)
+endif
# Here is how to make .d files from .S files
%.d: %.S