add cputest
This commit is contained in:
parent
304daa3501
commit
7e870cb2e4
36 changed files with 975 additions and 0 deletions
22
cpu-tests/Makefile
Normal file
22
cpu-tests/Makefile
Normal 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:
|
Loading…
Add table
Add a link
Reference in a new issue