]> Git Repo - binutils.git/blobdiff - bfd/Makefile.in
Fixes related to handling of C++ methods (handle destructors
[binutils.git] / bfd / Makefile.in
index 127f19e0450756ce6126ab4ea8da6e8452d8481d..ae3f44c914755cd762b7ee863b016f097943ff4a 100644 (file)
@@ -1,5 +1,5 @@
 #    Makefile template for Configure for the BFD library.
-#    Copyright (C) 1990-1991 Free Software Foundation, Inc.
+#    Copyright (C) 19901991 Free Software Foundation, Inc.
 #    Written by Cygnus Support.
 # 
 # This file is part of BFD, the Binary File Descriptor library.
 # $Id$
 
 srcdir = .
-destdir = /usr/local
-libdir = $(destdir)/lib
+ddestdir = /usr/local
+libdir = $(ddestdir)/lib
+docdir = $(srcdir)/doc
 
 RANLIB = ranlib
 AR = ar
 AR_FLAGS = clq
 INCDIR = $(srcdir)/../include
-CSEARCH = -I$(INCDIR)
+CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
 DEP = mkdep
+MINUS_G=-g
+
+
 #### host and target dependent Makefile fragments come in here.
 ###
 
 TARGETLIB = libbfd.a
-CFLAGS = -g $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
+CFLAGS = $(MINUS_G) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
 
 
 BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
-       archures.o core.o section.o format.o syms.o reloc.o
+       archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o
+
+BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
+       cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o
 
-BFD_BACKENDS = oasys.o ieee.o srec.o \
-       aout64.o aout32.o demo64.o sunos.o newsos3.o bout.o \
-       icoff.o amdcoff.o m68kcoff.o i386coff.o m88k-bcs.o ecoff.o \
-       # trad-core.o 
+BFD_BACKENDS = oasys.o ieee.o srec.o elf.o \
+       aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
+       coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
+       coff-mips.o coff-rs6000.o
+
+OPTIONAL_BACKENDS = trad-core.o
 
 BFD_H=$(INCDIR)/bfd.h
-SYSDEP_H=$(INCDIR)/sysdep.h
 
 # C source files that correspond to .o's.
 CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
-        i386coff.c aout64.c aout32.c sunos.c demo64.c icoff.c srec.c \
-        oasys.c ieee.c m68kcoff.c amdcoff.c \
-        format.c section.c core.c syms.c reloc.c \
-        m88k-bcs.c ecoff.c trad-core.c newsos3.c bout.c
+        coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \
+        oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c \
+        format.c section.c core.c syms.c reloc.c init.c ctor.c \
+        coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c bout.c elf.c \
+       cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
+       cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c 
 
 STAGESTUFF = $(TARGETLIB) $(OFILES)
 
 all: $(TARGETLIB) 
 
-# XDEPFILES comes from the host config; TDEPFILES from the target config.
-OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(XDEPFILES) $(TDEPFILES)
+# HDEPFILES comes from the host config; TDEPFILES from the target config.
+OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
 
 $(TARGETLIB): $(OFILES)
         rm -f $(TARGETLIB)
         $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
         $(RANLIB) $(TARGETLIB)
 
+# When compiling targets.c, supply the default target info from configure.
+targets.o: targets.c
+       $(CC) $(CFLAGS) -c $(TDEFAULTS) $<
+
 stage1: force
        - mkdir stage1
        - mv -f $(STAGESTUFF) stage1
@@ -107,7 +121,17 @@ clean:
 clobber realclean: clean
        rm -f libbfd.a TAGS
 
-$(BFD_LIBS) $(BFD_BACKENDS):  libbfd.h $(BFD_H)
+# Mark everything as depending on config.status, since the timestamp on
+# sysdep.h might actually move backwards if we reconfig and relink it
+# to a different hosts/h-xxx.h file.  This will force a recompile anyway.
+RECONFIG = config.status
+$(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG)
+$(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG)
+$(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
+$(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
+
+# Get around a Sun Make bug in SunOS 4.1.1 with VPATH
+cpu-i386.o:cpu-i386.c
 
 saber:
        #suppress 65 on bfd_map_over_sections 
@@ -156,8 +180,9 @@ roll:
 force:
 
 install:
-       install -c libbfd.a $(libdir)
-       $(RANLIB) $(libdir)/libbfd.a
+       cp libbfd.a $(libdir)/libbfd.a.new
+       $(RANLIB) $(libdir)/libbfd.a.new
+       mv -f $(libdir)/libbfd.a.new $(libdir)/libbfd.a
 
 # Target to uncomment host-specific lines in this makefile.  Such lines must
 # have the following string beginning in column 1: #__<hostname>__#
@@ -181,85 +206,97 @@ make:
        echo                                                    >>Makefile ; \
        sed "s/^#__$(HOST)__#//" < Makefile.old                 >>Makefile
 
-Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
-       (cd $(srcdir) ; \
-               ./configure +norecurse \
-               +destdir=$(destdir) \
-               `if [ "$(srcdir)" != "." ] ; then echo +subdirs; fi` \
-               $(host) +target=$(target);)
+Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
+       $(SHELL) ./config.status
 
 dep: $(CFILES)
        mkdep $(CFLAGS) $?
 
 
-# Stuff to make the documentation for bfd.
-#
-# make docs
-#      rebuilds the documentation. Has to be done when the source is
-#      modified until I work out how to do this properly
-# 
-# make docs headers
-#      rebuilds the header files from the source
-#
-# make docs texdoc
-#      rebuilds the bfd.dvi manual
-#
-# make docs texinfo
-#      rebuilds the bfdinfo manual
-
-
-.SUFFIXES: .texi .o .c .h .p .ip
 
-.c.texi:
-       scanit $< 
-
-.h.texi:
-       scanit $< 
-
-.c.p:
-       scanph $<
-
-.h.p:
-       scanph $<
-
-.c.ip:
-       scanph -i $<
-
-
-DSRC=$(CFILES)
-
-docs: syms.texi bfd.texi cache.texi format.texi section.texi \
-       archive.texi core.texi libbfd.texi archures.texi reloc.texi \
-        opncls.texi targets.texi aoutx.texi coffcode.texi
-
-
-PROTOS = opncls.p archures.p libbfd.p section.p syms.p bfd.p \
-       archive.p reloc.p targets.p format.p coffcode.p core.p
-
-IPROTOS = libbfd.ip cache.ip 
-
-headers : $(PROTOS) $(IPROTOS)
+headers:
+       cp $(srcdir)/bfd-in.h $(docdir)
+       cp $(srcdir)/libbfd-in.h $(docdir)
+       cp $(srcdir)/libcoff-in.h $(docdir)
+       (cd $(docdir); $(MAKE) protos)
        # Rebuild prototypes in bfd.h
-       mv $(BFD_H) $(BFD_H).old
-       sed -f $(srcdir)/intobfd $(BFD_H).old > $(BFD_H)
-       # and libbfd.h
-       mv $(srcdir)/libbfd.h libbfd.h.old
-       sed -f $(srcdir)/tolibbfd libbfd.h.old >$(srcdir)/libbfd.h
-       # and libcoff.h
-       mv $(srcdir)/libcoff.h libcoff.h.old
-       sed -f $(srcdir)/tolibcoff libcoff.h.old >$(srcdir)/libcoff.h
-
-
-texinfo:
-       makeinfo +no-validate bfd.texinfo
-
-texdoc:
-       tex bfd.texinfo
-       texindex bfd.??
-       tex bfd.texinfo
-
-psdoc:
-       dvips -f bfd.dvi >bfd.texi.ps
-       
-quickdoc: $(DSRC) docs
-       tex bfd.texinfo
+       cp $(docdir)/bfd.h $(BFD_H)
+       cp $(docdir)/libbfd.h $(srcdir)/libbfd.h
+       cp $(docdir)/libcoff.h $(srcdir)/libcoff.h
+       rm -f $(docdir)/bfd-in.h 
+       rm -f $(docdir)/libbfd-in.h 
+       rm -f $(docdir)/libcoff-in.h 
+
+bfd.info:
+       ( cd $(docdir); $(MAKE) bfd.info)
+
+bfd.dvi:
+       (cd $(docdir); $(MAKE) bfd.dvi)
+
+bfd.ps: 
+       (cd $(docdir); $(MAKE) bfd.ps)
+
+# What appears below is generated by a hacked mkdep using gcc -MM.
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
+
+libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
+opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
+bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
+archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/ar.h $(INCDIR)/ranlib.h 
+targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
+cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
+archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h 
+coff-i386.o : coff-i386.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/coff-i386.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
+aout64.o : aout64.c 
+aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
+  $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout64.h \
+  $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def $(INCDIR)/ar.h 
+sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
+  libaout.h libbfd.h $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h \
+  $(INCDIR)/stab.def $(INCDIR)/ar.h 
+demo64.o : demo64.c 
+coff-i960.o : coff-i960.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/coff-i960.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
+srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
+oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/oasys.h liboasys.h 
+ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/ieee.h libieee.h 
+coff-m68k.o : coff-m68k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/coff-m68k.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
+coff-a29k.o : coff-a29k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/coff-a29k.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
+coff-rs6000.o: coff-rs6000.c  $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/coff-rs6000.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
+format.o : format.c $(INCDIR)/bfd.h \
+  $(INCDIR)/obstack.h libbfd.h 
+section.o : section.c $(INCDIR)/bfd.h \
+  $(INCDIR)/obstack.h libbfd.h 
+core.o : core.c $(INCDIR)/bfd.h \
+  $(INCDIR)/obstack.h libbfd.h 
+syms.o : syms.c $(INCDIR)/bfd.h \
+  $(INCDIR)/obstack.h libbfd.h 
+reloc.o : reloc.c $(INCDIR)/bfd.h \
+  $(INCDIR)/obstack.h libbfd.h 
+coff-m88k.o : coff-m88k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/coff-m88k.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
+coff-mips.o : coff-mips.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/coff-mips.h $(INCDIR)/internalcoff.h libcoff.h trad-core.h \
+  coffcode.h 
+trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
+  libbfd.h libaout.h 
+newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
+  $(INCDIR)/ar.h libaout.h 
+i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
+  $(INCDIR)/ar.h libaout.h 
+bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/bout.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def libaout.h 
+
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
+
This page took 0.032665 seconds and 4 git commands to generate.