/gas:
[deliverable/binutils-gdb.git] / gas / Makefile.am
index e12012a01e747bf466d2206c48f81b492fa91de1..550132570f386ec2082feffc53ea1e768d4dee59 100644 (file)
@@ -109,7 +109,8 @@ OBJ_FORMATS = \
        coff \
        ecoff \
        elf \
-       evax
+       evax \
+       macho
 
 # This is an sh case which sets valid according to whether the CPU
 # type in the shell variable c and the OS type in the shell variable o
@@ -142,6 +143,10 @@ CPU_OBJ_VALID = \
          case $$c in \
          alpha) valid=yes ;; \
          esac ;; \
+       macho) \
+         case $$c in \
+         i386) valid=yes ;; \
+         esac ;; \
        vms) \
          case $$c in \
          vax) valid=yes ;; \
@@ -368,6 +373,7 @@ OBJ_FORMAT_CFILES = \
        config/obj-elf.c \
        config/obj-evax.c \
        config/obj-fdpicelf.c \
+       config/obj-macho.c \
        config/obj-som.c
 
 OBJ_FORMAT_HFILES = \
@@ -377,6 +383,7 @@ OBJ_FORMAT_HFILES = \
        config/obj-elf.h \
        config/obj-evax.h \
        config/obj-fdpicelf.h \
+       config/obj-macho.h \
        config/obj-som.h
 
 # Emulation header files in config
@@ -594,6 +601,8 @@ obj-evax.o : $(srcdir)/config/obj-evax.c
        $(COMPILE) -c $(srcdir)/config/obj-evax.c
 obj-fdpicelf.o : $(srcdir)/config/obj-fdpicelf.c
        $(COMPILE) -c $(srcdir)/config/obj-fdpicelf.c
+obj-macho.o : $(srcdir)/config/obj-macho.c
+       $(COMPILE) -c $(srcdir)/config/obj-macho.c
 obj-multi.o : $(srcdir)/config/obj-multi.c
        $(COMPILE) -c $(srcdir)/config/obj-multi.c
 obj-som.o : $(srcdir)/config/obj-som.c
@@ -922,7 +931,8 @@ DEP1: $(CFILES) $(MULTI_CFILES)
        for f in $?; do \
          $(MKDEP) $(DEP_FLAGS) $$f > DEP; \
          sed -n -e '1s/: .*/: \\/p' -e q < DEP >> DEP2; \
-         sed -e '1s/.*://' -f ../dep.sed < DEP | LC_ALL=C sort | uniq | \
+         sed -e '1s/.*://' -f ../dep.sed < DEP | \
+           LC_ALL=C sort | LC_ALL=C uniq | \
            sed -e 's/^[AB]/  /' -e '$$s/ \\$$//' >> DEP2; \
        done
        mv -f DEPDIR/DEP2 $@
@@ -952,7 +962,7 @@ DEPTC: $(TARGET_CPU_CFILES)
              echo "DEPTC_$${c}_$${o} = \\" >> ../DEPTCA; \
              $(MKDEP) $(DEP_FLAGS) dumtc.c | \
                sed -e '1s/dumtc.o: //' -f ../dep.sed | \
-               LC_ALL=C sort | uniq | \
+               LC_ALL=C sort | LC_ALL=C uniq | \
                sed -e '/^A/d' -e 's/^B/  /' -e '$$s/ \\$$//' >> ../DEPTCA; \
              rm -f dumtc.c; \
            else true; fi; \
@@ -993,7 +1003,7 @@ DEPOBJ: $(OBJ_FORMAT_CFILES)
              echo "DEPOBJ_$${c}_$${o} = \\" >> ../DEPOBJA; \
              $(MKDEP) $(DEP_FLAGS) dumobj.c | \
                sed -e "s/dumobj.o: //" -f ../dep.sed | \
-               LC_ALL=C sort | uniq | \
+               LC_ALL=C sort | LC_ALL=C uniq | \
                sed -e '/^A/d' -e 's/^B/  /' -e '$$s/ \\$$//' >> ../DEPOBJA; \
              rm -f dumobj.c; \
            else true; fi; \
@@ -1031,7 +1041,7 @@ DEP2: $(TARGET_CPU_HFILES) $(OBJ_FORMAT_HFILES)
              echo "DEP_$${c}_$${o} = \\" >> ../DEP2A; \
              $(MKDEP) $(DEP_FLAGS) dummy.c | \
                sed -e "s/dummy.o: //" -f ../dep.sed | \
-               LC_ALL=C sort | uniq | \
+               LC_ALL=C sort | LC_ALL=C uniq | \
                sed -e '/^A/d' -e 's/^B/  /' -e '$$s/ \\$$//' >> ../DEP2A; \
            else true; fi; \
          done; \
@@ -1084,7 +1094,7 @@ DEPTC_alpha_ecoff = \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/coff/ecoff.h \
   $(INCDIR)/coff/sym.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/opcode/alpha.h \
   $(INCDIR)/safe-ctype.h \
@@ -1102,9 +1112,9 @@ DEPTC_alpha_elf = \
   $(INCDIR)/bfdlink.h \
   $(INCDIR)/coff/ecoff.h \
   $(INCDIR)/coff/sym.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/alpha.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/reloc-macros.h \
@@ -1122,7 +1132,7 @@ DEPTC_alpha_elf = \
 DEPTC_alpha_evax = \
   $(BFDDIR)/vms.h \
   $(INCDIR)/alloca-conf.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/opcode/alpha.h \
   $(INCDIR)/safe-ctype.h \
@@ -1181,9 +1191,9 @@ DEPTC_arm_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/arm.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/reloc-macros.h \
@@ -1396,8 +1406,8 @@ DEPTC_hppa_elf = \
   $(BFDDIR)/libhppa.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/hppa.h \
   $(INCDIR)/elf/internal.h \
@@ -1431,7 +1441,7 @@ DEPTC_i386_aout = \
   $(BFDDIR)/libaout.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/reloc-macros.h \
   $(INCDIR)/elf/x86-64.h \
   $(INCDIR)/obstack.h \
@@ -1452,7 +1462,7 @@ DEPTC_i386_coff = \
   $(INCDIR)/coff/external.h \
   $(INCDIR)/coff/i386.h \
   $(INCDIR)/coff/internal.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/reloc-macros.h \
   $(INCDIR)/elf/x86-64.h \
   $(INCDIR)/obstack.h \
@@ -1470,8 +1480,8 @@ DEPTC_i386_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/reloc-macros.h \
@@ -1487,6 +1497,22 @@ DEPTC_i386_elf = \
   dw2gencfi.h \
   dwarf2dbg.h \
   subsegs.h
+DEPTC_i386_macho = \
+  $(INCDIR)/alloca-conf.h \
+  $(INCDIR)/dwarf2.h \
+  $(INCDIR)/elf/reloc-macros.h \
+  $(INCDIR)/elf/x86-64.h \
+  $(INCDIR)/obstack.h \
+  $(INCDIR)/opcode/i386.h \
+  $(INCDIR)/safe-ctype.h \
+  $(srcdir)/../opcodes/i386-init.h \
+  $(srcdir)/../opcodes/i386-opc.h \
+  $(srcdir)/config/obj-macho.h \
+  $(srcdir)/config/tc-i386-intel.c \
+  $(srcdir)/config/tc-i386.h \
+  dw2gencfi.h \
+  dwarf2dbg.h \
+  subsegs.h
 DEPTC_i860_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/alloca-conf.h \
@@ -1650,7 +1676,7 @@ DEPTC_m68k_aout = \
   $(BFDDIR)/libaout.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/opcode/m68k.h \
   $(INCDIR)/safe-ctype.h \
@@ -1667,7 +1693,7 @@ DEPTC_m68k_coff = \
   $(INCDIR)/coff/external.h \
   $(INCDIR)/coff/internal.h \
   $(INCDIR)/coff/m68k.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/opcode/m68k.h \
   $(INCDIR)/safe-ctype.h \
@@ -1681,8 +1707,8 @@ DEPTC_m68k_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/m68k.h \
@@ -1772,8 +1798,8 @@ DEPTC_mips_coff = \
   $(INCDIR)/coff/internal.h \
   $(INCDIR)/coff/mipspe.h \
   $(INCDIR)/coff/sym.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/mips.h \
@@ -1795,8 +1821,8 @@ DEPTC_mips_ecoff = \
   $(INCDIR)/bfdlink.h \
   $(INCDIR)/coff/ecoff.h \
   $(INCDIR)/coff/sym.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/mips.h \
@@ -1818,8 +1844,8 @@ DEPTC_mips_elf = \
   $(INCDIR)/bfdlink.h \
   $(INCDIR)/coff/ecoff.h \
   $(INCDIR)/coff/sym.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/mips.h \
@@ -2002,7 +2028,7 @@ DEPTC_ppc_coff = \
   $(INCDIR)/bfdlink.h \
   $(INCDIR)/coff/internal.h \
   $(INCDIR)/coff/rs6000.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/opcode/ppc.h \
   $(INCDIR)/safe-ctype.h \
@@ -2014,8 +2040,8 @@ DEPTC_ppc_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/ppc.h \
@@ -2032,8 +2058,8 @@ DEPTC_s390_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/reloc-macros.h \
@@ -2072,7 +2098,7 @@ DEPTC_sh_coff = \
   $(INCDIR)/coff/external.h \
   $(INCDIR)/coff/internal.h \
   $(INCDIR)/coff/sh.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/safe-ctype.h \
   $(srcdir)/../opcodes/sh-opc.h \
@@ -2086,8 +2112,8 @@ DEPTC_sh_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/reloc-macros.h \
@@ -2106,8 +2132,8 @@ DEPTC_sh64_elf = \
   $(BFDDIR)/elf32-sh64.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/reloc-macros.h \
@@ -2128,7 +2154,7 @@ DEPTC_sparc_aout = \
   $(BFDDIR)/libaout.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/opcode/sparc.h \
   $(INCDIR)/safe-ctype.h \
@@ -2143,7 +2169,7 @@ DEPTC_sparc_coff = \
   $(INCDIR)/coff/external.h \
   $(INCDIR)/coff/internal.h \
   $(INCDIR)/coff/sparc.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/opcode/sparc.h \
   $(INCDIR)/safe-ctype.h \
@@ -2155,8 +2181,8 @@ DEPTC_sparc_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/alloca-conf.h \
   $(INCDIR)/bfdlink.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/elf/common.h \
-  $(INCDIR)/elf/dwarf2.h \
   $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h \
   $(INCDIR)/elf/reloc-macros.h \
@@ -2712,6 +2738,13 @@ DEPOBJ_i386_elf = \
   dwarf2dbg.h \
   struc-symbol.h \
   subsegs.h
+DEPOBJ_i386_macho = \
+  $(BFDDIR)/mach-o.h \
+  $(INCDIR)/alloca-conf.h \
+  $(INCDIR)/opcode/i386.h \
+  $(srcdir)/../opcodes/i386-opc.h \
+  $(srcdir)/config/obj-macho.h \
+  $(srcdir)/config/tc-i386.h
 DEPOBJ_i860_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/alloca-conf.h \
@@ -3706,6 +3739,11 @@ DEP_i386_elf = \
   $(srcdir)/config/obj-elf.h \
   $(srcdir)/config/tc-i386.h \
   dwarf2dbg.h
+DEP_i386_macho = \
+  $(INCDIR)/opcode/i386.h \
+  $(srcdir)/../opcodes/i386-opc.h \
+  $(srcdir)/config/obj-macho.h \
+  $(srcdir)/config/tc-i386.h
 DEP_i860_elf = \
   $(BFDDIR)/elf-bfd.h \
   $(BFDDIR)/libcoff.h \
@@ -4286,7 +4324,7 @@ app.o: \
 as.o: \
   as.c \
   $(INCDIR)/alloca-conf.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   ../bfd/bfdver.h \
   dw2gencfi.h \
@@ -4311,7 +4349,7 @@ depend.o: \
 dwarf2dbg.o: \
   dwarf2dbg.c \
   $(INCDIR)/alloca-conf.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/filenames.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/safe-ctype.h \
@@ -4320,7 +4358,7 @@ dwarf2dbg.o: \
 dw2gencfi.o: \
   dw2gencfi.c \
   $(INCDIR)/alloca-conf.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   dw2gencfi.h \
   subsegs.h
@@ -4331,7 +4369,7 @@ ecoff.o: \
 ehopt.o: \
   ehopt.c \
   $(INCDIR)/alloca-conf.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   struc-symbol.h \
   subsegs.h
@@ -4396,7 +4434,7 @@ output-file.o: \
 read.o: \
   read.c \
   $(INCDIR)/alloca-conf.h \
-  $(INCDIR)/elf/dwarf2.h \
+  $(INCDIR)/dwarf2.h \
   $(INCDIR)/obstack.h \
   $(INCDIR)/safe-ctype.h \
   dw2gencfi.h \
This page took 0.029609 seconds and 4 git commands to generate.