Makefile 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # Asterisk -- A telephony toolkit for Linux.
  3. #
  4. # Makefile for PBX frontends (dynamically loaded)
  5. #
  6. # Copyright (C) 1999, Mark Spencer
  7. #
  8. # Mark Spencer <markster@linux-support.net>
  9. #
  10. # This program is free software, distributed under the terms of
  11. # the GNU General Public License
  12. #
  13. AGIS=agi-test.agi eagi-test eagi-sphinx-test
  14. CFLAGS+=
  15. all: depend $(AGIS)
  16. install: all
  17. mkdir -p $(DESTDIR)$(AGI_DIR)
  18. for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
  19. eagi-test: eagi-test.o
  20. $(CC) $(CFLAGS) -o eagi-test eagi-test.o
  21. eagi-sphinx-test: eagi-sphinx-test.o
  22. $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o
  23. clean:
  24. rm -f *.so *.o look .depend eagi-test eagi-sphinx-test
  25. %.so : %.o
  26. $(CC) -shared -Xlinker -x -o $@ $<
  27. ifneq ($(wildcard .depend),)
  28. include .depend
  29. endif
  30. depend: .depend
  31. .depend:
  32. ../mkdep $(CFLAGS) `ls *.c`