24 lines
463 B
Makefile
24 lines
463 B
Makefile
FLAP = ../../_build/default/src/flap.exe
|
|
TARGET = retrolix
|
|
|
|
main:
|
|
@echo make interpret
|
|
@echo make compilo
|
|
|
|
build:
|
|
@cd ../.. && dune build --display=quiet
|
|
|
|
interpret: build
|
|
@for f in $(wildcard *.$(TARGET)); do \
|
|
printf "%s: " $$f; \
|
|
./$(FLAP) -s $(TARGET) -d true -r true $$f; \
|
|
printf "\n"; \
|
|
done
|
|
|
|
compilo: build
|
|
@for f in $(wildcard *.$(TARGET)); do \
|
|
printf "%s: " $$f; \
|
|
./$(FLAP) -t elf $$f && \
|
|
./$${f%.*}.elf; \
|
|
printf "\n"; \
|
|
done
|