lama_byterun/regression/x86only/Makefile

18 lines
403 B
Makefile
Raw Normal View History

2020-02-16 00:21:15 +03:00
TESTS=$(sort $(basename $(wildcard test*.lama)))
LIBS=$(patsubst %.lama,%.o, $(sort $(wildcard Lib*.lama)))
2018-11-01 15:12:45 +03:00
2020-02-16 00:21:15 +03:00
LAMAC=../../src/lamac
2018-11-01 15:12:45 +03:00
.PHONY: check $(TESTS)
check: $(TESTS)
2020-02-16 00:21:15 +03:00
%.o: %.lama
LAMA=../../runtime $(LAMAC) -c -I . $<
2020-02-16 00:21:15 +03:00
$(TESTS): %: %.lama $(LIBS)
LAMA=../../runtime $(LAMAC) -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)