1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
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-writei: LDLIBS+=-ldl pcm-readi: pcm-readi.c -ltinyalsa pcm-writei: pcm-writei.c -ltinyalsa .PHONY: clean clean: rm -f $(EXAMPLES)