commit | 373a5ede53863132dbd3eeab262a8e29e763ddab | [log] [tgz] |
---|---|---|
author | Jonathan Nieder <jrnieder@gmail.com> | Wed Jan 06 02:05:04 2010 -0600 |
committer | Junio C Hamano <gitster@pobox.com> | Wed Jan 06 01:33:22 2010 -0800 |
tree | 8d2ef7e8302fc8c48a84ab613d391af91879924d | |
parent | 31838b4dcd27961b13e46ffd126233b208a29530 [diff] |
Makefile: use target-specific variable to pass flags to cc This allows reusing the standard %.o: %.c pattern rule even for targets that require special flags to be set. Thus after this change, any changes in the command for compilation only have to be performed in one place. Target-specific variables have been supported in GNU make since version 3.77, which has been available since 1998. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>