diff --git a/Makefile b/Makefile index d560837..5ae6c3c 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,26 @@ -CXX ?= c++ -CXXFLAGS ?= -O2 -CXXFLAGS += -Wall \ - -Wextra \ - -pipe \ - -Wmissing-declarations \ - -pedantic \ - -fstack-protector-strong \ +CXX ?= c++ +CXXFLAGS ?= -O2 +CXXFLAGS += -Wall \ + -Wextra \ + -pipe \ + -Wmissing-declarations \ + -pedantic \ + -fstack-protector-strong -LDFLAGS = -lncursesw -Wl,-z,relro,-z,now +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 -INSTALLDIR := $(DESTDIR)/usr/bin +OBJECTS = $(SOURCES:.cpp=.o) +EXECUTABLE = chess +INSTALLDIR := $(DESTDIR)/usr/bin all: $(SOURCES) $(EXECUTABLE)