]> git.tue.mpg.de Git - dss.git/commitdiff
build: Fix cc command which creates dependencies,
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 13 Jul 2017 17:33:52 +0000 (19:33 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 13 Jul 2017 20:54:03 +0000 (22:54 +0200)
The command to create Makefile.deps was hardcoded as gcc in Makefile.
This patch changes the command to $(CC) and adds the usual set of
flags which we use for compiling.

Makefile

index 7d3bd4262525b705feb82901532d9e74d9d97737..d27b9cd3bb686d05269d8024c19743970538aabd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ DSS_CFLAGS += -Wbad-function-cast
 DSS_CFLAGS += -Wshadow
 
 Makefile.deps: $(wildcard *.c *.h)
-       gcc -MM -MG *.c > $@
+       $(CC) -MM -MG $(DSS_CFLAGS) $(CFLAGS) *.c > $@
 
 -include Makefile.deps