Initial commit

This commit is contained in:
2014-09-30 17:09:22 +03:00
commit 1d8061ef10
18 changed files with 1345 additions and 0 deletions

35
Makefile Normal file
View File

@@ -0,0 +1,35 @@
CC=g++
CPPFLAGS= -Wall \
-Wextra \
-pipe \
-Wmissing-declarations \
-pedantic \
-O2
LDFLAGS=-lncursesw
SOURCES=main.cpp \
chess.cpp \
bishop.cpp \
rook.cpp \
queen.cpp \
king.cpp \
knight.cpp \
pawn.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=chess
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
@echo ' LD $@'
@$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.cpp.o:
@echo ' CC $@'
@$(CC) $(CPPFLAGS) -c $< -o $@
clean:
rm -rf $(OBJECTS)