ok this is just being picky but on darwin and mac we really should call it .dylib instead of .so but this also gave me a chance to get better with the build system. /b
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@753 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
11a8d51eb6
commit
cbdfe1f72f
|
@ -171,6 +171,7 @@ modclean:
|
||||||
@rm -f build/freeswitch.env
|
@rm -f build/freeswitch.env
|
||||||
@./build/addenv.sh build/freeswitch.env MAKE "$(MAKE)"
|
@./build/addenv.sh build/freeswitch.env MAKE "$(MAKE)"
|
||||||
@./build/addenv.sh build/freeswitch.env CC "$(CC)"
|
@./build/addenv.sh build/freeswitch.env CC "$(CC)"
|
||||||
|
@./build/addenv.sh build/freeswitch.env DYNAMIC_LIB_EXTEN "$(DYNAMIC_LIB_EXTEN)"
|
||||||
@cd src/mod && for i in `find . -type d -name mod_\*` ; do echo making clean $$i ; $(PWD)/build/modmake.sh $(PWD) $$i clean || exit 1; done
|
@cd src/mod && for i in `find . -type d -name mod_\*` ; do echo making clean $$i ; $(PWD)/build/modmake.sh $(PWD) $$i clean || exit 1; done
|
||||||
@rm -f build/freeswitch.env
|
@rm -f build/freeswitch.env
|
||||||
|
|
||||||
|
|
|
@ -1051,6 +1051,7 @@ modclean:
|
||||||
@rm -f build/freeswitch.env
|
@rm -f build/freeswitch.env
|
||||||
@./build/addenv.sh build/freeswitch.env MAKE "$(MAKE)"
|
@./build/addenv.sh build/freeswitch.env MAKE "$(MAKE)"
|
||||||
@./build/addenv.sh build/freeswitch.env CC "$(CC)"
|
@./build/addenv.sh build/freeswitch.env CC "$(CC)"
|
||||||
|
@./build/addenv.sh build/freeswitch.env DYNAMIC_LIB_EXTEN "$(DYNAMIC_LIB_EXTEN)"
|
||||||
@cd src/mod && for i in `find . -type d -name mod_\*` ; do echo making clean $$i ; $(PWD)/build/modmake.sh $(PWD) $$i clean || exit 1; done
|
@cd src/mod && for i in `find . -type d -name mod_\*` ; do echo making clean $$i ; $(PWD)/build/modmake.sh $(PWD) $$i clean || exit 1; done
|
||||||
@rm -f build/freeswitch.env
|
@rm -f build/freeswitch.env
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
all: $(MODNAME).so
|
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).so $(LDFLAGS)
|
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -8,16 +8,16 @@ endif
|
||||||
|
|
||||||
LINKER=$(CC)
|
LINKER=$(CC)
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
|
|
||||||
all: $(MODNAME).so
|
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
g711.o: g711.c g711.h
|
g711.o: g711.c g711.h
|
||||||
$(CC) $(CFLAGS) -c -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE g711.c -o g711.o
|
$(CC) $(CFLAGS) -c -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE g711.c -o g711.o
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c g711.o
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c g711.o
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) g711.o $(MODNAME).o -o $(MODNAME).so $(LDFLAGS)
|
$(CC) $(SOLINK) g711.o $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
CFLAGS += -I$(PREFIX)/include/g729
|
CFLAGS += -I$(PREFIX)/include/g729
|
||||||
LDFLAGS +=-lg729
|
LDFLAGS +=-lg729
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/libg729 --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/libg729 --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).so $(LDFLAGS)
|
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
LDFLAGS +=-lgsm
|
LDFLAGS +=-lgsm
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/gsm --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/gsm --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).so $(LDFLAGS)
|
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
LDFLAGS +=-lilbc
|
LDFLAGS +=-lilbc
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/ilbc --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/ilbc --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).so $(LDFLAGS)
|
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install speex-1.1.11.1.tar.gz --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install speex-1.1.11.1.tar.gz --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).so $(LDFLAGS) -lspeex
|
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) -lspeex
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
LDFLAGS += -lpcre -L/usr/local/lib
|
LDFLAGS += -lpcre -L/usr/local/lib
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install pcre-6.4.tar.gz --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install pcre-6.4.tar.gz --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -4,17 +4,17 @@ LDFLAGS += -lldap_r -llber
|
||||||
LINKER=$(CC)
|
LINKER=$(CC)
|
||||||
|
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install openldap-2.3.19.tgz --prefix=$(PREFIX) --disable-bdb --disable-hdb
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install openldap-2.3.19.tgz --prefix=$(PREFIX) --disable-bdb --disable-hdb
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -7,7 +7,7 @@ else
|
||||||
LINKER=$(CC)
|
LINKER=$(CC)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install jrtplib --prefix=$(PREFIX) --disable-gst
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install jrtplib --prefix=$(PREFIX) --disable-gst
|
||||||
|
@ -15,12 +15,12 @@ depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libeXosip2-2.2.2.tar.gz --disable-josua --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libeXosip2-2.2.2.tar.gz --disable-josua --prefix=$(PREFIX)
|
||||||
|
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
LDFLAGS += -liax -L/usr/local/lib
|
LDFLAGS += -liax -L/usr/local/lib
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install iax --enable-newjb --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install iax --enable-newjb --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#CFLAGS += -I/usr/src/common/src
|
#CFLAGS += -I/usr/src/common/src
|
||||||
LDFLAGS += -liax
|
LDFLAGS += -liax
|
||||||
|
|
||||||
all: $(MODNAME).so
|
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
LDFLAGS += -lportaudio -L/usr/local/lib
|
LDFLAGS += -lportaudio -L/usr/local/lib
|
||||||
MYOBJS = pablio.o ringbuffer.o
|
MYOBJS = pablio.o ringbuffer.o
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install portaudio.tar.gz --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install portaudio.tar.gz --prefix=$(PREFIX)
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
|
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c $(MYOBJS)
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MYOBJS)
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(MYOBJS) $(LDFLAGS)
|
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(MYOBJS) $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -9,16 +9,16 @@ else
|
||||||
LINKER=$(CC)
|
LINKER=$(CC)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
LDFLAGS += -liksemel -L/usr/local/lib
|
LDFLAGS += -liksemel -L/usr/local/lib
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install iksemel-1.2.tar.gz --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install iksemel-1.2.tar.gz --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -3,17 +3,17 @@ CFLAGS += -I$(PREFIX)/include/howl
|
||||||
LINKER=$(CC)
|
LINKER=$(CC)
|
||||||
|
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
$(BASE)/build/buildlib.sh $(BASE) install howl-1.0.0.tar.gz --prefix=$(PREFIX)
|
$(BASE)/build/buildlib.sh $(BASE) install howl-1.0.0.tar.gz --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
LDFLAGS += -lsndfile -L/usr/local/lib
|
LDFLAGS += -lsndfile -L/usr/local/lib
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libsndfile-1.0.12.tar.gz --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libsndfile-1.0.12.tar.gz --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(LDFLAGS)
|
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ OBJS += perlxsi.o
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
all: depends $(MODNAME).so fs_perl.$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) fs_perl.$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
.perlok:
|
.perlok:
|
||||||
@(${PERL} -V | grep -i usemultiplicity=define >/dev/null && echo Phew, You have the right perl.) \
|
@(${PERL} -V | grep -i usemultiplicity=define >/dev/null && echo Phew, You have the right perl.) \
|
||||||
|
@ -32,18 +32,18 @@ switch_swig_wrap.o: switch_swig_wrap.c
|
||||||
$(CC) -w $(CFLAGS) -fPIC -c $< -o $@
|
$(CC) -w $(CFLAGS) -fPIC -c $< -o $@
|
||||||
|
|
||||||
|
|
||||||
fs_perl.$(DYNAMIC_LIB_EXTEN): $(MODNAME).so switch_swig_wrap.o switch_swig.o perlxsi.o
|
fs_perl.$(DYNAMIC_LIB_EXTEN): $(MODNAME).$(DYNAMIC_LIB_EXTEN) 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)
|
$(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)
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MODNAME).o $(OBJS)
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.dylib *.so *.o *~ perlxsi.c .perlok
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ perlxsi.c .perlok
|
||||||
|
|
||||||
install:
|
install:
|
||||||
mkdir -p $(PREFIX)/perl
|
mkdir -p $(PREFIX)/perl
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
cp -f fs_perl.$(DYNAMIC_LIB_EXTEN) 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
|
if [ ! -f $(PREFIX)/perl/freeswitch.pm ] ; then cp -f freeswitch.pm $(PREFIX)/perl ; fi
|
||||||
|
|
|
@ -65,18 +65,18 @@ OBJS=$(BASE)/libs/mozilla/js/src/$(OS_CONFIG)_DBG.OBJ/libjs.a $(BASE)/libs/mozil
|
||||||
LINKER=$(CC)
|
LINKER=$(CC)
|
||||||
|
|
||||||
|
|
||||||
all: depends $(MODNAME).so
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) mozilla.tar.gz --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) mozilla.tar.gz --prefix=$(PREFIX)
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install curl-7.15.2.tar.gz --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install curl-7.15.2.tar.gz --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).so: $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).so $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.so *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).so $(PREFIX)/mod
|
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||||
|
|
|
@ -188,6 +188,8 @@ static void process_module_file(char *dir, char *fname)
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
const char *ext = ".dll";
|
const char *ext = ".dll";
|
||||||
|
#elif defined (MACOSX) || defined (DARWIN)
|
||||||
|
const char *ext = ".dylib";
|
||||||
#else
|
#else
|
||||||
const char *ext = ".so";
|
const char *ext = ".so";
|
||||||
#endif
|
#endif
|
||||||
|
@ -201,11 +203,11 @@ static void process_module_file(char *dir, char *fname)
|
||||||
path = switch_core_strdup(loadable_modules.pool, file);
|
path = switch_core_strdup(loadable_modules.pool, file);
|
||||||
} else {
|
} else {
|
||||||
if (strchr(file, '.')) {
|
if (strchr(file, '.')) {
|
||||||
len = strlen(dir) + strlen(file) + 3;
|
len = strlen(dir) + strlen(file) + 4;
|
||||||
path = (char *) switch_core_alloc(loadable_modules.pool, len);
|
path = (char *) switch_core_alloc(loadable_modules.pool, len);
|
||||||
snprintf(path, len, "%s%s%s", dir, SWITCH_PATH_SEPARATOR, file);
|
snprintf(path, len, "%s%s%s", dir, SWITCH_PATH_SEPARATOR, file);
|
||||||
} else {
|
} else {
|
||||||
len = strlen(dir) + strlen(file) + 7;
|
len = strlen(dir) + strlen(file) + 8;
|
||||||
path = (char *) switch_core_alloc(loadable_modules.pool, len);
|
path = (char *) switch_core_alloc(loadable_modules.pool, len);
|
||||||
snprintf(path, len, "%s%s%s%s", dir, SWITCH_PATH_SEPARATOR, file, ext);
|
snprintf(path, len, "%s%s%s%s", dir, SWITCH_PATH_SEPARATOR, file, ext);
|
||||||
}
|
}
|
||||||
|
@ -324,6 +326,9 @@ SWITCH_DECLARE(switch_status) switch_loadable_module_init()
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
const char *ext = ".dll";
|
const char *ext = ".dll";
|
||||||
const char *EXT = ".DLL";
|
const char *EXT = ".DLL";
|
||||||
|
#elif defined (MACOSX) || defined (DARWIN)
|
||||||
|
const char *ext = ".dylib";
|
||||||
|
const char *EXT = ".DYLIB";
|
||||||
#else
|
#else
|
||||||
const char *ext = ".so";
|
const char *ext = ".so";
|
||||||
const char *EXT = ".SO";
|
const char *EXT = ".SO";
|
||||||
|
|
Loading…
Reference in New Issue