mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
we need to do these in subdirectories because a number of the modules build a different ESL.so
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
all: ESL.so
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig -module ESL -shadow -perl5 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
|
||||
perlxsi.c:
|
||||
$(PERL) -MExtUtils::Embed -e xsinit -- -o perlxsi.c
|
||||
|
||||
clean:
|
||||
rm -f *.o *.so *~
|
||||
|
||||
swigclean:
|
||||
rm -f esl_wrap.* ESL.so ESL.pm perlxsi.*
|
||||
|
||||
reswig: swigclean esl_wrap.cpp perlxsi.c
|
||||
|
33
libs/esl/perl/Makefile.am
Normal file
33
libs/esl/perl/Makefile.am
Normal file
@@ -0,0 +1,33 @@
|
||||
if HAVE_PERL
|
||||
perldir = $(PERL_SITEDIR)
|
||||
perl_LTLIBRARIES = ESL.la
|
||||
ESL_la_SOURCES = esl_wrap.cpp perlxsi.c
|
||||
ESL_la_CFLAGS = $(CC_CFLAGS) $(CFLAGS) -I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS) $(PERL_CFLAGS)
|
||||
ESL_la_CXXFLAGS = -I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS) $(CXXFLAGS) -w $(PERL_INC)
|
||||
ESL_la_LDFLAGS = -avoid-version -module -no-undefined -shared $(PERL_LDFLAGS)
|
||||
ESL_la_LIBADD = ../libesl.la
|
||||
|
||||
perlmod: ESL.la
|
||||
|
||||
install-data-local: perlmod-install
|
||||
|
||||
perlmod-install: install-perlLTLIBRARIES
|
||||
install -m 755 ESL.pm $(PERL_SITEDIR)
|
||||
install -d -m 755 ESL $(PERL_SITEDIR)/ESL
|
||||
install -m 755 ESL/* $(PERL_SITEDIR)/ESL
|
||||
endif
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig -module ESL -shadow -perl5 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
|
||||
perlxsi.c:
|
||||
$(PERL) -MExtUtils::Embed -e xsinit -- -o perlxsi.c
|
||||
|
||||
clean:
|
||||
rm -f *.o *.so *~
|
||||
|
||||
swigclean:
|
||||
rm -f esl_wrap.* ESL.so ESL.pm perlxsi.*
|
||||
|
||||
reswig: swigclean esl_wrap.cpp perlxsi.c
|
||||
|
Reference in New Issue
Block a user