mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-24 14:54:49 +08:00
079d93b7db
Follow the pattern used by other selftests like memfd and fall back on the standard toolchain options to build with a system installed alsa-lib if we don't get anything from pkg-config. This reduces our build dependencies a bit in the common case while still allowing use of pkg-config in case there is a need for it. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220531151337.2933810-1-broonie@kernel.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 lines
216 B
Makefile
13 lines
216 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
|
|
CFLAGS += $(shell pkg-config --cflags alsa)
|
|
LDLIBS += $(shell pkg-config --libs alsa)
|
|
ifeq ($(LDLIBS),)
|
|
LDLIBS += -lasound
|
|
endif
|
|
|
|
TEST_GEN_PROGS := mixer-test
|
|
|
|
include ../lib.mk
|