TESTS=opusenc

VPATH=../../examples


all: $(TESTS:%=%_example) $(TESTS:%=%_test)
clean:
	@rm -f $(TESTS:%=%_example) $(TESTS:%=%_test)

.PHONY: all clean

CFLAGS=$(shell pkg-config --cflags libopusenc)
LDLIBS=$(shell pkg-config --libs libopusenc)
infile=input.wav

%_test: %_example
	./$^ $(infile) 2>&1 >$@

opusenc_test: opusenc_example
	./$^ $(infile) $@
