]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
Makefile: use target-specific variable to pass flags to cc
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 6 Jan 2010 08:05:04 +0000 (02:05 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jan 2010 09:33:22 +0000 (01:33 -0800)
commit373a5ede53863132dbd3eeab262a8e29e763ddab
tree8d2ef7e8302fc8c48a84ab613d391af91879924d
parent31838b4dcd27961b13e46ffd126233b208a29530
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>
Makefile