CC = ocamlc -rectypes
SRC = ../../src

.PHONY: testparser test clean

test_assign: handlero
	$(CC) -I $(SRC) -c testparser.ml
	$(CC) -I $(SRC) parser.cmo utils.cmo scanner.cmo testparserhandler.cmo testparser.cmo -o testparser

scanner:
	make -C $(SRC)

handlero: scanner
	$(CC) -I $(SRC) -c testparserhandler.ml

test: test_assign
	./testparser ./in/ ./out/
clean:
	rm -rf *.cmi *.cmo testparser
