test/Makefile

changeset 213
cf7b86d79d35
parent 197
9cbd4f09a22f
--- a/test/Makefile	Thu Sep 03 11:53:58 2026 +0200
+++ b/test/Makefile	Thu Sep 03 11:54:19 2026 +0200
@@ -31,7 +31,14 @@
 SRC  = run-tests.c \
        test-datatypes.c \
        test-rules-helper.c \
-       test-real-pgn.c
+       test-real-pgn.c \
+       test-pawn.c \
+       test-rook.c \
+       test-knight.c \
+       test-bishop.c \
+       test-queen.c \
+       test-king.c \
+
 
 OBJ = $(SRC:%.c=$(BUILDDIR)/%.o)
 
@@ -48,10 +55,30 @@
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
+$(BUILDDIR)/test-bishop.o: test-bishop.c ../src/chess/rules.h ucxtest.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
 $(BUILDDIR)/test-datatypes.o: test-datatypes.c ../src/chess/rules.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
+$(BUILDDIR)/test-king.o: test-king.c ../src/chess/rules.h ucxtest.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
+$(BUILDDIR)/test-knight.o: test-knight.c ../src/chess/rules.h ucxtest.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
+$(BUILDDIR)/test-pawn.o: test-pawn.c ../src/chess/rules.h ucxtest.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
+$(BUILDDIR)/test-queen.o: test-queen.c ../src/chess/rules.h ucxtest.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
 $(BUILDDIR)/test-real-pgn.o: test-real-pgn.c ucxtest.h ../src/chess/pgn.h \
  ../src/chess/rules.h data/game001.pgn data/game002.pgn data/game003.pgn \
  data/game004.pgn data/game005.pgn data/game006.pgn data/game007.pgn \
@@ -94,6 +121,10 @@
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
+$(BUILDDIR)/test-rook.o: test-rook.c ../src/chess/rules.h ucxtest.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
 $(BUILDDIR)/test-rules-helper.o: test-rules-helper.c ucxtest.h \
  ../src/chess/rules.h
 	@echo "Compiling $<"

mercurial