aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile
blob: c52d36774ca90295fcd6392000ed7d29df842fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CROSS_COMPILE ?=

CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall -Wextra -Werror -Wfatal-errors -I ../include

VPATH = ../src

EXAMPLES += pcm-readi
EXAMPLES += pcm-writei

.PHONY: all
all: $(EXAMPLES)

pcm-readi: pcm-readi.c -ltinyalsa -ldl

pcm-writei: pcm-writei.c -ltinyalsa -ldl

.PHONY: clean
clean:
	rm -f $(EXAMPLES)