lama_byterun/regression/x86only/Makefile
Dmitry Boulytchev 61296c51e7 Massive renaming
2020-02-16 00:21:15 +03:00

17 lines
403 B
Makefile

TESTS=$(sort $(basename $(wildcard test*.lama)))
LIBS=$(patsubst %.lama,%.o, $(sort $(wildcard Lib*.lama)))
LAMAC=../../src/lamac
.PHONY: check $(TESTS)
check: $(TESTS)
%.o: %.lama
LAMA=../../runtime $(LAMAC) -c -I . $<
$(TESTS): %: %.lama $(LIBS)
LAMA=../../runtime $(LAMAC) -I . $< && cat $@.input | ./$@ > $@.log && diff -u $@.log orig/$@.log
clean:
rm -f test*.log *.i *.o *.s *~ $(TESTS)