summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-03-16 20:33:08 +1300
committerDavid Phillips <david@sighup.nz>2019-03-16 20:33:08 +1300
commit16a2da0f217aa4f2da4b084014e4da731740e0df (patch)
treef86f9bfe2c02c4d0c61c0fc523f22d65703f0eb5 /Makefile
parent605e548e42c2ec4882a65b88a09c329a4819cb0a (diff)
downloadsudoku-16a2da0f217aa4f2da4b084014e4da731740e0df.tar.xz
Add simple solver testing framework
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d5483ab..f8dc3da 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,20 @@
CFLAGS += -Werror -Wall
-all: solve
+all: solver
-solve: display.o update.o load.o cell.h load.h
+solver: solver.o load.o update.o display.o solve.o load.h
+
+test-solver: test-solver.o load.o update.o solve.o load.h
+
+solve.o: solve.c update.h cell.h
display.o: display.c cell.h display.h
update.o: update.c cell.h display.h
+.PHONY: test
+test: test-solver
+ - ./run_tests.sh
+
clean:
- rm -f *.o solve
+ rm -f *.o solver test-solver