This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Backticks (`) in makefile


The backticks aren't interpreted by the makefile, but are passed to the shell. 
A Bourne-style shell like bash, when confronted with the following:

   gcc ... `cat blah`

will execute 'cat blah', capture its stdout and place the contents on the 
command line. So if 'blah' contains:

   foo.o
   bar.o

then the command will become:

   gcc ... foo.o blah.o

Hope that helps :)

Ben


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]