From c671d6612be0fb28eea498246c39bb5032afa872 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 2 Aug 2023 21:19:14 +0300 Subject: add some basic checks --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a112e1c..9a89746 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,7 @@ ARCH != uname -m LINT = $(COMPILE) $(LINTFLAGS) +TEST_OBJS != ./scripts/gen-deps --sources tests/check.c OBJS != ./scripts/gen-deps --sources "$(SOURCES)" OPS != ./scripts/gen-ops --ops "$(OP_SOURCES)" IMMS != ./scripts/gen-ops --imms "$(IMM_SOURCES)" @@ -94,8 +95,11 @@ docs: @doxygen docs/doxygen.conf .PHONY: check -check: copyjit - ./tests/check.sh +check: tests/check + ./tests/check + +tests/check: $(OBJS) $(TEST_OBJS) + $(COMPILE) build/tests/check.o build/src/copyjit.o -o tests/check copyjit: $(OBJS) $(COMPILE) $(OBJS) -o $@ @@ -111,6 +115,7 @@ copyjit: $(OBJS) clean: @$(RM) -r build copyjit lib/gen/* lib/*.bin lib/*.d lib/empty lib/prune deps.mk @$(RM) -r lib/*decls.h lib/*defns.h lib/ops.h lib/imm.h + @$(RM) tests/check .PHONY: clean_docs clean_docs: -- cgit v1.3