Some styling
This commit is contained in:
40
Makefile
40
Makefile
@@ -1,26 +1,26 @@
|
|||||||
CXX ?= c++
|
CXX ?= c++
|
||||||
CXXFLAGS ?= -O2
|
CXXFLAGS ?= -O2
|
||||||
CXXFLAGS += -Wall \
|
CXXFLAGS += -Wall \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-pipe \
|
-pipe \
|
||||||
-Wmissing-declarations \
|
-Wmissing-declarations \
|
||||||
-pedantic \
|
-pedantic \
|
||||||
-fstack-protector-strong \
|
-fstack-protector-strong
|
||||||
|
|
||||||
LDFLAGS = -lncursesw -Wl,-z,relro,-z,now
|
LDFLAGS = -lncursesw -Wl,-z,relro,-z,now
|
||||||
|
|
||||||
SOURCES = main.cpp \
|
SOURCES = main.cpp \
|
||||||
chess.cpp \
|
chess.cpp \
|
||||||
bishop.cpp \
|
bishop.cpp \
|
||||||
rook.cpp \
|
rook.cpp \
|
||||||
queen.cpp \
|
queen.cpp \
|
||||||
king.cpp \
|
king.cpp \
|
||||||
knight.cpp \
|
knight.cpp \
|
||||||
pawn.cpp
|
pawn.cpp
|
||||||
|
|
||||||
OBJECTS = $(SOURCES:.cpp=.o)
|
OBJECTS = $(SOURCES:.cpp=.o)
|
||||||
EXECUTABLE = chess
|
EXECUTABLE = chess
|
||||||
INSTALLDIR := $(DESTDIR)/usr/bin
|
INSTALLDIR := $(DESTDIR)/usr/bin
|
||||||
|
|
||||||
all: $(SOURCES) $(EXECUTABLE)
|
all: $(SOURCES) $(EXECUTABLE)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user