ref: e6fc4ccbf8a7519627fdaf412ca0829d2cecb30b
parent: a57b92c05c8f4a6fb42819e189c3b6e1c25aeed6
author: zamfofex <zamfofex@twdb.moe>
date: Sun Dec 24 07:14:58 EST 2023
fix makefile (again) it invokes the compiler on the headers, but that should be fine
--- a/makefile
+++ b/makefile
@@ -17,15 +17,10 @@
all: moonfish play lichess analyse
-chess.c: moonfish.h
-search.c: moonfish.h
-main.c: moonfish.h
-tools/*.c: tools/tools.h
-
-moonfish moonfish.exe: chess.c search.c main.c
+moonfish moonfish.exe: moonfish.h chess.c search.c main.c
$(moonfish_cc) -o $@ $^
-%: tools/%.c tools/utils.c chess.c
+%: moonfish.h tools/tools.h tools/%.c tools/utils.c chess.c
$(or $($(@)_cc),$(tools_cc)) -o $@ $^ $($(@)_libs)
clean:
--
⑨