This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gas testsuites and cpp usage
In general, there are no Makefiles inside the testsuites (except,
perhaps, one at the top, but for other reasons). You want to avoid
Makefiles anyway, since they may automatically run commands which may
not work on other people's machines.
A shell script is permissible. In fact, shell scripts support "here
documents" which could be used instead of a separate input file. Like
this:
--- foo.sh ---
#!/bin/sh
# Run this script to generate foo.s
gcc -E - <<HERE > foo.s
; Warning: foo.s is generated from foo.sh. Do not edit foo.s!
blah
blah
HERE