diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-02-08 16:35:43 +0000 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-02-08 16:35:43 +0000 |
commit | 3f43d5da90770b4f92153074b59e7f813273eb1a (patch) | |
tree | 4499231b2e927e0025f0e5f7cbe4768d98dccdac | |
parent | 24ba89af54e4870efe4c55127d67d10abb2952aa (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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |