src/chess/Makefile

changeset 132
5762f2b5f87a
parent 129
189c7c77aaab
--- a/src/chess/Makefile	Sun Jun 07 14:55:20 2026 +0200
+++ b/src/chess/Makefile	Sun Jun 07 16:56:22 2026 +0200
@@ -28,7 +28,7 @@
 
 include ../../config.mk
 
-SRC = pawn.c rook.c knight.c bishop.c queen.c king.c rules.c pgn.c
+SRC = pawn.c rook.c knight.c bishop.c queen.c king.c rules.c fen.c pgn.c
 OBJ = $(SRC:%.c=$(BUILDDIR)/%.o)
 
 all: $(BUILDDIR)/libchess$(LIB_EXT) FORCE
@@ -42,6 +42,10 @@
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
+$(BUILDDIR)/fen.o: fen.c fen.h rules.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
 $(BUILDDIR)/king.o: king.c rules.h king.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<

mercurial