Makefile 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # Asterisk -- An open source telephony toolkit.
  3. #
  4. # Makefile for Add-on Modules
  5. #
  6. # Copyright (C) 2009, 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. MENUSELECT_CATEGORY=ADDONS
  13. MENUSELECT_DESCRIPTION=Add-ons (See README-addons.txt)
  14. H323OBJS:=ooCmdChannel.o ooLogChan.o ooUtils.o ooGkClient.o context.o \
  15. ooDateTime.o decode.o dlist.o encode.o errmgmt.o \
  16. memheap.o ootrace.o oochannels.o ooh245.o ooports.o \
  17. ooq931.o ooCapability.o ooSocket.o perutil.o eventHandler.o \
  18. ooCalls.o ooStackCmds.o ooh323.o ooh323ep.o printHandler.o \
  19. rtctype.o ooTimer.o h323/H235-SECURITY-MESSAGESDec.o \
  20. h323/H235-SECURITY-MESSAGESEnc.o h323/H323-MESSAGES.o h323/H323-MESSAGESDec.o \
  21. h323/H323-MESSAGESEnc.o h323/MULTIMEDIA-SYSTEM-CONTROL.o \
  22. h323/MULTIMEDIA-SYSTEM-CONTROLDec.o h323/MULTIMEDIA-SYSTEM-CONTROLEnc.o
  23. H323CFLAGS:=-Iooh323c/src -Iooh323c/src/h323
  24. ALL_C_MODS:=app_mysql \
  25. cdr_mysql \
  26. chan_mobile \
  27. chan_ooh323 \
  28. format_mp3 \
  29. res_config_mysql
  30. all: check_mp3 _all
  31. check_mp3:
  32. ifeq ($(filter format_mp3,$(MENUSELECT_ADDONS)),)
  33. @if [ ! -f mp3/Makefile ] ; then \
  34. echo ; \
  35. echo "**************************************************************" ; \
  36. echo "*** ***" ; \
  37. echo "*** ---> READ THIS OR YOUR BUILD WILL FAIL <--- ***" ; \
  38. echo "*** ***" ; \
  39. echo "*** format_mp3 has been selected to be installed, but the ***" ; \
  40. echo "*** mp3 decoder library has not yet been downloaded into ***" ; \
  41. echo "*** the source tree. To do so, please run the following ***" ; \
  42. echo "*** command: ***" ; \
  43. echo "*** ***" ; \
  44. echo "*** $$ contrib/scripts/get_mp3_source.sh ***" ; \
  45. echo "*** ***" ; \
  46. echo "**************************************************************" ; \
  47. echo ; \
  48. fi
  49. endif
  50. include $(ASTTOPDIR)/Makefile.moddir_rules
  51. clean::
  52. if [ -f mp3/Makefile ] ; then $(MAKE) -C mp3 clean ; fi
  53. rm -f $(addprefix ooh323c/src/,$(H323OBJS))
  54. $(if $(filter format_mp3,$(EMBEDDED_MODS)),modules.link,format_mp3.so): mp3/common.o mp3/dct64_i386.o mp3/decode_ntom.o mp3/layer3.o mp3/tabinit.o mp3/interface.o
  55. chan_ooh323.o: _ASTCFLAGS+=$(H323CFLAGS)
  56. $(if $(filter chan_ooh323,$(EMBEDDED_MODS)),modules.link,chan_ooh323.so): _ASTCFLAGS+=$(H323CFLAGS)
  57. $(if $(filter chan_ooh323,$(EMBEDDED_MODS)),modules.link,chan_ooh323.so): $(addprefix ooh323c/src/,$(H323OBJS)) chan_ooh323.o ooh323cDriver.o
  58. $(addprefix ooh323c/src/,$(H323OBJS)) chan_ooh323.o ooh323cDriver.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,chan_ooh323)
  59. .PHONY: check_mp3