CFLAGS=-Wall -Wextra -O3 -ffast-math -march=native -std=c99

.PHONY: run old test clean


run: muxleq muxleq.dec
	./muxleq muxleq.dec

old: subleq subleq.dec
	./subleq subleq.dec

muxleq.dec: muxleq.fth
	pforth -q <  $< > $@

1.dec: muxleq muxleq.fth muxleq.dec
	./muxleq muxleq.dec < muxleq.fth > $@

2.dec: muxleq muxleq.fth 1.dec
	./muxleq 1.dec < muxleq.fth > $@

test: 2.dec

subleq.dec: subleq.fth
	pforth -q < $< > $@

clean:
	git clean -dffx 
