blob: 58cb7ca336f95ab5423a83879230fc3f8b422188 [file] [log] [blame]
Iliyan Malchev4765c432012-06-11 14:36:16 -07001AM_CFLAGS = -Wundef \
2 -Wstrict-prototypes \
3 -Wno-trigraphs \
4 -g -O0 \
5 -fno-inline \
6 -fno-short-enums \
7 -fpic \
8 -DQC_PROP
9
10AM_CPPFLAGS = -I. \
11 $(ACDBLOADER_CFLAGS)
12
13c_sources = alsa_mixer.c \
14 alsa_pcm.c \
15 alsa_ucm.c
16
17h_sources = alsa_ucm.h \
18 msm8960_use_cases.h \
19 alsa_audio.h
20
21library_includedir = $(pkgincludedir)
22library_include_HEADERS = $(h_sources)
23
24lib_LTLIBRARIES = libalsa_intf.la
25libalsa_intf_la_CC = @CC@
26libalsa_intf_la_SOURCES = $(c_sources) $(h_sources)
27libalsa_intfdir = $(prefix)/snd_soc_msm
28dist_libalsa_intf_DATA = snd_soc_msm/snd_soc_msm \
29 snd_soc_msm/snd_soc_msm_2x \
Mingming Yinb0f0fce2012-11-29 20:04:36 -080030 snd_soc_msm/snd_soc_msm_2x_mpq \
Iliyan Malchev4765c432012-06-11 14:36:16 -070031 snd_soc_msm/snd_soc_msm_2x_Fusion3 \
Mingming Yinb0f0fce2012-11-29 20:04:36 -080032 snd_soc_msm/snd_soc_msm_Sitar \
33 snd_soc_msm/snd_soc_msm_I2S \
34 snd_soc_msm/snd_soc_msm_auxpcm \
35 snd_soc_msm/snd_soc_msm_2x_auxpcm \
36 snd_soc_msm/snd_soc_msm_2x_mpq_auxpcm \
37 snd_soc_msm/snd_soc_msm_2x_Fusion3_auxpcm \
38 snd_soc_msm/snd_soc_msm_Sitar_auxpcm \
39 snd_soc_msm/snd_soc_msm_I2SFusion \
40 snd_soc_msm/snd_soc_msm_Taiko \
41 snd_soc_msm/snd_soc_msm_Taiko_liquid
Iliyan Malchev4765c432012-06-11 14:36:16 -070042libalsa_intf_la_CFLAGS = $(AM_CFLAGS) -DUSE_GLIB @GLIB_CFLAGS@ -DCONFIG_DIR=\"/etc/snd_soc_msm/\"
43libalsa_intf_la_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_GLIB @GLIB_CFLAGS@
44libalsa_intf_la_LDFLAGS = $(ACDBLOADER_LIBS) -lm -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
45
46requiredlibs = libalsa_intf.la
47
Mingming Yinb0f0fce2012-11-29 20:04:36 -080048bin_PROGRAMS = aplay amix arec alsaucm_test
Iliyan Malchev4765c432012-06-11 14:36:16 -070049
50aplay_SOURCES = aplay.c
51aplay_LDADD = -lpthread $(requiredlibs)
52
53amix_SOURCES = amix.c
54amix_LDADD = -lpthread $(requiredlibs)
55
56arec_SOURCES = arec.c
57arec_LDADD = -lpthread $(requiredlibs)
Mingming Yinb0f0fce2012-11-29 20:04:36 -080058
59alsaucm_test_SOURCES = alsaucm_test.c
60alsaucm_test_LDADD = -lpthread $(requiredlibs)