mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
"./configure" options for selecting ALSA configuration (default /usr/share/alsa) and plugin (/usr/lib/alsa-lib) directories introduced by alsa-hg/alsa-lib changeset 2284 cause problems with cross-compilation and packaging - there is no way to redefine them in runtime, during installation phase. This patch adds a level of indirection between constants and their usage - alsaconfigdir for ALSA_CONFIG_DIR and alsaplugindir for ALSA_PLUGIN_DIR - which can be redefined during "make install" stage. Signed-off-by: Pawel MOLL <pawel.moll@st.com>
37 lines
1,000 B
Makefile
37 lines
1,000 B
Makefile
alsaplugindir = @ALSA_PLUGIN_DIR@
|
|
pkglibdir = $(alsaplugindir)/smixer
|
|
pythonlibs = @PYTHON_LIBS@
|
|
pythonincludes = @PYTHON_INCLUDES@
|
|
|
|
AM_CFLAGS = -g -O2 -W -Wall
|
|
|
|
INCLUDES=-I$(top_srcdir)/include
|
|
|
|
pkglib_LTLIBRARIES = smixer-sbase.la \
|
|
smixer-ac97.la \
|
|
smixer-hda.la
|
|
|
|
if BUILD_PYTHON
|
|
pkglib_LTLIBRARIES += smixer-python.la
|
|
endif
|
|
|
|
noinst_HEADERS = sbase.h
|
|
|
|
smixer_sbase_la_SOURCES = sbase.c
|
|
smixer_sbase_la_LDFLAGS = -module -avoid-version
|
|
smixer_sbase_la_LIBADD = ../../../src/libasound.la
|
|
|
|
smixer_ac97_la_SOURCES = ac97.c sbasedl.c
|
|
smixer_ac97_la_LDFLAGS = -module -avoid-version
|
|
smixer_ac97_la_LIBADD = ../../../src/libasound.la
|
|
|
|
smixer_hda_la_SOURCES = hda.c sbasedl.c
|
|
smixer_hda_la_LDFLAGS = -module -avoid-version
|
|
smixer_hda_la_LIBADD = ../../../src/libasound.la
|
|
|
|
if BUILD_PYTHON
|
|
smixer_python_la_SOURCES = python.c
|
|
smixer_python_la_LDFLAGS = -module -avoid-version $(pythonlibs)
|
|
smixer_python_la_CFLAGS = $(pythonincludes)
|
|
smixer_python_la_LIBADD = ../../../src/libasound.la
|
|
endif
|