2024-09-09 08:52:07 +00:00
|
|
|
AM_CFLAGS = -Wundef \
|
|
|
|
-Wstrict-prototypes \
|
|
|
|
-Wno-trigraphs \
|
|
|
|
-g -O0 \
|
|
|
|
-fno-inline \
|
|
|
|
-fno-short-enums \
|
2024-09-09 08:57:42 +00:00
|
|
|
-fpic
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
AM_CPPFLAGS = -I.
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
c_sources = alsa_mixer.c \
|
|
|
|
alsa_pcm.c \
|
|
|
|
alsa_ucm.c
|
|
|
|
|
|
|
|
h_sources = alsa_ucm.h \
|
|
|
|
msm8960_use_cases.h \
|
|
|
|
alsa_audio.h
|
|
|
|
|
|
|
|
library_includedir = $(pkgincludedir)
|
|
|
|
library_include_HEADERS = $(h_sources)
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libalsa_intf.la
|
|
|
|
libalsa_intf_la_CC = @CC@
|
|
|
|
libalsa_intf_la_SOURCES = $(c_sources) $(h_sources)
|
|
|
|
libalsa_intfdir = $(prefix)/snd_soc_msm
|
|
|
|
dist_libalsa_intf_DATA = snd_soc_msm/snd_soc_msm \
|
|
|
|
snd_soc_msm/snd_soc_msm_2x \
|
|
|
|
snd_soc_msm/snd_soc_msm_2x_Fusion3 \
|
|
|
|
snd_soc_msm/snd_soc_msm_Sitar \
|
|
|
|
snd_soc_msm/snd_soc_msm_I2S \
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_msm/snd_soc_msm_Taiko_I2S \
|
|
|
|
snd_soc_msm/snd_soc_msm_8x10_wcd \
|
|
|
|
snd_soc_msm/snd_soc_msm_8x10_wcd_skuaa \
|
|
|
|
snd_soc_msm/snd_soc_msm_8x10_wcd_skuab \
|
|
|
|
snd_soc_msm/snd_soc_msm_Tapan \
|
|
|
|
snd_soc_msm/snd_soc_msm_TapanLite \
|
|
|
|
snd_soc_msm/snd_soc_msm_Tapan_SKUF \
|
|
|
|
snd_soc_msm/snd_soc_msm_Tomtom_I2S \
|
|
|
|
snd_soc_msm/snd_soc_msm_Tasha_I2S
|
|
|
|
|
|
|
|
if USE_QCOM_ACDB
|
2024-09-09 08:52:07 +00:00
|
|
|
libalsa_intf_la_CFLAGS = $(AM_CFLAGS) -DUSE_GLIB @GLIB_CFLAGS@ -DCONFIG_DIR=\"/etc/snd_soc_msm/\"
|
2024-09-09 08:57:42 +00:00
|
|
|
libalsa_intf_la_CPPFLAGS = $(AM_CPPFLAGS) $(ACDBLOADER_CFLAGS) -DQC_PROP -DUSE_GLIB @GLIB_CFLAGS@
|
2024-09-09 08:52:07 +00:00
|
|
|
libalsa_intf_la_LDFLAGS = $(ACDBLOADER_LIBS) -lm -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
|
2024-09-09 08:57:42 +00:00
|
|
|
else
|
|
|
|
libalsa_intf_la_CFLAGS = $(AM_CFLAGS) -DUSE_GLIB @GLIB_CFLAGS@ -DCONFIG_DIR=\"/etc/snd_soc_msm/\"
|
|
|
|
libalsa_intf_la_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_GLIB @GLIB_CFLAGS@
|
|
|
|
libalsa_intf_la_LDFLAGS = -lm -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
|
|
|
|
endif
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
requiredlibs = libalsa_intf.la
|
|
|
|
|
|
|
|
bin_PROGRAMS = aplay amix arec alsaucm_test
|
|
|
|
|
|
|
|
aplay_SOURCES = aplay.c
|
|
|
|
aplay_LDADD = -lpthread $(requiredlibs)
|
|
|
|
|
|
|
|
amix_SOURCES = amix.c
|
|
|
|
amix_LDADD = -lpthread $(requiredlibs)
|
|
|
|
|
|
|
|
arec_SOURCES = arec.c
|
|
|
|
arec_LDADD = -lpthread $(requiredlibs)
|
|
|
|
|
|
|
|
alsaucm_test_SOURCES = alsaucm_test.c
|
2024-09-09 08:57:42 +00:00
|
|
|
if USE_QCOM_ACDB
|
|
|
|
alsaucm_test_LDADD = -lpthread $(requiredlibs) $(ACDBLOADER_LIBS)
|
|
|
|
alsaucm_test_CPPFLAGS = -DQC_PROP $(ACDBLOADER_CFLAGS)
|
|
|
|
else
|
2024-09-09 08:52:07 +00:00
|
|
|
alsaucm_test_LDADD = -lpthread $(requiredlibs)
|
2024-09-09 08:57:42 +00:00
|
|
|
endif
|