ref: 9fb51118ad6a2d62c77f4ae51c9a57f7dbc4def6
dir: /makefile/
# moonfish is licensed under the AGPL (v3 or later) # copyright 2023 zamfofex CFLAGS ?= -ansi -O3 -Wall -Wextra -Wpedantic cc := $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) src := chess.c search.c main.c moonfish_cc := $(cc) -pthread -D_POSIX_C_SOURCE=199309L tools_cc := $(cc) -pthread -D_POSIX_C_SOURCE=200809L .PHONY: all clean all: moonfish play lichess analyse moonfish moonfish.exe: moonfish.h $(src) $(moonfish_cc) -o $@ $(src) play: moonfish.h tools/tools.h tools/play.c tools/utils.c chess.c $(tools_cc) -o play tools/play.c tools/utils.c chess.c lichess: tools/tools.h tools/lichess.c tools/utils.c $(tools_cc) -std=c99 -o lichess tools/lichess.c tools/utils.c -lbearssl -lcjson analyse: tools/tools.h tools/analyse.c tools/utils.c chess.c $(tools_cc) -o analyse tools/analyse.c tools/utils.c chess.c clean: $(RM) moonfish moonfish.exe play lichess analyse $(RM) moonfish.c moonfish.c.xz moonfish.sh