Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Asterisk -- An open source telephony toolkit.
  3. #
  4. # Makefile for PBX applications
  5. #
  6. # Copyright (C) 1999-2006, Digium, Inc.
  7. #
  8. # This program is free software, distributed under the terms of
  9. # the GNU General Public License
  10. #
  11. -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
  12. MODULE_PREFIX=app
  13. MENUSELECT_CATEGORY=APPS
  14. MENUSELECT_DESCRIPTION=Applications
  15. MENUSELECT_OPTS_app_directory:=$(MENUSELECT_OPTS_app_voicemail)
  16. ifneq ($(findstring ODBC_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
  17. MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_ODBC_STORAGE)
  18. endif
  19. ifneq ($(findstring IMAP_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
  20. MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_IMAP_STORAGE)
  21. endif
  22. all: _all
  23. include $(ASTTOPDIR)/Makefile.moddir_rules
  24. clean::
  25. rm -f confbridge/*.o confbridge/*.i confbridge/*.gcda confbridge/*.gcno
  26. app_confbridge.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
  27. app_meetme.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
  28. app_minivm.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
  29. app_voicemail.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
  30. app_while.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
  31. app_confbridge.so: $(subst .c,.o,$(wildcard confbridge/*.c))
  32. $(subst .c,.o,$(wildcard confbridge/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,app_confbridge)
  33. ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
  34. LIBS+= -lres_ael_share.so -lres_monitor.so -lres_speech.so
  35. LIBS+= -lres_smdi.so
  36. endif