# driver/capture_ring.h, the raw input capture's interrupt-to-thread ring,
# on the host under ThreadSanitizer; see main.c.
CC = gcc
CFLAGS = -O1 -g -Wall -Wextra -std=gnu99 -I../../driver -fsanitize=thread
LIBS = -lpthread

.PHONY: all run clean
all: test

test: main.c ../../driver/capture_ring.h
	$(CC) $(CFLAGS) main.c $(LIBS) -o $@

run: test
	timeout 120 ./test

clean:
	rm -f test
