Files
asterisk/agi/Makefile
T

57 lines
1009 B
Makefile
Raw Normal View History

2001-07-28 20:19:35 +00:00
#
2012-10-14 21:56:13 +00:00
# Asterisk -- An open source telephony toolkit.
2001-07-28 20:19:35 +00:00
#
# 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
#
ASTTOPDIR?=..
-include $(ASTTOPDIR)/menuselect.makeopts
2006-12-16 21:24:52 +00:00
.PHONY: clean all uninstall
AGIS=$(MENUSELECT_AGIS)
2001-07-28 20:19:35 +00:00
ifeq ($(OSARCH),SunOS)
LIBS+=-lsocket -lnsl
endif
2007-11-17 19:29:04 +00:00
ifeq ($(OSARCH),mingw32)
AGIS:=
endif
include $(ASTTOPDIR)/Makefile.rules
2009-07-21 13:28:04 +00:00
_ASTCFLAGS+=-DSTANDALONE
2006-12-02 17:40:58 +00:00
all: $(AGIS)
2001-07-28 20:19:35 +00:00
2006-09-29 22:48:43 +00:00
strcompat.c: ../main/strcompat.c
@cp $< $@
eagi-test: eagi-test.o strcompat.o
eagi-sphinx-test: eagi-sphinx-test.o
2001-07-28 20:19:35 +00:00
install: all
2011-08-17 19:30:50 +00:00
$(INSTALL) -d "$(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:
2011-08-17 19:30:50 +00:00
for x in $(AGIS); do rm -f "$(DESTDIR)$(AGI_DIR)/$$x" ; done
2006-12-16 21:24:52 +00:00
clean:
rm -f *.so *.o look eagi-test eagi-sphinx-test
2008-11-26 19:08:56 +00:00
rm -f .*.d *.s *.i
2006-09-29 22:48:43 +00:00
rm -f strcompat.c
2001-07-28 20:19:35 +00:00
2006-12-16 21:24:52 +00:00
ifneq ($(wildcard .*.d),)
include .*.d
endif