summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-02-08 16:35:43 +0000
committerOlivier Gayot <duskcoder@gmail.com>2015-02-08 16:35:43 +0000
commit3f43d5da90770b4f92153074b59e7f813273eb1a (patch)
tree4499231b2e927e0025f0e5f7cbe4768d98dccdac
parent24ba89af54e4870efe4c55127d67d10abb2952aa (diff)
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 <duskcoder@gmail.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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)