From e16a4396d764babbb731932f87cfd79105892310 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Tue, 5 Apr 2022 18:07:58 -0500 Subject: [PATCH] Makefile: move -MMD option out of CFLAGS --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index acff04f..9b218b5 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ VPATH = $(SPATH) $(IPATH) $(DPATH) $(OPATH) # compiler and compiler flags CC = g++ -CFLAGS = -MMD -I$(IPATH) -pthread -lrt +CFLAGS = -I$(IPATH) -pthread -lrt # list of object files SOURCES = $(wildcard $(SPATH)/*.cpp) @@ -39,7 +39,7 @@ $(DPATH) $(OPATH): $(CC) $(CFLAGS) -o $@ $^ # Make the object and dependency files $(OPATH)/%.o: $(SPATH)/%.cpp - $(CC) $(CFLAGS) -MF $(DPATH)/$(@F:.o=.d) -o $@ -c $< + $(CC) $(CFLAGS) -MMD -MF $(DPATH)/$(@F:.o=.d) -o $@ -c $< # Don't autodelete object files: .SECONDARY: $(OPATH)/%.o