aboutsummaryrefslogtreecommitdiff
path: root/gas/Makefile.am
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-07-02 08:09:35 +0000
committerTristan Gingold <gingold@adacore.com>2009-07-02 08:09:35 +0000
commite57f8c655cb90b3b73e5906ada99ab72c83f95af (patch)
treecd863be6dbd40cc4897620c058bab54df67fb208 /gas/Makefile.am
parent16fb2c8c4253f31c368652212f44951c9f31f373 (diff)
downloadgdb-e57f8c655cb90b3b73e5906ada99ab72c83f95af.zip
gdb-e57f8c655cb90b3b73e5906ada99ab72c83f95af.tar.gz
gdb-e57f8c655cb90b3b73e5906ada99ab72c83f95af.tar.bz2
2009-07-02 Tristan Gingold <gingold@adacore.com>
* Makefile.am (OBJ_FORMATS): Add macho. (CPU_OBJ_VALID): Ditto. (OBJ_FORMAT_CFILES): Add config/obj-macho.c (OBJ_FORMAT_HFILES): Add config/obj-macho.h (obj-macho.o): New rule. * Makefile.in: Regenerated. * configure.tgt (generic_target): Add i386-*-darwin*. * config/tc-i386.h: Use i386_target_format for Mach-O. * config/tc-i386.c (i386_target_format): Define it for Mach-O. (i386_target_format): Add a case for bfd_target_mach_o_flavour. * config/obj-macho.h: New file. * config/obj-macho.c: New file.
Diffstat (limited to 'gas/Makefile.am')
-rw-r--r--gas/Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/gas/Makefile.am b/gas/Makefile.am
index 0b66f41..8e8c8cc 100644
--- a/gas/Makefile.am
+++ b/gas/Makefile.am
@@ -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