9698d62806c5c88186424840cb2ecd43cba11f87
[asterisk/asterisk.git] / astman / Makefile
1 #
2 # Don't use ast mm routines
3 #
4 CFLAGS+=-DNO_AST_MM
5 TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else echo "none" ; fi)
6 all: $(TARGET)
7
8 install:
9         if [ "$(TARGET)" != "none" ]; then \
10                 for x in $(TARGET); do \
11                         install -m 755 $$x $(ASTSBINDIR)/astman; \
12                 done ; \
13         fi
14
15 none:
16         @echo Not building the Asterisk Manager "astman"
17
18 clean:
19         rm -f *.o astman
20
21 astman: astman.o ../md5.o
22         $(CC) -o astman astman.o ../md5.o -lnewt