shithub: sox

Download patch

ref: d3f0b58897fb47913449b7489c2cef7ab9d0f510
parent: 364a6b4aa8b8329b4c2bdfbdf64b10c72b3c344e
author: rrt <rrt>
date: Fri Nov 24 15:32:40 EST 2006

soxmix is now a link, not a binary

--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -85,17 +85,13 @@
 PLAY_0    =
 PLAY_1    = play
 
-all: sox soxmix $(PLAY_$(PLAY_SUPPORT))
+all: sox $(PLAY_$(PLAY_SUPPORT))
 
 sox: $(GSM_$(GSM_SUPPORT)) libst.a sox.o
 	$(CC) $(LDFLAGS) -o sox sox.o $(LIBS)
+	$(RM) soxmix
+	$(LN_S) soxmix sox
 
-soxmix.o: sox.c
-	$(CC) $(CFLAGS) -DSOXMIX -c $(srcdir)/sox.c -o soxmix.o
-
-soxmix: $(GSM_$(GSM_SUPPORT)) libst.a soxmix.o
-	$(CC) $(LDFLAGS) -o soxmix soxmix.o $(LIBS)
-
 libst.a: $(LIBOBJS)
 	$(AR) libst.a $(LIBOBJS) 
 	$(RANLIB) libst.a
@@ -106,10 +102,11 @@
 PLAY_INSTALL_0    =
 PLAY_INSTALL_1    = install-play
 
-install: sox soxmix $(PLAY_INSTALL_$(PLAY_SUPPORT))
+install: sox $(PLAY_INSTALL_$(PLAY_SUPPORT))
 	$(top_srcdir)/mkinstalldirs $(bindir)
 	$(INSTALL) -c -m 755 sox $(bindir)
-	$(INSTALL) -c -m 755 soxmix $(bindir)
+	$(RM) $(bindir)/soxmix
+	cd $(bindir) && $(LN_S) soxmix sox
 
 install-play:
 	if [ -f $(bindir)/rec ] ; then $(RM) $(bindir)/rec; fi