restructure project

This commit is contained in:
Yanyan Jiang 2020-08-12 05:43:20 +00:00 committed by Zihao Yu
parent a317d8cce1
commit 960dc907e9
87 changed files with 23 additions and 17 deletions

22
tests/cpu-tests/Makefile Normal file
View file

@ -0,0 +1,22 @@
.PHONY: all run clean latest $(ALL)
ALL = $(basename $(notdir $(shell find tests/. -name "*.c")))
all: $(addprefix Makefile., $(ALL))
@echo "" $(ALL)
$(ALL): %: Makefile.%
Makefile.%: tests/%.c latest
@/bin/echo -e "NAME = $*\nSRCS = $<\nLIBS += klib\ninclude $${AM_HOME}/Makefile" > $@
-@make -s -f $@ ARCH=$(ARCH) $(MAKECMDGOALS)
-@rm -f Makefile.$*
# cancel rules included by $(AM_HOME)/Makefile.check
image: ;
default $(MAKECMDGOALS): all ;
clean:
rm -rf Makefile.* build/
latest: