diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-07-19 00:09:19 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-07-19 00:09:19 +0000 |
commit | 115a4a29181d752ce925ebf9707977b081e91ad5 (patch) | |
tree | 3767a7700c8a883fdd659e494e4fafe127764a0d /Makeconf | |
parent | 91871af57d44f462c76b1891b5fe67a804b7e233 (diff) |
(%.d: %.c): Include the _pic.o files if we are making a library.
Diffstat (limited to 'Makeconf')
-rw-r--r-- | Makeconf | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |