fix the build of eagi-test on Solaris in combination with astmm
[asterisk/asterisk.git] / agi / Makefile
old mode 100755 (executable)
new mode 100644 (file)
index 8cea349..e245877
@@ -11,9 +11,9 @@
 # the GNU General Public License
 #
 
-AGIS=agi-test.agi eagi-test eagi-sphinx-test
+AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi
 
-CFLAGS+=
+CFLAGS+=-DNO_AST_MM
 
 LIBS=
 ifeq ($(OSARCH),SunOS)
@@ -30,14 +30,20 @@ install: all
        mkdir -p $(DESTDIR)$(AGI_DIR)
        for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
 
+uninstall:
+       for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
+
 eagi-test: eagi-test.o
        $(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS)
 
 eagi-sphinx-test: eagi-sphinx-test.o
        $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS) 
 
-clean:
-       rm -f *.so *.o look .depend eagi-test eagi-sphinx-test
+clean-depend:
+       rm -f .depend
+
+clean: clean-depend
+       rm -f *.so *.o look eagi-test eagi-sphinx-test
 
 %.so : %.o
        $(CC) -shared -Xlinker -x -o $@ $<