From: Steve Chamberlain Date: Wed, 8 May 1991 19:07:10 +0000 (+0000) Subject: Added make dep rule. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5c6b4b3b58effba6d4a89c71bf32c8daca005c6;p=binutils-gdb.git Added make dep rule. When configure is used, the created makefile will have all the dependencies filled in. --- diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 03f896f2e20..8d05cfa270e 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -25,7 +25,7 @@ RANLIB = ranlib AR = INCDIR = $(srcdir)/../include CSEARCH = -I$(INCDIR) - +DEP = mkdep #### host and target dependent Makefile fragments come in here. ### @@ -112,26 +112,7 @@ saber: #suppress 590 on abfd #setopt load_flags $(CFLAGS) #load $(CFILES) -m88k-bcs.o : m88k-bcs.c -ieee.o : ieee.c -srec.o : srec.c -oasys.o : oasys.c - -archive.o : archive.c libbfd.h $(BFD_H) $(SYSDEP_H) -archures.o : archures.c $(BFD_H) $(SYSDEP_H) archures.h -b.out.o : b.out.c libbfd.h $(BFD_H) $(SYSDEP_H) liba.out.h archures.h -m88k-bcs.o : m88k-bcs.c libbfd.h $(BFD_H) $(SYSDEP_H) libcoff.h coff-code.h archures.h -bfd.o : bfd.c libbfd.h $(BFD_H) $(SYSDEP_H) -cache.o : cache.c libbfd.h $(BFD_H) $(SYSDEP_H) -coff.o : coff.c -cplus-dem.o : cplus-dem.c -filemode.o : filemode.c -icoff.o : icoff.c libbfd.h $(BFD_H) $(SYSDEP_H) libcoff.h coff-code.h archures.h -libbfd.o : libbfd.c libbfd.h $(BFD_H) $(SYSDEP_H) -misc.o : misc.c -opncls.o : opncls.c libbfd.h $(BFD_H) $(SYSDEP_H) -sunos.o : sunos.c libbfd.h $(BFD_H) $(SYSDEP_H) liba.out.h -targets.o : targets.c libbfd.h $(BFD_H) $(SYSDEP_H) + #----------------------------------------------------------------------------- # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT @@ -189,4 +170,7 @@ Makefile: $(srcdir)/Makefile.in $(srcdir)/configure ./configure +norecurse \ +destdir=$(destdir) \ `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \ - $(host) +target=$(target)) + $(host) +target=$(target);) ; make dep + +dep: $(CFILES) + mkdep $(CFLAGS) $?