From 3f43d5da90770b4f92153074b59e7f813273eb1a Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 8 Feb 2015 16:35:43 +0000 Subject: Makefile: fixed potential dependency issue using the -std=... option could affect the dependencies. Thus, we must use it when generating the .d files as well. fixed by adding the CFLAGS to the recipe which creates the .d files. Signed-off-by: Olivier Gayot --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cef3a49..b359e99 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ DEP = $(SRC:.c=.d) -include $(DEP) %.d: %.c - $(CC) -MM $(CPPFLAGS) $< -MF $@ -MT "$*.o $@" + $(CC) -MM $(CFLAGS) $(CPPFLAGS) $< -MF $@ -MT "$*.o $@" clean: $(RM) $(OBJ) -- cgit v1.2.3