coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
coff-rs6000.o coff-h8300.o coff-h8500.o coff-z8k.o coff-we32k.o \
coff-mips.o coff-msym.o \
+ elf.o \
elf32.o elf32-sparc.o elf32-i386.o elf32-i860.o elf32-m68k.o \
elf32-hppa.o \
bout.o \
force:
install:
- -parent=`echo $(libdir)|sed -e 's@/[^/]*$$@@'`; \
- if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
- -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
$(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a
$(RANLIB) $(libdir)/libbfd.a
- -parent=`echo $(includedir)|sed -e 's@/[^/]*$$@@'`; \
- if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
- -if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; fi
- # Install BFD include file, and others that it needs. Install them
- # both in GCC's include directory, and in the system include dir
- # if configured as $(oldincludedir) -- which it usually isnt.
+# Install BFD include file, and others that it needs. Install them
+# both in GCC's include directory, and in the system include dir
+# if configured as $(oldincludedir) -- which it usually isnt.
$(INSTALL_DATA) bfd.h $(includedir)/bfd.h
$(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
$(INSTALL_DATA) $(INCDIR)/obstack.h $(includedir)/obstack.h
BFDIN_H= $(srcdir)/bfd-in2.h
-bfd.h: $(BFDIN_H) Makefile
- sed -e 's/@WORDSIZE@/$(WORDSIZE)/' < $(BFDIN_H) > bfd.h
+bfd.h: stmp-bfd.h ; @true
+
+stmp-bfd.h : $(BFDIN_H) Makefile
+ sed -e 's/@WORDSIZE@/$(WORDSIZE)/' < $(BFDIN_H) > bfd.h2
+ $(srcdir)/../move-if-change bfd.h2 bfd.h
+ touch stmp-bfd.h
headers:
(cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS))
- # Could really use a "copy-if-change"...
+# Could really use a "copy-if-change"...
cp $(docdir)/bfd.h bfd.h-new
$(srcdir)/../move-if-change bfd.h-new $(BFDIN_H)
cp $(docdir)/libbfd.h libbfd.h-new
$(INCDIR)/bout.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h
mipsbsd.o : mipsbsd.c bfd.h $(INCDIR)/obstack.h \
libbfd.h libaout.h
+elf.o : bfd.h $(INCDIR)/obstack.h
elf32.o : elf32.c elfcode.h libelf.h libbfd.h bfd.h \
$(INCDIR)/obstack.h
elf32-sparc.o : elf32-sparc.c libelf.h libbfd.h bfd.h \
RANLIB = ranlib
CFLAGS = -g
+CC_FOR_BUILD = $(CC)
+
#### Host, target, and site specific Makefile fragments come in here.
###
dvi: bfd.dvi
install-info: info
- -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
- if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
- -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
for i in *.info* ; do \
$(INSTALL_DATA) $$i $(infodir)/$$i ; \
done
docs: $(MKDOC) protos bfd.info bfd.dvi bfd.ps
-$(MKDOC): chew.c
- $(CC) $(CFLAGS) -o $(MKDOC) $(H_CFLAGS) -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(srcdir)/chew.c $(LOADLIBES)
+$(MKDOC): chew.o
+ $(CC_FOR_BUILD) $(CFLAGS) -o $(MKDOC) $(H_CFLAGS) chew.o $(LOADLIBES)
+
+chew.o: chew.c
+ $(CC_FOR_BUILD) $(CFLAGS) -c $(H_CFLAGS) -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(srcdir)/chew.c
protos: libbfd.h libcoff.h bfd.h
$(srcdir)/../cpu-h8300.c \
$(srcdir)/../cpu-i960.c \
$(srcdir)/../archures.c \
- $(srcdir)/../elf32.c \
+ $(srcdir)/../elfcode.h \
$(MKDOC)
cat $(srcdir)/../libbfd-in.h >libbfd.h
$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../init.c >>libbfd.h
$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cpu-h8300.c >>libbfd.h
$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../cpu-i960.c >>libbfd.h
$(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../archures.c >>libbfd.h
- $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../elf32.c >>libbfd.h
+ $(MKDOC) -i -f $(srcdir)/proto.str < $(srcdir)/../elfcode.h >>libbfd.h
libcoff.h: $(srcdir)/../libcoff-in.h \
$(srcdir)/../coffcode.h \
clean-info: clean
mostlyclean:
- rm -rf *.log *.ps *~* *.dvi *# $(MKDOC)
+ rm -rf *.log *.ps *~* *.dvi *# $(MKDOC) *.o
clean: mostlyclean
rm -rf $(STAGESTUFF)
$(MAKEINFO) -o bfd.info $(srcdir)/bfd.texinfo
bfd.dvi: $(DOCFILES) bfd.texinfo
- $(TEXI2DVI) $(srcdir)/bfd.texino
+ $(TEXI2DVI) $(srcdir)/bfd.texinfo
bfd.ps: bfd.dvi
dvips bfd -o