From: Andre Noll Date: Thu, 13 Jul 2017 17:33:52 +0000 (+0200) Subject: build: Fix cc command which creates dependencies, X-Git-Tag: v1.0.0~25^2~2 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=df63a10b9cbc312f66800da0998b96f024bb3ea3 build: Fix cc command which creates dependencies, 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. --- diff --git a/Makefile b/Makefile index 7d3bd42..d27b9cd 100644 --- 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