-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·27 lines (19 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# generic Makefile for building program from source
# PCH: sudo g++ -Wall -fexceptions -g src/common.h (for any 'common' file import)
SOURCE= src/main.cc src/board.cc src/common/config.cc src/common/util.cc src/core/black_.cc src/core/black/bishop.cc
SOURCE+= src/core/black/knight.cc src/core/black/pawn.cc src/core/black/king.cc
SOURCE+= src/core/black/queen.cc src/core/black/rook.cc src/core/white_.cc
SOURCE+= src/core/white/bishop.cc src/core/white/knight.cc src/core/white/pawn.cc
SOURCE+= src/core/white/king.cc src/core/white/queen.cc src/core/white/rook.cc src/queue.cc
SOURCE+= src/media/sound.cc src/media/text.cc src/ai/helper.cc src/ai/black/search.cc src/ai/env.cc
SOURCE+= src/ai/black/eval.cc src/ai/white/eval.cc
CC= g++ -std=c++2a
EXECUTABLE= FastChess
LDFLAGS = -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio -lm -w -g
OBJECT= $(SOURCE:.cpp=.o)
all: $(OBJECT)
$(CC) $(SOURCE) $(LDFLAGS) -o $(EXECUTABLE)
$(OBJECT):
$(CC) -c -o $@ $(@:.o=.cpp)
clean:
rm -f $(EXECUTABLE) *.o *.out