diff --git a/Makefile b/Makefile index 7db2444..f32b7cd 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ SRC := $(wildcard $(SRCDIR)/*.c) # project sources SRC_FN := $(notdir $(SRC)) # source basename OBJ := $(addprefix $(OBJDIR)/,$(SRC_FN:.c=.o)) -LIBSRC := $(wildcard $(LIBSRCDIR)/*.c) # lib sources +#LIBSRC := $(wildcard $(LIBSRCDIR)/*.c) # lib sources #LIBSRC_FN := $(notdir $(LIBSRC)) # lib sources basename #LIBOBJ := $(addprefix $(LIBOBJDIR)/,$(LIBSRC_FN:.c=.o)) # and lib obj ones @@ -200,7 +200,7 @@ $(LIBOBJDIR)/%.o: $(LIBSRCDIR)/%.c | $(LIBOBJDIR) $(DEPDIR) $(CC) -c $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) $< -o $@ ##################################### brlib libraries -.PHONY: cleanlib cleanlibdir +.PHONY: libs cleanlib cleanlibdir cleanlib: $(call rmfiles,$(DLIB) $(SLIB),library) @@ -212,15 +212,15 @@ cleanlibdir: libs: $(MAKE) -C $(BRLIB) -$(DLIB): CFLAGS += -fPIC -$(DLIB): LDFLAGS += -shared -$(DLIB): $(LIBOBJ) | $(LIBDIR) - @echo building $@ shared library. - @$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ - -$(SLIB): $(LIBOBJ) | $(LIBDIR) - @echo building $@ static library. - $(AR) $(ARFLAGS) $@ $^ +#$(DLIB): CFLAGS += -fPIC +#$(DLIB): LDFLAGS += -shared +#$(DLIB): $(LIBOBJ) | $(LIBDIR) +# @echo building $@ shared library. +# @$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ +# +#$(SLIB): $(LIBOBJ) | $(LIBDIR) +# @echo building $@ static library. +# $(AR) $(ARFLAGS) $@ $^ ##################################### brchess binaries .PHONY: targets cleanbin cleanbindir diff --git a/brlib b/brlib index d654b4a..7bba3c5 160000 --- a/brlib +++ b/brlib @@ -1 +1 @@ -Subproject commit d654b4acde2280b79bd49a004443a73e0e6da2b3 +Subproject commit 7bba3c559b6a8845ebba4282e89eb6adb78377bf diff --git a/src/eval-simple.c b/src/eval-simple.c index e5ab87d..6ca3585 100644 --- a/src/eval-simple.c +++ b/src/eval-simple.c @@ -179,7 +179,7 @@ eval_t eval_simple(pos_t *pos) # endif eval[color] += popcount64(pos->bb[color][bb]) * P_LETTER(piece); - bit_for_each64_2(cur, _t, pos->bb[color][bb]) { + bit_for_each64(cur, _t, pos->bb[color][bb]) { # ifdef DEBUG_EVAL log(5, "sq=%d:%d ", cur, gg[color][bb][cur]); # endif