Tuesday, November 30, 2010

Makefile macro $@ and $^

$@ refers to the left side of the : and $^ refers to the right side.
The left side represents the object where as the right side represents the object's dependencies.

Took a while to find this actually, found it mid sentence in an explanation of an example make file.

List of macros:
http://www.cprogramming.com/tutorial/makefiles_continued.html

No comments:

Post a Comment