From b30fd011d05f5566cbd267610abd7accf843bdab Mon Sep 17 00:00:00 2001 From: Bogomil Vasilev Date: Sun, 26 Apr 2015 09:11:55 +0300 Subject: [PATCH] Allow CXX and CPPFLAGS override --- Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index b6dc2e4..b52532b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -CXX=c++ -CPPFLAGS= -Wall \ +CXX ?= c++ +CPPFLAGS ?= -Wall \ -Wextra \ -pipe \ -Wmissing-declarations \ @@ -9,17 +9,17 @@ CPPFLAGS= -Wall \ LDFLAGS=-lncursesw -Wl,-z,relro,-z,now -SOURCES=main.cpp \ - chess.cpp \ - bishop.cpp \ - rook.cpp \ - queen.cpp \ - king.cpp \ - knight.cpp \ - pawn.cpp +SOURCES = main.cpp \ + chess.cpp \ + bishop.cpp \ + rook.cpp \ + queen.cpp \ + king.cpp \ + knight.cpp \ + pawn.cpp -OBJECTS=$(SOURCES:.cpp=.o) -EXECUTABLE=chess +OBJECTS = $(SOURCES:.cpp=.o) +EXECUTABLE = chess all: $(SOURCES) $(EXECUTABLE)