2 # Asterisk -- A telephony toolkit for Linux.
4 # Makefile for AGI-related stuff
6 # Copyright (C) 1999-2006, Digium
8 # Mark Spencer <markster@digium.com>
10 # This program is free software, distributed under the terms of
11 # the GNU General Public License
14 .PHONY: clean clean-depend all depend uninstall
16 AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi
18 ifeq ($(OSARCH),SunOS)
19 LIBS+=-lsocket -lnsl ../main/strcompat.o
22 include $(ASTTOPDIR)/Makefile.rules
26 eagi-test: eagi-test.o
28 eagi-sphinx-test: eagi-sphinx-test.o
31 mkdir -p $(DESTDIR)$(AGI_DIR)
32 for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
35 for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
41 rm -f *.so *.o look eagi-test eagi-sphinx-test
43 ifneq ($(wildcard .depend),)
50 ../build_tools/mkdep $(CFLAGS) `ls *.c`