File: Makefile

package info (click to toggle)
libopusenc 0.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,900 kB
  • sloc: sh: 4,177; ansic: 3,583; makefile: 135
file content (20 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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) $@