aboutsummaryrefslogtreecommitdiff
path: root/bfd/targmatch.sed
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-03 21:36:08 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-03 21:36:08 +0000
commitdee9979493130df7a1cc1cf7b53d5ca2229f6105 (patch)
treed9fd8dcc7f43ca8702847ebb3c8500079f88ae06 /bfd/targmatch.sed
parent6c9370db2abfc53aadaf7b97409fb5a2ea391d80 (diff)
downloadgdb-dee9979493130df7a1cc1cf7b53d5ca2229f6105.zip
gdb-dee9979493130df7a1cc1cf7b53d5ca2229f6105.tar.gz
gdb-dee9979493130df7a1cc1cf7b53d5ca2229f6105.tar.bz2
* configure.in: Add havevecs, and put it in tdefaults.
* mpw-config.in: Likewise. * configure: Rebuild. * targmatch.sed: New file; a sed script to build targmatch.h from config.bfd. * config.bfd: Add #if, #endif, and comments for targmatch.h. * targets.c: Include "fnmatch.h". (struct targmatch): Define. (bfd_target_match): Define by including targmatch.h. (bfd_find_target): If the target is not found by name, search for it as a configuration triplet. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o, i386dynix.o, m68k4knetbsd.o, and riscix.o. (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c, hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c. (HFILES): Add targmatch.h. Also, alphabetize and reindent. (CFILES): Remove i386dynix.c and hp300bsd.c. (targmatch.h): New target. (do_clean): Remove targmatch.h. * configure.in: Add BFD_NEED_DECLARATION(getenv). * acconfig.h: Add NEED_DECLARATION_GETENV. * configure, config.in: Rebuild. * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv. * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
Diffstat (limited to 'bfd/targmatch.sed')
-rw-r--r--bfd/targmatch.sed17
1 files changed, 17 insertions, 0 deletions
diff --git a/bfd/targmatch.sed b/bfd/targmatch.sed
new file mode 100644
index 0000000..f681aac
--- /dev/null
+++ b/bfd/targmatch.sed
@@ -0,0 +1,17 @@
+1,/START OF targmatch.h/ d
+/END OF targmatch.h/,$ d
+s/^#if/KEEP #if/
+s/^#endif/KEEP #endif/
+s/^[ ]*#.*$//
+s/^KEEP #/#/
+s/[ ]*\\$//
+s/[| ][| ]*\([^|() ][^|() ]*\)[ ]*\|/{ "\1", NULL },/g
+s/[| ][| ]*\([^|() ][^|() ]*\)[ ]*)/{ "\1",/g
+s/^[ ]*targ_defvec=\([^ ]*\)/#if !defined (SELECT_VECS) || defined (HAVE_\1)\
+\&\1\
+#else\
+UNSUPPORTED_TARGET\
+#endif\
+},/
+s/.*=.*//
+s/;;//