From 605ac7f13be9f597d3cf7ab3786b71f5cda8c9fa Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Sat, 19 Sep 2020 21:22:41 +0200 Subject: initial work towards translating wasm to stack machine (with a provisional bench) --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 677053a..d17a892 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,6 @@ include Makefile.config include Makefile.util - -# Short C programs -TOOLS := VGAdump2ppm +include tools/Makefile.tools TEST_TARGETS := $(addprefix test_,$(shell ls tests)) @@ -55,14 +53,17 @@ quicktest : $(TEST_TARGETS) : test_% : $(MAKE) -C tests/$* + tools : $(TOOLS_TARGETS) -$(TOOLS_TARGETS) : tools/% : tools/%.c - $(CC) $(CFLAGS) $^ -o $@ +$(TOOLS_TARGETS) : tools/% : + $(MAKE) -C tools/ $* + clean : for TEST in tests/*; do $(MAKE) -C $$TEST clean >/dev/null; done - rm $(GENERATED_MEM_FILES) $(TOOLS_TARGETS) 2>/dev/null || true + rm $(GENERATED_MEM_FILES) 2>/dev/null || true + $(MAKE) -C tools/ clean >/dev/null rm $(addprefix design.,v json asc bin) timing.rpt 2>/dev/null || true -.PHONY : all tools test quicktest $(TEST_TARGETS) +.PHONY : all tools test quicktest $(TEST_TARGETS) $(TOOLS_TARGETS) -- cgit v1.2.3