forked from YuRuM0/chessbot_hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (17 loc) · 667 Bytes
/
Makefile
File metadata and controls
23 lines (17 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
NAME := chessbot
CFLAGS := -Wall -Wextra -pedantic -std=c89
# CFLAGS := -Wall -Wextra -pedantic -std=c89 -O3 -flto -march=native
HEADERS := include/uci.h include/perft.h include/search.h include/evaluate.h include/generate.h include/move.h include/position.h include/parse.h include/types.h
build/%.o: src/%.c $(HEADERS) Makefile
mkdir -p $(@D)
$(CC) $(CFLAGS) $< -o $@ -c -Iinclude
$(NAME): build/uci.o build/perft.o build/search.o build/evaluate.o build/generate.o build/move.o build/position.o build/parse.o build/main.o build/opening_move.o
$(CC) $(CFLAGS) $^ -o $@
clean:
rm -rf build/
fclean:
rm -rf build/
rm -f $(NAME)
re:
${MAKE} fclean
${MAKE}