[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Boot process
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com] On Behalf Of Nathan.Smith@xxxxxxx.gov
> Sent: 13 July 2004 19:34
> To: Mark Richards
> Cc: dev-etrax
> Subject: Re: Boot process
> Quick question, do you know what "$^" in makefiles mean? I see it come
> across a lot, but trying to find it in a how-to is next to impossible,
> when google excludes & even when you quote it. I believe $@
> inserts the name of the target.
$@ is the target
$^ is the list of dependencies
$< is the first dependency
E.g, if you have the following in the Makefile
myprog: file1.o file2.o file3.o
$@ whould be "myprog"
$^ would be "file1.o file2.o file3.o"
$< would be "file1.o"
For more information about make and Makefiles, try "info make".