From c5d1abb69479212b17029fe2272b46c2b76b4345 Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Fri, 14 Apr 2017 02:54:57 -0400 Subject: [PATCH] -c does not belong in CFLAGS, should always be explicitly set in the compile command --- src/makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makefile b/src/makefile index 25ad417..0ed65ee 100644 --- a/src/makefile +++ b/src/makefile @@ -6,7 +6,7 @@ CC=g++ # Added -std=c++11 because of auto_ptr to unique_ptr transition -CFLAGS= -c -Wall -O2 -DNDEBUG -std=c++11 +CFLAGS= -Wall -O2 -DNDEBUG -std=c++11 LDFLAGS= @@ -23,7 +23,7 @@ $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) -o $@ .cpp.o: - $(CC) $(CFLAGS) $< -o $@ + $(CC) -c $(CFLAGS) $< -o $@ clean: @rm -f *.o