]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
we need to do these in subdirectories because a number of the modules build a differe...
authorBrian West <brian@freeswitch.org>
Fri, 21 Mar 2014 20:45:35 +0000 (15:45 -0500)
committerBrian West <brian@freeswitch.org>
Fri, 21 Mar 2014 20:45:40 +0000 (15:45 -0500)
configure.ac
libs/esl/Makefile.am
libs/esl/perl/Makefile [deleted file]
libs/esl/perl/Makefile.am [new file with mode: 0644]

index 3a6574a49cd510423782067c27016d803ac922ed..f0b13ac7789872f20f18e2fa6af2dd5e26411224 100644 (file)
@@ -1424,6 +1424,7 @@ AC_CONFIG_FILES([Makefile
                build/freeswitch.pc
                build/modmake.rules
                 libs/esl/Makefile
+                libs/esl/perl/Makefile
                libs/xmlrpc-c/include/xmlrpc-c/config.h
                libs/xmlrpc-c/xmlrpc_config.h
                libs/xmlrpc-c/config.mk
index 09e82f74bb5d89a82a003cdec08ad649f3e4fd4d..318ea9ee97ea5b116e08d3bd81a06d33ea28944e 100644 (file)
@@ -1,4 +1,5 @@
 AUTOMAKE_OPTIONS = foreign subdir-objects
+SUBDIRS = . perl
 MYLIB=./.libs/libesl.a
 LIBS=-lncurses -lpthread -lm
 LDFLAGS=-L. $(SYSTEM_LDFLAGS)
@@ -49,25 +50,6 @@ ivrd_CFLAGS  = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include
 ivrd_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS) $(LIBS)
 ivrd_LDADD   = libesl.la 
 
-if HAVE_PERL
-perldir = $(PERL_SITEDIR)
-perl_LTLIBRARIES = ESL.la
-ESL_la_SOURCES   = perl/esl_wrap.cpp perl/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 perl/ESL.pm $(PERL_SITEDIR)
-       install -d -m 755 ESL $(PERL_SITEDIR)/ESL
-       install -m 755 perl/ESL/* $(PERL_SITEDIR)/ESL
-endif
-
 reswig:        swigclean
        $(MAKE) -C perl reswig
        $(MAKE) -C php reswig
@@ -86,6 +68,9 @@ swigclean: clean
        $(MAKE) -C java swigclean
        $(MAKE) -C managed swigclean
 
+perlmod:
+       $(MAKE) -C perl
+
 phpmod: $(MYLIB)
        $(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 
 
@@ -107,6 +92,9 @@ javamod: $(MYLIB)
 managedmod: $(MYLIB)
        $(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
 
+perlmod-install:
+       $(MAKE) -C perl install
+
 phpmod-install: phpmod
        $(MAKE) -C php install
 
diff --git a/libs/esl/perl/Makefile b/libs/esl/perl/Makefile
deleted file mode 100644 (file)
index 712efe3..0000000
+++ /dev/null
@@ -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
-
diff --git a/libs/esl/perl/Makefile.am b/libs/esl/perl/Makefile.am
new file mode 100644 (file)
index 0000000..3c54583
--- /dev/null
@@ -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
+