OSDN Git Service

Allow separate build and source trees
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 Aug 2005 12:09:07 +0000 (12:09 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Aug 2005 12:09:07 +0000 (12:09 +0000)
From: Bernard Leak <bernard@brenda-arkle.demon.co.uk>

Allow separate build and source trees.

Modified for the latest CVS tree by tiwai.

include/Makefile.am
modules/mixer/simple/Makefile.am
src/Makefile.am

index 5f3b66c..307e7c5 100644 (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
index 54d6bd9..82d3a88 100644 (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
index 221639b..5f5d76c 100644 (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