Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: GPL-2.0
2#
3
4CFLAGS += $(shell pkg-config --cflags alsa)
5LDLIBS += $(shell pkg-config --libs alsa)
6ifeq ($(LDLIBS),)
7LDLIBS += -lasound
8endif
9CFLAGS += -L$(OUTPUT) -Wl,-rpath=./
10
11OVERRIDE_TARGETS = 1
12
13TEST_GEN_PROGS := mixer-test pcm-test
14
15TEST_GEN_PROGS_EXTENDED := libatest.so
16
17TEST_FILES := conf.d
18
19include ../lib.mk
20
21$(OUTPUT)/libatest.so: conf.c alsa-local.h
22 $(CC) $(CFLAGS) -shared -fPIC $< $(LDLIBS) -o $@
23
24$(OUTPUT)/%: %.c $(TEST_GEN_PROGS_EXTENDED) alsa-local.h
25 $(CC) $(CFLAGS) $< $(LDLIBS) -latest -o $@