Replace hard-coded gcc by $(CC) in Makefile.deps target.
authorAndre Noll <maan@systemlinux.org>
Mon, 2 Nov 2009 13:42:42 +0000 (14:42 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 2 Nov 2009 13:42:42 +0000 (14:42 +0100)
If the user chooses alternative compiler, she will likely also generate
the dependency file by using that compiler.

Makefile

index 28fb2d4..9a0ffb7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ endif
 
 
 Makefile.deps: $(wildcard *.c *.h)
-       gcc -MM -MG *.c > $@
+       $(CC) -MM -MG *.c > $@
 
 -include Makefile.deps