Add stereoize (bug #3142), faster than soxmix
[asterisk/asterisk.git] / utils / Makefile
1 #
2 # Don't use ast mm routines
3 #
4 CFLAGS+=-DNO_AST_MM
5
6 OSARCH=$(shell uname -s)
7 ifeq ($(findstring BSD,${OSARCH}),BSD)
8 CFLAGS+=-I/usr/local/include -L/usr/local/lib
9 endif
10
11 TARGET=stereorize
12
13 TARGET+=$(shell if [ -f /usr/include/popt.h ]; then echo "smsq"; else if [ -f /usr/local/include/popt.h ]; then echo "smsq"; fi ; fi)
14 TARGET+=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else if [ -f /usr/local/include/newt.h ]; then echo "astman"; fi ; fi)
15
16 all: depend $(TARGET)
17
18 install:
19         for x in $(TARGET); do \
20                 if [ "$$x" != "none" ]; then \
21                         install -m 755 $$x $(DESTDIR)$(ASTSBINDIR)/$$x; \
22                 fi; \
23         done 
24
25 clean:
26         rm -f *.o astman smsq .depend
27
28 astman: astman.o ../md5.o
29         $(CC) $(CFLAGS) -o astman astman.o ../md5.o -lnewt
30
31 stereorize: stereorize.o frame.o
32         $(CC) $(CFLAGS) -o stereorize stereorize.o frame.o -lm
33
34 smsq: smsq.o
35         $(CC) $(CFLAGS) -o smsq smsq.o -lpopt
36
37 ifneq ($(wildcard .depend),)
38 include .depend
39 endif
40
41 depend: .depend
42
43 .depend:
44         ../mkdep $(CFLAGS) `ls *.c`
45