diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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) |