bb migration: add util, update fen/fen-test + partial pos + piece

This commit is contained in:
2024-02-07 22:08:24 +01:00
parent c57e0463cd
commit 1929d4bb1f
15 changed files with 860 additions and 602 deletions

View File

@@ -48,6 +48,8 @@ LIBS := -l$(LIB) -lreadline -lncurses
##################################### pre-processor flags
CPPFLAGS := -I$(BRINCDIR)
CPPFLAGS += -DBUG_ON
CPPFLAGS += -DWARN_ON
#CPPFLAGS += -DDEBUG # global
CPPFLAGS += -DDEBUG_DEBUG # enable log() functions
#CPPFLAGS += -DDEBUG_DEBUG_C # enable verbose log() settings
@@ -252,6 +254,16 @@ VALGRINDFLAGS += --suppressions=etc/libreadline.supp
memcheck: targets
@$(VALGRIND) $(VALGRINDFLAGS) $(BINDIR)/brchess
##################################### test binaries
TEST = bin/fen-test
FENTESTOBJS = obj/fen.o obj/position.o obj/piece.o obj/util.o
testing: $(TEST)
bin/fen-test: test/fen-test.c $(FENTESTOBJS)
$(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) $< $(LIBS) $(FENTESTOBJS) -o $@
##################################### Makefile debug
.PHONY: showflags wft
@@ -271,3 +283,6 @@ wtf:
@#echo LIBOBJ=$(LIBOBJ)
@#echo DEP=$(DEP)
@#echo LIBSRC=$(LIBSRC)
zob:
$(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) $< $(LIBS) src/util.c -o util