From a134d110dad79ec350f6883d473f29beadb06abe Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 25 Jun 2012 18:23:15 +0200 Subject: [PATCH] Makefile: Honor CPPFLAGS also when creating dependencies. Makefile.deps is created using a cc -MM -MG command which might need the CPPFLAGS provided by the user, just as the ordinary cc commands for creating an object file. For example, the user might have passed -I$HOME/include, since libosl was installed in $HOME. In this case we need to pass this to the cc command that creates the Makefile as well. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1cb6956..8e2c965 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ endif Makefile.deps: $(wildcard *.c *.h) - $(CC) -MM -MG *.c > $@ + $(CC) $(CPPFLAGS) -MM -MG *.c > $@ -include Makefile.deps -- 2.39.5