File: Makefile

package info (click to toggle)
opusfile 0.12-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,256 kB
  • sloc: ansic: 7,163; sh: 4,163; makefile: 312
file content (20 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TESTS=opusfile seeking

VPATH=../../examples


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

.PHONY: all clean

CFLAGS=$(shell pkg-config --cflags opusfile opusurl)
LDLIBS=$(shell pkg-config --libs opusfile opusurl)
infile=silence.opus

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

%: %.c
	$(LINK.c) $^ -o $@ $(LDLIBS)