acme/testing/cpus/Makefile
2024-02-16 01:06:48 +00:00

18 lines
310 B
Makefile

ACMEFLAGS = -v0
CPUS := $(subst .a,,$(subst test-,,$(wildcard test-*.a)))
FILES = $(foreach N,$(CPUS),$(N).o)
.SILENT:
%.o: test-%.a
echo "Testing CPU:" $(subst .o,,$@)
acme $(ACMEFLAGS) -o test.o $<
cmp test.o expected-$@
$(RM) test.o
echo "Ok."
all: $(FILES)
echo
echo "Testing CPUs: PASSED"
echo