diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2,8 +2,6 @@ IDIR=include CFLAGS=-O3 -ffast-math -Wall -Wextra -Wpedantic -std=c99 -D_DEFAULT_SOURCE $(DEFINES) -I$(IDIR) NATIVE_FLAGS=-march=native -CTAK=include/tak.c -CTAK_OBJS=$(CTAK:.c=.o) CAND_SRCS=$(wildcard include/cand_*.c) SRCS=$(filter-out include/lcdlib.c $(CAND_SRCS),$(wildcard include/*.c)) OBJS=$(SRCS:.c=.o) @@ -27,7 +25,7 @@ cttei: src/cttei.o $(OBJS) $(CC) $(CFLAGS) src/cttei.o $(OBJS) -o cttei clean: - rm -f ctlm ct1986 cttei pptdb geminict + rm -f ctlm ct1986 cttei geminict selfplay* rm -f src/*.o include/*.o native: CFLAGS += $(NATIVE_FLAGS) @@ -39,7 +37,7 @@ cand_b = $(word 2,$(subst -, ,$1)) .PHONY: selfplay-% selfplay-%: rm -f selfplay-% - $(MAKE) clean + rm -f src/*.o include/*.o $(MAKE) SELFPLAY_OUT=$@ \ DEFINES="-DRECORD_PV -DCAND_A=$(call cand_a,$*) -DCAND_B=$(call cand_b,$*) \ -DCAND_A_WEIGHTS_5='\"cand_$(call cand_a,$*)_weights_5.c\"' \ |
