Merged revisions 115511 via svnmerge from
[asterisk-bristuff.git] / agi / Makefile
blobc24c7f1006876b29084a7c1deef22655c66b6d77
2 # Asterisk -- A telephony toolkit for Linux.
3 #
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 all uninstall
16 AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi
18 ifeq ($(OSARCH),SunOS)
19 LIBS+=-lsocket -lnsl
20 endif
22 include $(ASTTOPDIR)/Makefile.rules
24 all: $(AGIS)
26 strcompat.c: ../main/strcompat.c
27 @cp $< $@
29 eagi-test: eagi-test.o strcompat.o
31 eagi-sphinx-test: eagi-sphinx-test.o
33 install: all
34 mkdir -p $(DESTDIR)$(AGI_DIR)
35 for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
37 uninstall:
38 for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
40 clean:
41 rm -f *.so *.o look eagi-test eagi-sphinx-test
42 rm -f .*.o.d .*.oo.d *.s *.i
43 rm -f strcompat.c
45 ifneq ($(wildcard .*.d),)
46 include .*.d
47 endif