mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
You may now do: mkdir build cd build ../configure ./audacity And all but one directory will remain unmolested...no more object files in "src". And if you look carefully, you'll see that the newly built "audacity" is copied to the top of the build tree...no more having to use "src/audacity" to run. You can of course still do the configure from the top and get all of the objects strewn about the tree. I still haven't figured out how to keep the locale directory from getting soiled. I'm not really sure there's a way around it really.
45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
Index: lib-src/libvamp/Makefile.in
|
|
===================================================================
|
|
--- lib-src/libvamp/Makefile.in (revision 13509)
|
|
+++ lib-src/libvamp/Makefile.in (working copy)
|
|
@@ -3,6 +3,9 @@
|
|
# libraries, example plugins, and the test host. Please adjust to
|
|
# suit your operating system requirements.
|
|
|
|
+srcdir = @srcdir@
|
|
+VPATH = @srcdir@
|
|
+
|
|
APIDIR = vamp
|
|
|
|
SDKDIR = vamp-sdk
|
|
@@ -40,7 +43,7 @@
|
|
#
|
|
CC = @CC@
|
|
CXX = @CXX@
|
|
-CXXFLAGS = -I. @CXXFLAGS@ @SNDFILE_CFLAGS@
|
|
+CXXFLAGS = -I. -I$(srcdir) @CXXFLAGS@ @SNDFILE_CFLAGS@
|
|
|
|
# ar, ranlib
|
|
#
|
|
@@ -104,7 +107,7 @@
|
|
# Additional flags for making a plugin. This version script tells the
|
|
# GNU linker to make all symbols in the library hidden except for the
|
|
# public entry point. It's not essential, but makes a tidier library.
|
|
-PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map
|
|
+PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=${srcdir}/build/vamp-plugin.map
|
|
|
|
|
|
## For OS/X with g++:
|
|
@@ -218,8 +221,10 @@
|
|
|
|
RDFGEN_TARGET = \
|
|
$(RDFGENDIR)/vamp-rdf-template-generator
|
|
+prep:
|
|
+ mkdir -p $(SDKSRCDIR) $(HOSTSDKSRCDIR) $(EXAMPLEDIR)
|
|
|
|
-sdk: sdkstatic $(SDK_DYNAMIC) $(HOSTSDK_DYNAMIC)
|
|
+sdk: prep sdkstatic $(SDK_DYNAMIC) $(HOSTSDK_DYNAMIC)
|
|
|
|
sdkstatic: $(SDK_STATIC) $(HOSTSDK_STATIC)
|
|
$(RANLIB) $(SDK_STATIC)
|