From d7782d7681f433b223bf3441895ad00576df7b88 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sun, 5 Mar 2006 20:30:35 +0000 Subject: [PATCH] lame git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@747 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_perl/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/mod/languages/mod_perl/Makefile b/src/mod/languages/mod_perl/Makefile index c593f364d6..ab56dae001 100644 --- a/src/mod/languages/mod_perl/Makefile +++ b/src/mod/languages/mod_perl/Makefile @@ -7,7 +7,9 @@ LDFLAGS += $(shell $(PERL) -MExtUtils::Embed -e ldopts) LDFLAGS += $(shell $(PERL) -MConfig -e 'print $$Config{libs}') OBJS += perlxsi.o -all: depends $(MODNAME).so fs_perl.so + + +all: depends $(MODNAME).so fs_perl.$(DYNAMIC_LIB_EXTEN) .perlok: @(${PERL} -V | grep -i usemultiplicity=define >/dev/null && echo Phew, You have the right perl.) \ @@ -30,18 +32,18 @@ switch_swig_wrap.o: switch_swig_wrap.c $(CC) -w $(CFLAGS) -fPIC -c $< -o $@ -fs_perl.so: $(MODNAME).so switch_swig_wrap.o switch_swig.o perlxsi.o - $(CC) $(SOLINK) -o fs_perl.so switch_swig_wrap.o switch_swig.o perlxsi.o $(LDFLAGS) +fs_perl.$(DYNAMIC_LIB_EXTEN): $(MODNAME).so switch_swig_wrap.o switch_swig.o perlxsi.o + $(CC) $(SOLINK) -o fs_perl.$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o perlxsi.o $(LDFLAGS) $(MODNAME).so: $(MODNAME).c $(MODNAME).o $(OBJS) $(CC) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(OBJS) $(LDFLAGS) clean: - rm -fr *.so *.o *~ perlxsi.c .perlok + rm -fr *.dylib *.so *.o *~ perlxsi.c .perlok install: mkdir -p $(PREFIX)/perl cp -f $(MODNAME).so $(PREFIX)/mod - cp -f fs_perl.so fs_perl.pm $(PREFIX)/perl + cp -f fs_perl.$(DYNAMIC_LIB_EXTEN) fs_perl.pm $(PREFIX)/perl if [ ! -f $(PREFIX)/perl/freeswitch.pm ] ; then cp -f freeswitch.pm $(PREFIX)/perl ; fi