]> Git Repo - binutils.git/blobdiff - bfd/Makefile.in
Replace calls to sort with shell code
[binutils.git] / bfd / Makefile.in
index ce8491301d86344b19086d83245e8233d451b608..34546bbdf55776d38799069f6c5d8114077cb433 100644 (file)
@@ -69,47 +69,44 @@ TARGETLIB = libbfd.a
 # bfd.h goes here, for now
 BFD_H = bfd.h
 
-# Some of these files should be in BFD*_BACKENDS below, but gdb
+# Some of these files should be in BFD*_BACKENDS below, but some programs
 # won't link without them.  So, in order for some of the minimal-bfd
 # hacks to work, they're also included here for now.
-#      coff-mips.o coff-msym.o
+#      gdb: ecoff.o
+#      objdump: elf.o
 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 init.o \
-       ctor.o seclet.o coffgen.o reloc16.o coff-mips.o coff-msym.o
+       ctor.o seclet.o coffgen.o ecoff.o reloc16.o elf.o
 
 ALL_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 cpu-hppa.o \
        cpu-z8k.o cpu-we32k.o cpu-h8500.o cpu-alpha.o cpu-sh.o
 
 BFD32_BACKENDS = \
-       elf.o \
        elf32.o elf32-sparc.o elf32-i386.o elf32-i860.o elf32-m68k.o \
        elf32-hppa.o elf32-mips.o elf32-m88k.o elf32-gen.o \
        nlm.o \
-       nlm32.o nlm32-gen.o \
+       nlm32.o nlm32-gen.o nlm32-i386.o \
        aout32.o sunos.o newsos3.o mipsbsd.o aout-adobe.o \
        i386aout.o i386bsd.o i386linux.o i386lynx.o \
-       hp300hpux.o bout.o \
-       coff-i960.o coff-a29k.o coff-m68k.o coff-m68k-un.o \
+       hp300bsd.o hp300hpux.o bout.o \
+       coff-i960.o coff-a29k.o coff-m68k.o coff-u68k.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 coff-alpha.o coff-sh.o \
+       coff-mips.o coff-sh.o \
        hppa.o oasys.o ieee.o srec.o \
        stab-syms.o
 
 BFD64_BACKENDS = \
        elf64.o elf64-gen.o \
        nlm64.o nlm64-gen.o \
-       aout64.o demo64.o
+       aout64.o demo64.o coff-alpha.o
 
-OPTIONAL_BACKENDS = trad-core.o
+OPTIONAL_BACKENDS = trad-core.o sco-core.o aix386-core.o hpux-core.o
 
 # These are defined by configure.in:
 # WORDSIZE=32
 # BFD_BACKENDS = $(BFD32_BACKENDS)
-# Change this (to MINIMIZE=1) to save space in executables.
-# Currently, all this does is control the target_vector in targets.c.
-# MINIMIZE=0
 
 all:
 
@@ -139,8 +136,8 @@ FLAGS_TO_PASS = \
 CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \
         archures.c coff-i386.c aout64.c aout32.c sunos.c demo64.c \
         coff-i960.c srec.c tekhex.c oasys.c ieee.c \
-        coff-m68k.c coff-m68k-un.c \
-        coff-a29k.c coff-rs6000.c coff-msym.c coffgen.c format.c \
+        ecoff.c coff-m68k.c coff-u68k.c \
+        coff-a29k.c coff-rs6000.c coffgen.c format.c \
         section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c \
         seclet.c coff-m88k.c coff-mips.c coff-sh.c trad-core.c newsos3.c \
         i386aout.c i386linux.c bout.c aout-adobe.c coff-we32k.c \
@@ -151,9 +148,9 @@ CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \
         elf32.c elf32-sparc.c elf32-i386.c elf32-i860.c elf32-m68k.c \
         elf32-hppa.c elf32-m88k.c elf32-mips.c elf32-gen.c \
         elf64.c elf64-gen.c \
-        nlm32.c nlm32-gen.c nlm64.c nlm64-gen.c \
+        nlm32.c nlm32-gen.c nlm32-i386.c nlm64.c nlm64-gen.c \
         coff-alpha.c cpu-alpha.c \
-        hp300hpux.c i386lynx.c
+        hp300bsd.c hp300hpux.c i386lynx.c
 
 STAGESTUFF = $(TARGETLIB) $(OFILES)
 
@@ -175,16 +172,20 @@ clean-info:
 install-info: force
        @$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
 
-# HDEPFILES comes from the host config; TDEPFILES from the target config.
+# Various kinds of .o files to put in libbfd.a:
+# BFD_LIBS     Generic routines, always needed.
+# BFD_BACKENDS Routines the configured targets need.
+# BFD_MACHINES Architecture-specific routines the configured targets need.
+# HDEPFILES    Routines the host needs, regardless of target.
+# TDEPFILES    Routines the target needs, regardless of host.
 OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
 
 ofiles : Makefile
-       rm -f ofiles2 ofiles ofiles3
-       cp /dev/null ofiles2
+       rm -f ofiles
        f=""; \
        for i in $(OFILES) ; do \
          case " $$f " in \
-           "* $$i *") ;; \
+           *" $$i "*) ;; \
            *) f="$$f $$i" ;; \
          esac ; \
        done ; \
@@ -201,10 +202,10 @@ $(TARGETLIB): $(OFILES) ofiles
 
 
 targets.o: targets.c Makefile
-       $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) -DMINIMIZE=$(MINIMIZE) $(TDEFAULTS) $<
+       $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $(TDEFAULTS) $<
 
 archures.o: archures.c Makefile
-       $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) -DMINIMIZE=$(MINIMIZE) $(TDEFAULTS) $<
+       $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $(TDEFAULTS) $<
 
 subdir_do: force
        @for i in $(DODIRS); do \
@@ -223,11 +224,11 @@ TAGS: force
 do_mostlyclean:
        rm -f *.o *~ core *.E *.p *.ip aout-params.h gen-aout
 do_clean: do_mostlyclean
-       rm -f libbfd.a TAGS bfd.h stmp-bfd.h
+       rm -f libbfd.a TAGS bfd.h stmp-bfd.h ofiles
 do_distclean: do_clean
        rm -f Makefile config.status sysdep.h
 do_realclean: do_distclean
-       rm -f $(srcdir)/libcoff.h $(srcdir)/libbfd.h $(BFDIN_H)
+       rm -f $(srcdir)/libcoff.h $(srcdir)/libbfd.h $(srcdir)/bfd-in2.h
 
 mostlyclean: do_mostlyclean
        $(MAKE) subdir_do DO=mostlyclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
@@ -310,19 +311,16 @@ install:
        $(INSTALL_DATA) $(BFD_H) $(includedir)/bfd.h
        $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
        $(INSTALL_DATA) $(INCDIR)/obstack.h $(includedir)/obstack.h
-       -if [ -z "$(oldincludedir)" ] ; then true ; \
-        else if [ -d $(oldincludedir) ] ; then true ; \
-             else mkdir $(oldincludedir) ; \
-             fi ; \
-             $(INSTALL_DATA) $(BFD_H)      $(oldincludedir)/bfd.h;\
-             $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(oldincludedir)/ansidecl.h;\
-             $(INSTALL_DATA) $(INCDIR)/obstack.h  $(oldincludedir)/obstack.h;\
-        fi
-       @$(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
+       -if test -z "$(oldincludedir)"; then true; else \
+       test -d $(oldincludedir) || mkdir $(oldincludedir); \
+       $(INSTALL_DATA) $(BFD_H) $(oldincludedir)/bfd.h; \
+       $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(oldincludedir)/ansidecl.h; \
+       $(INSTALL_DATA) $(INCDIR)/obstack.h $(oldincludedir)/obstack.h; \
+       @$(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS); \
+       fi
 
-
-Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
-       $(SHELL) ./config.status
+Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
+       $(SHELL) config.status
 
 dep: $(CFILES)
        mkdep $(CFLAGS) $?
@@ -342,19 +340,19 @@ $(BFD_H): stmp-bfd.h ; @true
 
 # The file ../include/bfd.h is from earlier attempts to get this right.
 # If the file is still there, kill it.
-stmp-bfd.h : $(BFDIN_H) Makefile
-       rm -f bfd.h2 64 ../include/bfd.h
+stmp-bfd.h : $(srcdir)/bfd-in2.h Makefile
+       rm -f bfd.h-new 64 ../include/bfd.h
        -grep HOST_64_BIT sysdep.h > 64
-       sed -e 's/@WORDSIZE@/$(WORDSIZE)/' -e '/64-bit.*sysdep.h/ r 64' < $(BFDIN_H) > bfd.h2
-       $(srcdir)/../move-if-change bfd.h2 $(BFD_H)
+       sed -e 's/@WORDSIZE@/$(WORDSIZE)/' -e '/64-bit.*sysdep.h/ r 64' < $(srcdir)/bfd-in2.h > bfd.h-new
+       $(srcdir)/../move-if-change bfd.h-new $(BFD_H)
        rm -f 64
        touch stmp-bfd.h
 
 # Could really use a "copy-if-change"...
 headers:
        (cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS))
-       cp $(docdir)/bfd.h bfd.h-new
-       $(srcdir)/../move-if-change bfd.h-new $(BFDIN_H)
+       cp $(docdir)/bfd.h bfd-in2.h-new
+       $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
        cp $(docdir)/libbfd.h libbfd.h-new
        $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
        cp $(docdir)/libcoff.h libcoff.h-new
@@ -377,7 +375,7 @@ bfd.ps:
 libbfd.o : libbfd.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h 
 opncls.o : opncls.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h 
 bfd.o : bfd.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \
-  $(INCDIR)/coff/sym.h libecoff.h
+  $(INCDIR)/coff/internal.h $(INCDIR)/coff/sym.h libecoff.h
 archive.o : archive.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \
   $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h 
 targets.o : targets.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h 
@@ -394,6 +392,10 @@ hp300hpux.o : hp300hpux.c aoutx.h $(BFD_H) $(INCDIR)/ansidecl.h \
   $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \
   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
   $(INCDIR)/aout/hp300hpux.h aout-target.h
+hp300bsd.o : hp300bsd.c aoutx.h $(BFD_H) $(INCDIR)/ansidecl.h \
+  $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \
+  $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
+  aout-target.h
 demo64.o : demo64.c 
 
 srec.o : srec.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h 
@@ -422,9 +424,17 @@ coff-m68k.o: coff-m68k.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \
 coff-m88k.o: coff-m88k.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \
   $(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \
   coffswap.h seclet.h 
+ecoff.o: ecoff.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/coff/internal.h libecoff.h libcoff.h seclet.h \
+  $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h libaout.h \
+  $(INCDIR)/aout/aout64.h $(INCDIR)/coff/ecoff.h $(INCDIR)/coff/sym.h \
+  $(INCDIR)/coff/symconst.h
 coff-mips.o: coff-mips.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \
-  $(INCDIR)/coff/mips.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \
-  coffswap.h seclet.h libecoff.h
+  $(INCDIR)/coff/mips.h $(INCDIR)/coff/internal.h libcoff.h \
+  coffswap.h seclet.h libecoff.h ecoffswap.h $(INCDIR)/coff/ecoff.h
+coff-alpha.o: coff-alpha.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \
+  $(INCDIR)/coff/alpha.h $(INCDIR)/coff/internal.h libcoff.h \
+  coffswap.h seclet.h libecoff.h ecoffswap.h $(INCDIR)/coff/ecoff.h
 coff-rs6000.o: coff-rs6000.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \
   $(INCDIR)/coff/rs6000.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h \
   coffswap.h seclet.h
@@ -452,9 +462,11 @@ reloc.o : reloc.c $(BFD_H) \
 
 trad-core.o : trad-core.c $(BFD_H) $(INCDIR)/obstack.h \
   libbfd.h libaout.h 
-
-coff-msym.o: coff-msym.c $(BFD_H)  $(INCDIR)/coff/ecoff-ext.h \
-  $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h
+sco-core.o : sco-core.c $(BFD_H) libbfd.h libcoff.h \
+  $(INCDIR)/obstack.h $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h
+aix386-core.o : aix386-core.c $(BFD_H) libbfd.h libcoff.h \
+  $(INCDIR)/obstack.h $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h
+hpux-core.o : hpux-core.c $(BFD_H) libbfd.h libhppa.h
 
 newsos3.o : newsos3.c $(BFD_H) $(INCDIR)/obstack.h libbfd.h \
   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
@@ -502,11 +514,13 @@ nlm.o : nlm.c libnlm.h libbfd.h $(BFD_H) $(INCDIR)/obstack.h
 nlm32.o : nlm32.c nlmcode.h libnlm.h libbfd.h $(BFD_H) \
   $(INCDIR)/obstack.h
 nlm32-gen.o : nlm32-gen.c libnlm.h libbfd.h \
-  $(BFD_H) $(INCDIR)/obstack.h
+  $(BFD_H) $(INCDIR)/obstack.h nlm-target.h
+nlm32-i386.o : nlm32-i386.c libnlm.h libbfd.h \
+  $(BFD_H) $(INCDIR)/obstack.h nlm-target.h
 nlm64.o : nlm64.c nlmcode.h libnlm.h libbfd.h $(BFD_H) \
   $(INCDIR)/obstack.h
 nlm64-gen.o : nlm64-gen.c libnlm.h libbfd.h \
-  $(BFD_H) $(INCDIR)/obstack.h
+  $(BFD_H) $(INCDIR)/obstack.h nlm-target.h
 
 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
 
This page took 0.02913 seconds and 4 git commands to generate.