2005-06-20 17:26:08 +00:00
|
|
|
#
|
|
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
|
|
#
|
|
|
|
# Various utilities
|
|
|
|
#
|
|
|
|
# Copyright (C) 1999-2005, Digium
|
|
|
|
#
|
|
|
|
# Mark Spencer <markster@digium.com>
|
|
|
|
#
|
|
|
|
# This program is free software, distributed under the terms of
|
|
|
|
# the GNU General Public License
|
|
|
|
#
|
|
|
|
|
2003-04-28 19:58:43 +00:00
|
|
|
#
|
|
|
|
# Don't use ast mm routines
|
|
|
|
#
|
|
|
|
CFLAGS+=-DNO_AST_MM
|
2004-06-04 15:44:14 +00:00
|
|
|
|
|
|
|
OSARCH=$(shell uname -s)
|
2004-06-22 17:42:14 +00:00
|
|
|
ifeq ($(findstring BSD,${OSARCH}),BSD)
|
2005-03-27 22:39:17 +00:00
|
|
|
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
|
2004-06-04 15:44:14 +00:00
|
|
|
endif
|
|
|
|
|
2005-08-22 19:29:29 +00:00
|
|
|
TARGET=stereorize streamplayer
|
2004-12-15 16:09:30 +00:00
|
|
|
|
2005-03-27 22:39:17 +00:00
|
|
|
TARGET+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/popt.h ]; then echo "smsq"; else if [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/popt.h ]; then echo "smsq"; fi ; fi)
|
|
|
|
TARGET+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/newt.h ]; then echo "astman"; else if [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/newt.h ]; then echo "astman"; fi ; fi)
|
2005-03-17 23:12:15 +00:00
|
|
|
ifeq (${OSARCH},SunOS)
|
|
|
|
SOL=../strcompat.o
|
|
|
|
endif
|
2004-12-11 22:36:27 +00:00
|
|
|
|
2003-05-06 00:00:20 +00:00
|
|
|
all: depend $(TARGET)
|
2002-07-27 14:29:35 +00:00
|
|
|
|
|
|
|
install:
|
2004-12-15 20:29:31 +00:00
|
|
|
for x in $(TARGET); do \
|
|
|
|
if [ "$$x" != "none" ]; then \
|
2005-05-09 14:20:11 +00:00
|
|
|
$(INSTALL) -m 755 $$x $(DESTDIR)$(ASTSBINDIR)/$$x; \
|
2004-12-15 20:29:31 +00:00
|
|
|
fi; \
|
|
|
|
done
|
2002-07-27 14:29:35 +00:00
|
|
|
|
|
|
|
clean:
|
2005-06-09 21:12:03 +00:00
|
|
|
rm -f *.o astman smsq stereorize check_expr .depend
|
2002-07-27 14:29:35 +00:00
|
|
|
|
2003-03-10 20:39:12 +00:00
|
|
|
astman: astman.o ../md5.o
|
2004-06-04 15:44:14 +00:00
|
|
|
$(CC) $(CFLAGS) -o astman astman.o ../md5.o -lnewt
|
2003-05-06 00:00:20 +00:00
|
|
|
|
2005-01-21 03:56:22 +00:00
|
|
|
stereorize: stereorize.o frame.o
|
|
|
|
$(CC) $(CFLAGS) -o stereorize stereorize.o frame.o -lm
|
|
|
|
|
2005-06-21 20:16:51 +00:00
|
|
|
check_expr : check_expr.c ../ast_expr.a
|
|
|
|
$(CC) $(CFLAGS) -o check_expr check_expr.c ../ast_expr.a
|
|
|
|
|
2004-12-11 22:36:27 +00:00
|
|
|
smsq: smsq.o
|
2005-03-17 23:12:15 +00:00
|
|
|
$(CC) $(CFLAGS) -o smsq ${SOL} smsq.o -lpopt
|
2004-12-11 22:36:27 +00:00
|
|
|
|
2005-08-22 19:29:29 +00:00
|
|
|
streamplayer: streamplayer.o
|
|
|
|
$(CC) $(CFLAGS) -o streamplayer ${SOL} streamplayer.o
|
|
|
|
|
2003-08-19 16:42:30 +00:00
|
|
|
ifneq ($(wildcard .depend),)
|
2003-05-06 00:00:20 +00:00
|
|
|
include .depend
|
2003-08-19 16:42:30 +00:00
|
|
|
endif
|
2003-05-06 00:00:20 +00:00
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
|
|
|
|
.depend:
|
2005-06-20 17:26:08 +00:00
|
|
|
../build_tools/mkdep $(CFLAGS) `ls *.c`
|
2003-05-06 00:00:20 +00:00
|
|
|
|