Files
asterisk/agi/Makefile
T

51 lines
955 B
Makefile
Raw Normal View History

2001-07-28 20:19:35 +00:00
#
# Asterisk -- A telephony toolkit for Linux.
#
# Makefile for AGI-related stuff
2001-07-28 20:19:35 +00:00
#
# Copyright (C) 1999-2006, Digium
2001-07-28 20:19:35 +00:00
#
# Mark Spencer <markster@digium.com>
2001-07-28 20:19:35 +00:00
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#
.PHONY: clean clean-depend all depend uninstall
2006-03-06 23:39:39 +00:00
AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi
2001-07-28 20:19:35 +00:00
ifeq ($(OSARCH),SunOS)
LIBS+=-lsocket -lnsl ../strcompat.o
endif
include $(ASTTOPDIR)/Makefile.rules
2006-06-22 14:09:18 +00:00
all: $(AGIS)
2001-07-28 20:19:35 +00:00
eagi-test: eagi-test.o
eagi-sphinx-test: eagi-sphinx-test.o
2001-07-28 20:19:35 +00:00
install: all
2003-10-25 17:27:53 +00:00
mkdir -p $(DESTDIR)$(AGI_DIR)
for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
2001-07-28 20:19:35 +00:00
uninstall:
for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
clean-depend:
rm -f .depend
clean: clean-depend
rm -f *.so *.o look eagi-test eagi-sphinx-test
2001-07-28 20:19:35 +00:00
2003-08-19 16:42:30 +00:00
ifneq ($(wildcard .depend),)
2003-05-06 00:00:20 +00:00
include .depend
2003-08-19 16:42:30 +00:00
endif
2003-05-06 00:00:20 +00:00
depend: .depend
.depend:
../build_tools/mkdep $(CFLAGS) `ls *.c`