CC ?= cc
CFLAGS ?= -O3 -flto -march=native -std=c11 -Wall -Wextra -Wpedantic
LDFLAGS ?= -flto -pthread

.PHONY: all clean test

all: fieldws

fieldws: src/fieldws.c
	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)

test: fieldws
	python3 tests/smoke.py

clean:
	rm -f fieldws
