diff --git a/Makefile b/Makefile index c0d2610..116a4ad 100644 --- a/Makefile +++ b/Makefile @@ -164,11 +164,11 @@ obj/texel-%.o: src/%.c dep/%.d src/nnueweights.c: weightbit Makefile ./weightbit $(NNUE) -genbit: LDLIBS += -pthread -%.so: LDFLAGS += -shared +genbit: LDLIBS += -pthread +%.so: LDFLAGS += -shared -obj/genbit.o: CFLAGS += $(DSYZYGY) -pthread -obj/init.o: CFLAGS += -DVERSION=$(VERSION) +obj/genbit.o: CFLAGS += $(DSYZYGY) -pthread +obj/init.o obj/interface.o: CFLAGS += -DVERSION=$(VERSION) obj/interface.o obj/option.o: CFLAGS += -DTT=$(TT) dep/nnueweights.d: diff --git a/src/interface.c b/src/interface.c index c5353a1..0ce9cb8 100644 --- a/src/interface.c +++ b/src/interface.c @@ -309,7 +309,7 @@ int interface_isready(int argc, char **argv) { int interface_uci(int argc, char **argv) { UNUSED(argc); UNUSED(argv); - printf("id name bitbit\n"); + printf("id name bitbit " XSTR(VERSION) "\n"); printf("id author Isak Ellmer\n"); print_options(); printf("uciok\n");