2
0

Makefile.am 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. AUTOMAKE_OPTIONS = foreign subdir-objects
  2. SUBDIRS = . perl
  3. MYLIB=./.libs/libesl.a
  4. LIBS=-lncurses -lpthread -lm
  5. LDFLAGS=-L. $(SYSTEM_LDFLAGS)
  6. SOLINK=-shared -Xlinker -x
  7. lib_LTLIBRARIES = libesl.la
  8. libesl_la_CFLAGS = $(SWITCH_AM_CFLAGS) $(PICKY) $(SYSTEM_CFLAGS)
  9. libesl_la_CXXFLAGS = $(SWITCH_AM_CXXFLAGS)
  10. libesl_la_CPPFLAGS = -I$(switch_srcdir)/libs/esl/src/include
  11. libesl_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) -static -no-undefined -L. $(SYSTEM_LDFLAGS)
  12. libesl_la_SOURCES = src/esl.c src/esl_event.c src/esl_threadmutex.c src/esl_config.c src/esl_json.c src/esl_buffer.c src/cJSON.c src/cJSON_Utils.c
  13. if ENABLE_CPP
  14. libesl_la_SOURCES += src/esl_oop.cpp
  15. endif
  16. $(MYLIB): libesl.la
  17. bin_PROGRAMS = fs_cli fs_ivrd
  18. noinst_PROGRAMS = testclient testserver testserver_fork
  19. fs_cli_SOURCES = fs_cli.c
  20. fs_cli_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include $(LIBEDIT_CFLAGS)
  21. fs_cli_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS) $(LIBS) $(LIBEDIT_LIBS)
  22. fs_cli_LDADD = libesl.la
  23. if DISABLE_CC
  24. fs_cli_CFLAGS += -DDISABLE_CC
  25. endif
  26. testclient_SOURCES = testclient.c
  27. testclient_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include
  28. testclient_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS) $(LIBS)
  29. testclient_LDADD = libesl.la
  30. testserver_SOURCES = testserver.c
  31. testserver_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include
  32. testserver_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS) $(LIBS)
  33. testserver_LDADD = libesl.la
  34. testserver_fork_SOURCES = testserver_fork.c
  35. testserver_fork_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include
  36. testserver_fork_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS) $(LIBS)
  37. testserver_fork_LDADD = libesl.la
  38. fs_ivrd_SOURCES = ivrd.c
  39. fs_ivrd_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include
  40. fs_ivrd_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS) $(LIBS)
  41. fs_ivrd_LDADD = libesl.la
  42. reswig: swigclean
  43. $(MAKE) -C perl reswig
  44. $(MAKE) -C php reswig
  45. $(MAKE) -C lua reswig
  46. $(MAKE) -C python reswig
  47. $(MAKE) -C python3 reswig
  48. $(MAKE) -C ruby reswig
  49. $(MAKE) -C java reswig
  50. $(MAKE) -C managed reswig
  51. swigclean: clean
  52. $(MAKE) -C perl swigclean
  53. $(MAKE) -C php swigclean
  54. $(MAKE) -C lua swigclean
  55. $(MAKE) -C python swigclean
  56. $(MAKE) -C python3 swigclean
  57. $(MAKE) -C ruby swigclean
  58. $(MAKE) -C java swigclean
  59. $(MAKE) -C managed swigclean
  60. perlmod:
  61. $(MAKE) -C perl
  62. phpmod: $(MYLIB)
  63. $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C php
  64. luamod: $(MYLIB)
  65. $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" LUA_CFLAGS="$(LUA_CFLAGS)" LUA_LIBS="$(LUA_LIBS)" -C lua
  66. pymod: $(MYLIB)
  67. $(MAKE) PYTHON=$(PYTHON) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C python
  68. py3mod: $(MYLIB)
  69. $(MAKE) PYTHON3=$(PYTHON3) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C python3
  70. tclmod: $(MYLIB)
  71. $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C tcl
  72. rubymod: $(MYLIB)
  73. $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C ruby
  74. javamod: $(MYLIB)
  75. $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C java
  76. managedmod: $(MYLIB)
  77. $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C managed
  78. perlmod-install:
  79. $(MAKE) -C perl install
  80. phpmod-install: phpmod
  81. $(MAKE) -C php install
  82. pymod-install: pymod
  83. $(MAKE) PYTHON=$(PYTHON) -C python install
  84. py3mod-install: py3mod
  85. $(MAKE) PYTHON3=$(PYTHON3) -C python3 install
  86. rubymod-install: rubymod
  87. $(MAKE) -C ruby install
  88. everymod: perlmod phpmod luamod pymod py3mod rubymod javamod managedmod