ref: b5f7aadc6009f79c62fcb2ed96a34a9ce5ddb49f
parent: 1c2502ece20e7562b1f66ac5f91a038f6c3d8ec7
author: cbagwell <cbagwell>
date: Fri Nov 7 09:31:01 EST 2008
Add some missing $(EXEEXT)'s for OS/2. Remove running SoX during compile phase because OS/2 is having hard time finding libsox DLL until installed. Fix broken local symlinks so that they point to libtool wrapper script to make them run better. Attempt to link to either sox$(EXEEXT) or libtool scripts to support both static/dynamic builds.
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -379,10 +379,14 @@
all: sox$(EXEEXT) play rec soxi sox_sample_test$(EXEEXT) example0$(EXEEXT) example1$(EXEEXT) example2$(EXEEXT)
-play rec soxi: sox$(EXEEXT)
- ./sox -V4 --version
- test -f .libs/lt-sox && ( $(RM) $@ && $(LN_S) .libs/lt-sox $@ ) || $(LN_S) sox$(EXEEXT) $@
+play rec: sox$(EXEEXT)
+ if test "$(PLAYRECLINKS)" = "yes"; then \
+ test -f sox$(EXEEXT) && ( $(RM) $@ && $(LN_S) sox$(EXEEXT) $@ ) || $(LN_S) sox $@; \
+ fi
+soxi: sox$(EXEEXT)
+ test -f sox$(EXEEXT) && ( $(RM) $@ && $(LN_S) sox$(EXEEXT) $@ ) || $(LN_S) sox $@;
+
install-exec-hook:
if test "$(PLAYRECLINKS)" = "yes"; then \
cd $(DESTDIR)$(bindir); $(RM) play rec soxi; $(LN_S) sox play; $(LN_S) sox rec; $(LN_S) sox soxi; \
@@ -395,8 +399,8 @@
clean-local:
$(RM) play rec soxi
- $(RM) sox_sample_test
- $(RM) example0 example1 example2
+ $(RM) sox_sample_test$(EXEEXT)
+ $(RM) example0$(EXEEXT) example1$(EXEEXT) example2$(EXEEXT)
distclean-local:
$(RM) soxstdint.h