lama_byterun/regression/x86only/Makefile

18 lines
407 B
Makefile
Raw Normal View History

2019-11-19 03:24:17 +03:00
TESTS=$(sort $(basename $(wildcard test*.expr)))
LIBS=$(patsubst %.expr,%.o, $(sort $(wildcard Lib*.expr)))
2018-11-01 15:12:45 +03:00
RC=../../src/rc.opt
.PHONY: check $(TESTS)
check: $(TESTS)
%.o: %.expr
RC_RUNTIME=../../runtime $(RC) -c -I . $<
$(TESTS): %: %.expr $(LIBS)
RC_RUNTIME=../../runtime $(RC) -I . $< && cat $@.input | ./$@ > $@.log && diff -u $@.log orig/$@.log
2018-11-01 15:12:45 +03:00
clean:
rm -f test*.log *.i *.o *.s *~ $(TESTS)