2014-06-11 12:48:46 -05:00
|
|
|
include $(top_srcdir)/build/modmake.rulesam
|
|
|
|
MODNAME=mod_verto
|
|
|
|
|
|
|
|
mod_LTLIBRARIES = mod_verto.la
|
|
|
|
mod_verto_la_SOURCES = mod_verto.c ws.c mcast/mcast.c
|
|
|
|
mod_verto_la_CFLAGS = -D__EXTENSIONS__ -D_GNU_SOURCE $(AM_CFLAGS)
|
|
|
|
mod_verto_la_CPPFLAGS = -I. -Imcast
|
|
|
|
mod_verto_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
|
|
|
mod_verto_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
|
|
|
|
|
|
|
if HAVE_PERL
|
2014-06-17 20:19:22 -04:00
|
|
|
#perldir = $(PERL_SITEDIR)
|
|
|
|
noinst_LTLIBRARIES = MCAST.la
|
2014-06-11 12:48:46 -05:00
|
|
|
MCAST_la_SOURCES = mcast/mcast_wrap.cpp mcast/perlxsi.c mcast/mcast.c mcast/mcast_cpp.cpp
|
|
|
|
MCAST_la_CFLAGS = $(CC_CFLAGS) $(CFLAGS) $(SWITCH_AM_CFLAGS) $(PERL_CFLAGS)
|
|
|
|
MCAST_la_CXXFLAGS = $(SWITCH_AM_CXXFLAGS) $(CXXFLAGS) -w $(PERL_INC)
|
|
|
|
MCAST_la_CPPFLAGS = -I$(switch_srcdir)/src/mod/endpoints/mod_verto/mcast
|
|
|
|
MCAST_la_LDFLAGS = -avoid-version -module -no-undefined -shared $(PERL_LDFLAGS)
|
|
|
|
|
2014-06-17 20:19:22 -04:00
|
|
|
#install-data-local: perlmod-install
|
2014-06-11 12:48:46 -05:00
|
|
|
|
2014-06-17 20:19:22 -04:00
|
|
|
#perlmod-install: install-perlLTLIBRARIES
|
|
|
|
# install -d -m 755 $(DESTDIR)$(PERL_SITEDIR)
|
|
|
|
# install -m 755 mcast/MCAST.pm $(DESTDIR)$(PERL_SITEDIR)
|
2014-06-11 12:48:46 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
mcast/esl_wrap.cpp:
|
|
|
|
cd mcast && swig -module MCAST -shadow -perl5 -c++ -DMULTIPLICITY -I../src/include -o mcast_wrap.cpp ../MCAST.i
|
|
|
|
|
|
|
|
mcast/perlxsi.c:
|
|
|
|
$(PERL) -MExtUtils::Embed -e xsinit -- -o perlxsi.c
|
|
|
|
|
|
|
|
clean-data-local:
|
|
|
|
rm -f *.o *.so *~
|
|
|
|
|
|
|
|
swigclean:
|
|
|
|
rm -f mcast/mcast_wrap.* mcast/MCAST.so mcast/MCAST.pm mcast/perlxsi.*
|
|
|
|
|
|
|
|
reswig: swigclean mcast/mcast_wrap.cpp mcast/perlxsi.c
|