From 115a4a29181d752ce925ebf9707977b081e91ad5 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 19 Jul 1995 00:09:19 +0000 Subject: (%.d: %.c): Include the _pic.o files if we are making a library. --- Makeconf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3