depend stuff
[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: depend $(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 .depend
20
21 astman: astman.o ../md5.o
22         $(CC) -o astman astman.o ../md5.o -lnewt
23
24 ifneq ($(wildcard .depend),)
25 include .depend
26 endif
27
28 depend: .depend
29
30 .depend:
31         ../mkdep $(CFLAGS) `ls *.c`
32