2 # Asterisk -- A telephony toolkit for Linux.
4 # Makefile for AGI-related stuff
6 # Copyright (C) 1999-2005, 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 AGIS=agi-test.agi eagi-test eagi-sphinx-test
19 ifeq ($(OSARCH),SunOS)
20 LIBS=-lsocket -lnsl ../strcompat.o
23 ifeq ($(findstring BSD,${OSARCH}),BSD)
24 CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
30 mkdir -p $(DESTDIR)$(AGI_DIR)
31 for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
34 for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
36 eagi-test: eagi-test.o
37 $(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS)
39 eagi-sphinx-test: eagi-sphinx-test.o
40 $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS)
46 rm -f *.so *.o look eagi-test eagi-sphinx-test
49 $(CC) -shared -Xlinker -x -o $@ $<
51 ifneq ($(wildcard .depend),)
58 ../build_tools/mkdep $(CFLAGS) `ls *.c`