Files
asterisk/utils/Makefile
T

46 lines
991 B
Makefile
Raw Normal View History

#
# Don't use ast mm routines
#
CFLAGS+=-DNO_AST_MM
2004-06-04 15:44:14 +00:00
OSARCH=$(shell uname -s)
ifeq ($(findstring BSD,${OSARCH}),BSD)
2004-06-04 15:44:14 +00:00
CFLAGS+=-I/usr/local/include -L/usr/local/lib
endif
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)
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 \
2004-12-18 13:38:15 +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:
2004-12-13 21:45:03 +00:00
rm -f *.o astman smsq .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
stereorize: stereorize.o frame.o
$(CC) $(CFLAGS) -o stereorize stereorize.o frame.o -lm
smsq: smsq.o
$(CC) $(CFLAGS) -o smsq smsq.o -lpopt
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:
../mkdep $(CFLAGS) `ls *.c`