aboutsummaryrefslogtreecommitdiff
path: root/test/Makefile
blob: 9e6530ee6b61bfb1579645470a457f5e41c5eb25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CC ?= gcc
C_FLAGS ?= -I../ -Wall -Wextra -Wpedantic $(shell pkg-config --cflags lv2) \
					 -fprofile-arcs -ftest-coverage

all: osc_test

osc_test: osc_test.c ../osc.lv2/*.h
	$(CC) -std=gnu11 -g -o $@ $< $(C_FLAGS) -lpthread

check: osc_test
	./$<
	gcov $<.c

clean:
	rm -f osc_test *.gcov *.gc* vgcore.*