2003-04-28 19:58:43 +00:00
|
|
|
#
|
|
|
|
# Don't use ast mm routines
|
|
|
|
#
|
|
|
|
CFLAGS+=-DNO_AST_MM
|
2003-01-30 15:03:20 +00:00
|
|
|
TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else echo "none" ; fi)
|
2002-07-27 14:29:35 +00:00
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
install:
|
2003-01-30 15:03:20 +00:00
|
|
|
if [ "$(TARGET)" != "none" ]; then \
|
2002-07-27 14:29:35 +00:00
|
|
|
for x in $(TARGET); do \
|
2003-01-30 15:03:20 +00:00
|
|
|
install -m 755 $$x $(ASTSBINDIR)/astman; \
|
2002-07-27 14:29:35 +00:00
|
|
|
done ; \
|
|
|
|
fi
|
|
|
|
|
2003-01-30 15:03:20 +00:00
|
|
|
none:
|
|
|
|
@echo Not building the Asterisk Manager "astman"
|
|
|
|
|
2002-07-27 14:29:35 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o astman
|
|
|
|
|
2003-03-10 20:39:12 +00:00
|
|
|
astman: astman.o ../md5.o
|
|
|
|
$(CC) -o astman astman.o ../md5.o -lnewt
|