update Makefile for brlib, bit_for_each new API

This commit is contained in:
2024-01-01 09:56:09 +01:00
parent 98cb2a8577
commit 558be57c58
3 changed files with 13 additions and 13 deletions

View File

@@ -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

2
brlib

Submodule brlib updated: d654b4acde...7bba3c559b

View File

@@ -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