.PHONY: build debug-c debug-vm test

build:
	cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
	cmake --build build

build-release:
	cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
	cmake --build build

debug-c: build
	gdb --args ./build/fzc ${FILE}

debug-vm: build
	gdb --args ./build/fz ${FILE}

test: build
	ctest --output-on-failure --test-dir build

