all: tikker run

tikker: tikker.c sormc.h
	gcc tikker.c -Ofast -Wall -Werror -Wextra -o tikker -lsqlite3

run:
	./tikker

PYTHON="./.venv/bin/python"

ensure_env:
	-@python3 -m venv .venv

plot: ensure_env
	$(PYTHON) plot.py

graph: graph.c
	gcc -o graph graph.c -I/usr/include/SDL2 -L/usr/lib -lSDL2
	./graph

graph2: graph2.c
	gcc -o graph2 graph2.c -I/usr/include/SDL2 -L/usr/lib -lSDL2
	./graph2