Merge sms stuff and move to "utils" subdir (bug #2973)
[asterisk/asterisk.git] / utils / Makefile
similarity index 65%
rename from astman/Makefile
rename to utils/Makefile
index 8a69ee0..ef262b1 100755 (executable)
@@ -8,7 +8,9 @@ ifeq ($(findstring BSD,${OSARCH}),BSD)
 CFLAGS+=-I/usr/local/include -L/usr/local/lib
 endif
 
-TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else if [ -f /usr/local/include/newt.h ]; then echo "astman"; else echo "none" ; fi ; fi)
+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)
+
 all: depend $(TARGET)
 
 install:
@@ -27,6 +29,9 @@ clean:
 astman: astman.o ../md5.o
        $(CC) $(CFLAGS) -o astman astman.o ../md5.o -lnewt
 
+smsq: smsq.o
+       $(CC) $(CFLAGS) -o smsq smsq.o -lpopt
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif