lama_byterun/stdlib/regression/Makefile

22 lines
452 B
Makefile
Raw Normal View History

2024-06-30 19:38:33 +02:00
TESTS=$(sort $(filter-out test02 test30, $(basename $(wildcard test*.lama))))
2020-02-16 00:21:15 +03:00
LAMAC=../../src/lamac
2024-07-01 11:37:41 +02:00
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
else ifeq ($(UNAME_S),Darwin)
2024-07-02 17:07:50 +02:00
ARCH = -arch x86_64
2024-07-01 11:37:41 +02:00
endif
.PHONY: check $(TESTS)
check: $(TESTS)
2020-02-16 00:21:15 +03:00
$(TESTS): %: %.lama
2023-09-05 20:55:48 +02:00
@echo "stdlib/regression/$@"
2024-07-01 11:37:41 +02:00
@LAMA=../../runtime $(LAMAC) -I .. -ds -dp $< && $(ARCH) ./$@ > $@.log && diff $@.log orig/$@.log
clean:
2020-01-14 18:35:33 +03:00
$(RM) test*.log *.s *~ $(TESTS) *.i