-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
92 lines (69 loc) · 1.69 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
SRC=vice
BIN=bin
OBJ=obj
INC=vice
CC=gcc
CFLAGS=-Wall -ggdb -O0 -I$(INC)
$(BIN)/vice: $(OBJ)/attack.o \
$(OBJ)/bitboards.o \
$(OBJ)/board.o \
$(OBJ)/data.o \
$(OBJ)/evaluate.o \
$(OBJ)/hashkeys.o \
$(OBJ)/init.o \
$(OBJ)/io.o \
$(OBJ)/makemove.o \
$(OBJ)/misc.o \
$(OBJ)/movegen.o \
$(OBJ)/perft.o \
$(OBJ)/polybook.o \
$(OBJ)/polykeys.o \
$(OBJ)/pvtable.o \
$(OBJ)/search.o \
$(OBJ)/uci.o \
$(OBJ)/validate.o \
$(OBJ)/xboard.o \
$(SRC)/vice.c
$(CC) $(CFLAGS) -o $@ $^
$(OBJ)/attack.o: $(SRC)/attack.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/bitboards.o: $(SRC)/bitboards.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/board.o: $(SRC)/board.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/data.o: $(SRC)/data.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/evaluate.o: $(SRC)/evaluate.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/hashkeys.o: $(SRC)/hashkeys.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/init.o: $(SRC)/init.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/io.o: $(SRC)/io.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/makemove.o: $(SRC)/makemove.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/misc.o: $(SRC)/misc.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/movegen.o: $(SRC)/movegen.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/polybook.o: $(SRC)/polybook.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/polykeys.o: $(SRC)/polykeys.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/perft.o: $(SRC)/perft.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/pvtable.o: $(SRC)/pvtable.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/search.o: $(SRC)/search.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/uci.o: $(SRC)/uci.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/validate.o: $(SRC)/validate.c
$(CC) $(CFLAGS) -c -o $@ $^
$(OBJ)/xboard.o: $(SRC)/xboard.c
$(CC) $(CFLAGS) -c -o $@ $^
.PHONY: clean
clean:
rm -f $(OBJ)/*
rm -f $(BIN)/*