1CROSS_COMPILE ?=
2
3CC = $(CROSS_COMPILE)gcc
4CFLAGS = -Wall -Wextra -Werror -Wfatal-errors -I ../include
5
6VPATH = ../src
7
8EXAMPLES += pcm-readi
9EXAMPLES += pcm-writei
10
11.PHONY: all
12all: $(EXAMPLES)
13
14pcm-readi pcm-writei: LDLIBS+=-ldl
15
16pcm-readi: pcm-readi.c -ltinyalsa
17
18pcm-writei: pcm-writei.c -ltinyalsa
19
20.PHONY: clean
21clean:
22	rm -f $(EXAMPLES)
23
24