Makefile 1008 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Asterisk -- An open source telephony toolkit.
  3. #
  4. # Makefile for AGI-related stuff
  5. #
  6. # Copyright (C) 1999-2006, Digium
  7. #
  8. # Mark Spencer <markster@digium.com>
  9. #
  10. # This program is free software, distributed under the terms of
  11. # the GNU General Public License
  12. #
  13. ASTTOPDIR?=..
  14. -include $(ASTTOPDIR)/menuselect.makeopts
  15. .PHONY: clean all uninstall
  16. AGIS=$(MENUSELECT_AGIS)
  17. ifeq ($(OSARCH),SunOS)
  18. LIBS+=-lsocket -lnsl
  19. endif
  20. ifeq ($(OSARCH),mingw32)
  21. AGIS:=
  22. endif
  23. include $(ASTTOPDIR)/Makefile.rules
  24. _ASTCFLAGS+=-DSTANDALONE
  25. all: $(AGIS)
  26. strcompat.c: ../main/strcompat.c
  27. @cp $< $@
  28. eagi-test: eagi-test.o strcompat.o
  29. eagi-sphinx-test: eagi-sphinx-test.o
  30. install: all
  31. $(INSTALL) -d "$(DESTDIR)$(AGI_DIR)"
  32. for x in $(AGIS); do $(INSTALL) -m 755 $$x "$(DESTDIR)$(AGI_DIR)" ; done
  33. uninstall:
  34. for x in $(AGIS); do rm -f "$(DESTDIR)$(AGI_DIR)/$$x" ; done
  35. clean:
  36. rm -f *.so *.o look eagi-test eagi-sphinx-test
  37. rm -f .*.d *.s *.i
  38. rm -f strcompat.c
  39. ifneq ($(wildcard .*.d),)
  40. include .*.d
  41. endif