Newer
Older
# Makefile for AGI-related stuff
Kevin P. Fleming
committed
# Copyright (C) 1999-2006, Digium
# Mark Spencer <markster@digium.com>
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#
ASTTOPDIR?=..
-include $(ASTTOPDIR)/menuselect.makeopts
Russell Bryant
committed
AGIS=$(MENUSELECT_AGIS)
ifeq ($(OSARCH),SunOS)
Jason Parker
committed
LIBS+=-lsocket -lnsl
endif
ifeq ($(OSARCH),mingw32)
AGIS:=
endif
include $(ASTTOPDIR)/Makefile.rules
strcompat.c: ../main/strcompat.c
@cp $< $@
Jason Parker
committed
eagi-test: eagi-test.o strcompat.o
eagi-sphinx-test: eagi-sphinx-test.o
$(INSTALL) -d "$(DESTDIR)$(AGI_DIR)"
for x in $(AGIS); do $(INSTALL) -m 755 $$x "$(DESTDIR)$(AGI_DIR)" ; done
for x in $(AGIS); do rm -f "$(DESTDIR)$(AGI_DIR)/$$x" ; done
Kevin P. Fleming
committed
rm -f *.so *.o look eagi-test eagi-sphinx-test
ifneq ($(wildcard .*.d),)
include .*.d