Allows for user to uninstall asterisk binaries
[asterisk/asterisk.git] / utils / Makefile
index a07a39d..cc90f35 100644 (file)
 #
 CFLAGS+=-DNO_AST_MM
 
-ifeq ($(findstring BSD,${OSARCH}),BSD)
-  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
-endif
-
 TARGET=stereorize streamplayer
 
 ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/popt.h)$(wildcard -f $(CROSS_COMPILE_TARGET)/usr/local/include/popt.h),)
@@ -44,6 +40,9 @@ install:
                fi; \
        done 
 
+uninstall:
+       for x in $(TARGET); do rm -f $$x $(DESTDIR)$(ASTSBINDIR)/$$x; done
+
 clean:
        rm -f *.o astman smsq stereorize streamplayer check_expr .depend
        rm -f ast_expr2.o ast_expr2f.o