test/Makefile

changeset 213
cf7b86d79d35
parent 197
9cbd4f09a22f
equal deleted inserted replaced
212:16a114c84ff5 213:cf7b86d79d35
29 include ../config.mk 29 include ../config.mk
30 30
31 SRC = run-tests.c \ 31 SRC = run-tests.c \
32 test-datatypes.c \ 32 test-datatypes.c \
33 test-rules-helper.c \ 33 test-rules-helper.c \
34 test-real-pgn.c 34 test-real-pgn.c \
35 test-pawn.c \
36 test-rook.c \
37 test-knight.c \
38 test-bishop.c \
39 test-queen.c \
40 test-king.c \
41
35 42
36 OBJ = $(SRC:%.c=$(BUILDDIR)/%.o) 43 OBJ = $(SRC:%.c=$(BUILDDIR)/%.o)
37 44
38 CFLAGS += -I../src 45 CFLAGS += -I../src
39 46
46 53
47 $(BUILDDIR)/run-tests.o: run-tests.c ucxtest.h 54 $(BUILDDIR)/run-tests.o: run-tests.c ucxtest.h
48 @echo "Compiling $<" 55 @echo "Compiling $<"
49 $(CC) -o $@ $(CFLAGS) -c $< 56 $(CC) -o $@ $(CFLAGS) -c $<
50 57
58 $(BUILDDIR)/test-bishop.o: test-bishop.c ../src/chess/rules.h ucxtest.h
59 @echo "Compiling $<"
60 $(CC) -o $@ $(CFLAGS) -c $<
61
51 $(BUILDDIR)/test-datatypes.o: test-datatypes.c ../src/chess/rules.h 62 $(BUILDDIR)/test-datatypes.o: test-datatypes.c ../src/chess/rules.h
63 @echo "Compiling $<"
64 $(CC) -o $@ $(CFLAGS) -c $<
65
66 $(BUILDDIR)/test-king.o: test-king.c ../src/chess/rules.h ucxtest.h
67 @echo "Compiling $<"
68 $(CC) -o $@ $(CFLAGS) -c $<
69
70 $(BUILDDIR)/test-knight.o: test-knight.c ../src/chess/rules.h ucxtest.h
71 @echo "Compiling $<"
72 $(CC) -o $@ $(CFLAGS) -c $<
73
74 $(BUILDDIR)/test-pawn.o: test-pawn.c ../src/chess/rules.h ucxtest.h
75 @echo "Compiling $<"
76 $(CC) -o $@ $(CFLAGS) -c $<
77
78 $(BUILDDIR)/test-queen.o: test-queen.c ../src/chess/rules.h ucxtest.h
52 @echo "Compiling $<" 79 @echo "Compiling $<"
53 $(CC) -o $@ $(CFLAGS) -c $< 80 $(CC) -o $@ $(CFLAGS) -c $<
54 81
55 $(BUILDDIR)/test-real-pgn.o: test-real-pgn.c ucxtest.h ../src/chess/pgn.h \ 82 $(BUILDDIR)/test-real-pgn.o: test-real-pgn.c ucxtest.h ../src/chess/pgn.h \
56 ../src/chess/rules.h data/game001.pgn data/game002.pgn data/game003.pgn \ 83 ../src/chess/rules.h data/game001.pgn data/game002.pgn data/game003.pgn \
92 data/game144.pgn data/game145.pgn data/game146.pgn data/game147.pgn \ 119 data/game144.pgn data/game145.pgn data/game146.pgn data/game147.pgn \
93 data/game148.pgn data/game149.pgn data/game150.pgn 120 data/game148.pgn data/game149.pgn data/game150.pgn
94 @echo "Compiling $<" 121 @echo "Compiling $<"
95 $(CC) -o $@ $(CFLAGS) -c $< 122 $(CC) -o $@ $(CFLAGS) -c $<
96 123
124 $(BUILDDIR)/test-rook.o: test-rook.c ../src/chess/rules.h ucxtest.h
125 @echo "Compiling $<"
126 $(CC) -o $@ $(CFLAGS) -c $<
127
97 $(BUILDDIR)/test-rules-helper.o: test-rules-helper.c ucxtest.h \ 128 $(BUILDDIR)/test-rules-helper.o: test-rules-helper.c ucxtest.h \
98 ../src/chess/rules.h 129 ../src/chess/rules.h
99 @echo "Compiling $<" 130 @echo "Compiling $<"
100 $(CC) -o $@ $(CFLAGS) -c $< 131 $(CC) -o $@ $(CFLAGS) -c $<
101 132

mercurial