Allow separate build and source trees

From: Bernard Leak <bernard@brenda-arkle.demon.co.uk>

Allow separate build and source trees.

Modified for the latest CVS tree by tiwai.
This commit is contained in:
Takashi Iwai 2005-08-23 12:09:07 +00:00
parent a33c78ddd8
commit 787b0469e9
3 changed files with 8 additions and 6 deletions

View file

@ -12,10 +12,13 @@ alsainclude_HEADERS = asoundlib.h asoundef.h \
alisp.h pcm_external.h pcm_ioplug.h pcm_extplug.h \
control_external.h
noinst_HEADERS = sys.h search.h list.h aserver.h local.h alsa-symbols.h
noinst_HEADERS = alsa sys.h search.h list.h aserver.h local.h alsa-symbols.h
CLEANFILES = stamp-vh version.h alsa
alsa:
ln -s $(top_srcdir)/include alsa
version.h: stamp-vh alsa
@:
@ -41,11 +44,8 @@ stamp-vh: $(top_builddir)/configure.in
echo timestamp > stamp-vh)
-@rm -f ver.tmp
alsa:
ln -s . $@
INCLUDES=-I$(top_srcdir)/include
install-data-hook:
test -d $(DESTDIR)$(sysincludedir) || mkdir -p $(DESTDIR)$(sysincludedir)
$(INSTALL_DATA) sys.h $(DESTDIR)$(sysincludedir)/asoundlib.h
$(INSTALL_DATA) $(srcdir)/sys.h $(DESTDIR)$(sysincludedir)/asoundlib.h

View file

@ -2,6 +2,8 @@ pkglibdir = $(libdir)/@PACKAGE@/smixer
AM_CFLAGS = -g -O2 -W -Wall
INCLUDES=-I$(top_srcdir)/include
pkglib_LTLIBRARIES = smixer-sbase.la \
smixer-ac97.la \
smixer-hda.la

View file

@ -3,7 +3,7 @@ EXTRA_DIST=Versions
COMPATNUM=@LIBTOOL_VERSION_INFO@
if VERSIONED_SYMBOLS
VSYMS = -Wl,--version-script=Versions
VSYMS = -Wl,--version-script=$(srcdir)/Versions
else
VSYMS =
endif