Add support for Solaris/x86 (bug #3064)
[asterisk/asterisk.git] / utils / Makefile
index dcacce2..a3f04d1 100755 (executable)
@@ -12,6 +12,9 @@ TARGET=stereorize
 
 TARGET+=$(shell if [ -f /usr/include/popt.h ]; then echo "smsq"; else if [ -f /usr/local/include/popt.h ]; then echo "smsq"; fi ; fi)
 TARGET+=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else if [ -f /usr/local/include/newt.h ]; then echo "astman"; fi ; fi)
+ifeq (${OSARCH},SunOS)
+SOL=../strcompat.o
+endif
 
 all: depend $(TARGET)
 
@@ -32,7 +35,7 @@ stereorize: stereorize.o frame.o
        $(CC) $(CFLAGS) -o stereorize stereorize.o frame.o -lm
 
 smsq: smsq.o
-       $(CC) $(CFLAGS) -o smsq smsq.o -lpopt
+       $(CC) $(CFLAGS) -o smsq ${SOL} smsq.o -lpopt
 
 ifneq ($(wildcard .depend),)
 include .depend