move all the in tree libs to use subst of the core configure, move all module builds to link with libtool to the .la, static when possible
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4548 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5312a255a2
commit
ee3fc89f69
|
@ -150,7 +150,7 @@ modules: libfreeswitch.la
|
||||||
@./build/addenv.sh build/freeswitch.env OSARCH "$(OSARCH)"
|
@./build/addenv.sh build/freeswitch.env OSARCH "$(OSARCH)"
|
||||||
@./build/addenv.sh build/freeswitch.env DYNAMIC_LIB_EXTEN "$(DYNAMIC_LIB_EXTEN)"
|
@./build/addenv.sh build/freeswitch.env DYNAMIC_LIB_EXTEN "$(DYNAMIC_LIB_EXTEN)"
|
||||||
@./build/addenv.sh build/freeswitch.env SOLINK "$(SOLINK)"
|
@./build/addenv.sh build/freeswitch.env SOLINK "$(SOLINK)"
|
||||||
@./build/addenv.sh build/freeswitch.env LDFLAGS "$(AM_LDFLAGS) -lfreeswitch"
|
@./build/addenv.sh build/freeswitch.env LDFLAGS "$(AM_LDFLAGS) $(MOD_LINK)"
|
||||||
@./build/addenv.sh build/freeswitch.env CFLAGS "$(AM_CFLAGS)"
|
@./build/addenv.sh build/freeswitch.env CFLAGS "$(AM_CFLAGS)"
|
||||||
@./build/addenv.sh build/freeswitch.env CC "$(CC)"
|
@./build/addenv.sh build/freeswitch.env CC "$(CC)"
|
||||||
@./build/addenv.sh build/freeswitch.env CFGARGS "$(AM_CFGARGS)"
|
@./build/addenv.sh build/freeswitch.env CFGARGS "$(AM_CFGARGS)"
|
||||||
|
@ -203,7 +203,7 @@ install_mod: modules
|
||||||
@./build/addenv.sh build/freeswitch.env BASE "$(switch_srcdir)"
|
@./build/addenv.sh build/freeswitch.env BASE "$(switch_srcdir)"
|
||||||
@./build/addenv.sh build/freeswitch.env OSARCH "$(OSARCH)"
|
@./build/addenv.sh build/freeswitch.env OSARCH "$(OSARCH)"
|
||||||
@./build/addenv.sh build/freeswitch.env SOLINK "$(SOLINK)"
|
@./build/addenv.sh build/freeswitch.env SOLINK "$(SOLINK)"
|
||||||
@./build/addenv.sh build/freeswitch.env LDFLAGS "$(AM_LDFLAGS) -lfreeswitch"
|
@./build/addenv.sh build/freeswitch.env LDFLAGS "$(AM_LDFLAGS) $(MOD_LINK)"
|
||||||
@./build/addenv.sh build/freeswitch.env CFLAGS "$(AM_CFLAGS)"
|
@./build/addenv.sh build/freeswitch.env CFLAGS "$(AM_CFLAGS)"
|
||||||
@./build/addenv.sh build/freeswitch.env CC "$(CC)"
|
@./build/addenv.sh build/freeswitch.env CC "$(CC)"
|
||||||
@./build/addenv.sh build/freeswitch.env LINK "$(LINK)"
|
@./build/addenv.sh build/freeswitch.env LINK "$(LINK)"
|
||||||
|
|
19
configure.in
19
configure.in
|
@ -284,4 +284,23 @@ AC_CONFIG_SUBDIRS(libs/libteletone)
|
||||||
AC_CONFIG_SUBDIRS(libs/pcre)
|
AC_CONFIG_SUBDIRS(libs/pcre)
|
||||||
AC_CONFIG_SUBDIRS(libs/apr)
|
AC_CONFIG_SUBDIRS(libs/apr)
|
||||||
AC_CONFIG_SUBDIRS(libs/apr-util)
|
AC_CONFIG_SUBDIRS(libs/apr-util)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/codec/g7xx)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/codec/g726)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/codec/gsm)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/codec/ilbc)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/codec/lpc10)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/curl)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/iax)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/iksemel)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/js/nsprpub)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/js)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/libdingaling)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/libetpan)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/libsndfile)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/sofia-sip)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/speex)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/xmlrpc-c)
|
||||||
|
AC_CONFIG_SUBDIRS(libs/portaudio)
|
||||||
|
|
||||||
|
|
||||||
AC_OUTPUT([src/include/switch_version.h])
|
AC_OUTPUT([src/include/switch_version.h])
|
||||||
|
|
|
@ -1,21 +1,20 @@
|
||||||
CFLAGS += -I$(BASE)/libs/udns
|
CFLAGS += -I$(BASE)/libs/udns
|
||||||
LDFLAGS += -L$(BASE)/libs/udns -ludns
|
|
||||||
LINKER=$(CC)
|
LINKER=$(CC)
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) udns
|
cd $(BASE)/libs/udns && $(MAKE) staticlib
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
|
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS) $(BASE)/libs/udns/libudns.a
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -13,11 +13,11 @@ all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
depends:
|
depends:
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -15,10 +15,10 @@ depends:
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(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).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -3,13 +3,11 @@ all: $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
LDFLAGS +=-lg7xx
|
CFLAGS +=-I$(BASE)/libs/codec/g7xx/src/include/
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/g7xx --prefix=$(PREFIX)
|
cd $(BASE)/libs/codec/g7xx && $(MAKE)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/codec/g7xx/libg7xx.la
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -14,10 +14,10 @@ depends:
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(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).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
LDFLAGS +=-lg726
|
CFLAGS += -I$(BASE)/libs/codec/g726/src
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/g726 --prefix=$(PREFIX)
|
cd $(BASE)/libs/codec/g726 && $(MAKE)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c ../../../include/switch_bitpack.h
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c ../../../include/switch_bitpack.h
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/codec/g726/libg726.la
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -15,10 +15,10 @@ depends:
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(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).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -3,14 +3,15 @@ LDFLAGS +=-lgsm
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/gsm --prefix=$(PREFIX)
|
cd $(BASE)/libs/codec/gsm && $(MAKE)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(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).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
cd $(BASE)/libs/codec/gsm && $(MAKE) install
|
||||||
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
LDFLAGS +=-lilbc
|
CFLAGS += -I$(BASE)/libs/codec/ilbc/src
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/ilbc --prefix=$(PREFIX) --disable-shared
|
cd $(BASE)/libs/codec/ilbc && $(MAKE)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/codec/ilbc/libilbc.la
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
LDFLAGS +=-llpc10
|
CFLAGS+=-I$(BASE)/libs/codec/lpc10/src
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install codec/lpc10 --prefix=$(PREFIX)
|
cd $(BASE)/libs/codec/lpc10 && $(MAKE)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c ../../../include/switch_bitpack.h
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c ../../../include/switch_bitpack.h
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/codec/lpc10/liblpc10.la
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "switch.h"
|
#include "switch.h"
|
||||||
#include "lpc10/lpc10.h"
|
#include "lpc10.h"
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SamplesPerFrame = 180,
|
SamplesPerFrame = 180,
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
|
CFLAGS+=-I$(BASE)/libs/speex/include
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install speex --prefix=$(PREFIX) --disable-shared --with-pic
|
cd $(BASE)/libs/speex && $(MAKE)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) -lspeex
|
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/speex/libspeex/libspeex.la
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,19 +1,20 @@
|
||||||
LDFLAGS += -ldingaling
|
LDFLAGS += $(BASE)/libs/libdingaling/libdingaling.la
|
||||||
|
CFLAGS += -I$(BASE)/libs/libdingaling/src
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install iksemel --prefix=$(PREFIX)
|
cd $(BASE)/libs/iksemel && $(MAKE)
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libdingaling --prefix=$(PREFIX)
|
cd $(BASE)/libs/libdingaling && $(MAKE)
|
||||||
|
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(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).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ *.so
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
cd $(BASE)/libs/iksemel && $(MAKE) install
|
||||||
|
cd $(BASE)/libs/libdingaling && $(MAKE) install
|
||||||
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
LDFLAGS += -liax -L/usr/local/lib
|
CFLAGS += -I$(BASE)/libs/iax/src
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install iax --enable-newjb --prefix=$(PREFIX)
|
cd $(BASE)/libs/iax && $(MAKE)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS) $(BASE)/libs/iax/src/libiax.la
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -31,15 +31,11 @@
|
||||||
*/
|
*/
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
#include <iax2.h>
|
#include <iax2.h>
|
||||||
#include <iax-client.h>
|
#include <iax-client.h>
|
||||||
#include <iax2-parser.h>
|
#include <iax2-parser.h>
|
||||||
|
#ifdef WIN32
|
||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
#else
|
|
||||||
#include <iax/iax2.h>
|
|
||||||
#include <iax/iax-client.h>
|
|
||||||
#include <iax/iax2-parser.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char modname[] = "mod_iax";
|
static const char modname[] = "mod_iax";
|
||||||
|
|
|
@ -1,22 +1,25 @@
|
||||||
CFLAGS += -I.
|
CFLAGS += -I. -I$(BASE)/libs/portaudio/include
|
||||||
LDFLAGS += -lportaudio -L$(PREFIX)
|
|
||||||
MYOBJS = pablio.o pa_ringbuffer.o
|
MYOBJS = pablio.o pa_ringbuffer.o
|
||||||
|
ifeq ($(OSARCH),Darwin)
|
||||||
|
LDFLAGS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
|
||||||
|
endif
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install portaudio --prefix=$(PREFIX) --with-pic
|
cd $(BASE)/libs/portaudio && $(MAKE)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MYOBJS)
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MYOBJS)
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(MYOBJS) $(LDFLAGS)
|
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MYOBJS) $(LDFLAGS) $(BASE)/libs/portaudio/lib/libportaudio.la
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,25 +1,32 @@
|
||||||
OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
|
OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
|
||||||
VERSION = sofia-sip-1.12
|
|
||||||
CFLAGS += -I. -I$(PREFIX)/include/$(VERSION)
|
|
||||||
LDFLAGS += -lsofia-sip-ua
|
|
||||||
LINKER=$(CC)
|
LINKER=$(CC)
|
||||||
|
CFLAGS += -I. -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/bnf -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/features
|
||||||
|
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/http -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/ipt
|
||||||
|
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/iptsec -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/msg
|
||||||
|
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nea -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nta
|
||||||
|
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nth -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/nua
|
||||||
|
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/sdp -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/sip
|
||||||
|
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/soa -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/sresolv
|
||||||
|
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/stun -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/su
|
||||||
|
CFLAGS += -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/tport -I$(BASE)/libs/sofia-sip/libsofia-sip-ua/url
|
||||||
|
|
||||||
ifeq ($(OS_ARCH),Darwin)
|
ifeq ($(OS_ARCH),Darwin)
|
||||||
LDFLAGS +=-framework CoreFoundation -framework SystemConfiguration
|
LDFLAGS +=-framework CoreFoundation -framework SystemConfiguration
|
||||||
endif
|
endif
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install sofia-sip --prefix=$(PREFIX) --with-pic --with-glib=no
|
cd $(BASE)/libs/sofia-sip && $(MAKE)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS) $(BASE)/libs/sofia-sip/libsofia-sip-ua/libsofia-sip-ua.la
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -18,11 +18,11 @@ depends:
|
||||||
$(CC) $(CFLAGS) $(MOD_CFLAGS) -g -ggdb -Werror -fPIC -c $< -o $@
|
$(CC) $(CFLAGS) $(MOD_CFLAGS) -g -ggdb -Werror -fPIC -c $< -o $@
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(OBJS) $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(OBJS) $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(OBJS) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -14,15 +14,15 @@ all: depends $(OBJS) $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
depends:
|
depends:
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(OBJS) $(MODNAME).cpp
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(OBJS) $(MODNAME).cpp
|
||||||
$(CPPCC) $(CFLAGS) -fPIC -c $(MODNAME).cpp -o $(MODNAME).o
|
$(CPPCC) $(CFLAGS) -c $(MODNAME).cpp -o $(MODNAME).o
|
||||||
$(CPPCC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(LIBTOOL) --mode=link $(CPPCC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CPPCC) -Wall -Werror -fPIC $(CFLAGS) -c -o $@ $<
|
$(CPPCC) -Wall -Werror -fPIC $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
LDFLAGS += -liksemel -L/usr/local/lib
|
CFLAGS += -I$(BASE)/libs/iksemel/include
|
||||||
|
LDFLAGS += $(BASE)/libs/iksemel/src/libiksemel.la
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
|
@ -6,11 +7,12 @@ depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install iksemel --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install iksemel --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
cd $(BASE)/libs/iksemel && $(MAKE) install
|
||||||
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -9,11 +9,11 @@ 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).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
LDFLAGS += -lsndfile -L/usr/local/lib
|
CFLAGS += -I$(BASE)/libs/libsndfile/src
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libsndfile --prefix=$(PREFIX) --disable-sqlite
|
cd $(BASE)/libs/libsndfile && $(MAKE)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS) $(BASE)/libs/libsndfile/src/libsndfile.la
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,20 +9,20 @@ LDFLAGS += `$(PREFIX)/bin/pkg-config --libs mono`
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install $(GETTEXT_TARBALL) --prefix=$(PREFIX) --with-pic
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(GETTEXT_TARBALL) --prefix=$(PREFIX) --with-pic
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install $(PKGCONFIG_TARBALL) --prefix=$(PREFIX) --with-pic
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(PKGCONFIG_TARBALL) --prefix=$(PREFIX) --with-pic
|
||||||
export PKG_CONFIG=$(PREFIX)/bin/pkg-config; export MSGFMT=$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install $(GLIB_TARBALL) --prefix=$(PREFIX) --with-pic
|
export PKG_CONFIG=$(PREFIX)/bin/pkg-config; export MSGFMT=$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(GLIB_TARBALL) --prefix=$(PREFIX) --with-pic
|
||||||
export PATH=$(PATH):$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install $(TARBALL) --prefix=$(PREFIX) --with-pic --with-gc=boehm --with-preview=yes --without-sigaltstack
|
export PATH=$(PATH):$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(TARBALL) --prefix=$(PREFIX) --with-pic --with-gc=boehm --with-preview=yes --without-sigaltstack
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -20,7 +20,7 @@ all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) fs_perl.$(DYNAMIC_LIB_EXTEN)
|
||||||
depends:
|
depends:
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -fPIC $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
reswig:
|
reswig:
|
||||||
rm switch_swig_wrap.c
|
rm switch_swig_wrap.c
|
||||||
|
@ -34,17 +34,17 @@ switch_swig_wrap.o: switch_swig_wrap.c
|
||||||
|
|
||||||
|
|
||||||
fs_perl.$(DYNAMIC_LIB_EXTEN): $(MODNAME).$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o
|
fs_perl.$(DYNAMIC_LIB_EXTEN): $(MODNAME).$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o
|
||||||
$(CC) $(SOLINK) -o fs_perl.$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o fs_perl.$(DYNAMIC_LIB_EXTEN) switch_swig_wrap.o switch_swig.o $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MODNAME).o $(OBJS)
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MODNAME).o $(OBJS)
|
||||||
$(CC) -fPIC $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .perlok
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .perlok .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
mkdir -p $(PREFIX)/perl
|
mkdir -p $(PREFIX)/perl
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
cp -f fs_perl.$(DYNAMIC_LIB_EXTEN) fs_perl.pm $(PREFIX)/perl
|
$(LTINSTALL) 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 $(LTINSTALL) freeswitch.pm $(PREFIX)/perl ; fi
|
||||||
|
|
|
@ -14,12 +14,12 @@ depends:
|
||||||
MAKE=$(MAKE) PY_CFLAGS=-fPIC $(BASE)/build/buildlib.sh $(BASE) install Python-2.4.3.tgz --prefix=$(PREFIX) --enable-threads
|
MAKE=$(MAKE) PY_CFLAGS=-fPIC $(BASE)/build/buildlib.sh $(BASE) install Python-2.4.3.tgz --prefix=$(PREFIX) --enable-threads
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CPPCC) -Wall -Werror -fPIC $(CFLAGS) -c -o $@ $<
|
$(CPPCC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(LCFLAGS) $(CFLAGS) -c $< -o $@
|
$(CC) $(LCFLAGS) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
od_python.c:
|
mod_python.c:
|
||||||
$(CC) $(LCFLAGS) $(CFLAGS) -c mod_python.c -o mod_python.o
|
$(CC) $(LCFLAGS) $(CFLAGS) -c mod_python.c -o mod_python.o
|
||||||
|
|
||||||
reswig:
|
reswig:
|
||||||
|
@ -48,7 +48,6 @@ clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# cp -f py_$(PYMOD).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
|
||||||
cp -f freeswitch.py $(PREFIX)/lib/python2.4/site-packages/
|
cp -f freeswitch.py $(PREFIX)/lib/python2.4/site-packages/
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,23 @@
|
||||||
|
CFLAGS += -I$(BASE)/libs/curl/include
|
||||||
|
LDFLAGS += $(BASE)/libs/curl/lib/libcurl.la
|
||||||
include sm.mak
|
include sm.mak
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install js/nsprpub --prefix=$(PREFIX) --with-pic
|
cd $(BASE)/libs/curl && $(MAKE)
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install js --prefix=$(PREFIX) --with-pic --with-nspr=yes
|
cd $(BASE)/libs/js/nsprpub && $(MAKE)
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install curl --prefix=$(PREFIX) --without-libidn
|
cd $(BASE)/libs/js && $(MAKE)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MODNAME).h
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MODNAME).h
|
||||||
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
cd $(BASE)/libs/js/nsprpub && $(MAKE) install
|
||||||
|
cd $(BASE)/libs/js && $(MAKE) install
|
||||||
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
||||||
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
CFLAGS += -I$(PREFIX)/include/js -I$(PREFIX)/include/nspr -DXP_UNIX -I../mod_spidermonkey -DJS_THREADSAFE -DJS_HAS_FILE_OBJECT=1
|
CFLAGS += -I$(BASE)/libs/js/src -I$(BASE)/libs/js/nsprpub/include -DXP_UNIX -I../mod_spidermonkey -DJS_THREADSAFE -DJS_HAS_FILE_OBJECT=1
|
||||||
LDFLAGS += -lnspr4 -ljs -lcurl
|
LDFLAGS += -L$(BASE)/libs/js/nsprpub/pr/src -L$(BASE)/libs/js/nsprpub/dist/lib -lnspr4 $(BASE)/libs/js/libjs.la
|
||||||
|
|
|
@ -5,11 +5,11 @@ all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
depends:
|
depends:
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
include ../mod_spidermonkey/sm.mak
|
include ../mod_spidermonkey/sm.mak
|
||||||
|
|
||||||
OBJS=#$(BASE)/libs/mozilla/js/src/$(OS_CONFIG)_$(VER).OBJ/libjs.a $(BASE)/libs/mozilla/nsprpub/dist/lib/libnspr4.a -letpan
|
LDFLAGS+=-letpan
|
||||||
LINKER=$(CC)
|
|
||||||
|
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
|
@ -10,11 +8,11 @@ depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libetpan --prefix=$(PREFIX)
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libetpan --prefix=$(PREFIX)
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -7,11 +7,11 @@ depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install unixODBC-2.2.12.tar.gz --prefix=$(PREFIX) --disable-gui --without-x --with-pic
|
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install unixODBC-2.2.12.tar.gz --prefix=$(PREFIX) --disable-gui --without-x --with-pic
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,19 +1,15 @@
|
||||||
include ../mod_spidermonkey/sm.mak
|
include ../mod_spidermonkey/sm.mak
|
||||||
|
|
||||||
OBJS=#$(BASE)/libs/mozilla/js/src/$(OS_CONFIG)_$(VER).OBJ/libjs.a $(BASE)/libs/mozilla/nsprpub/dist/lib/libnspr4.a
|
|
||||||
LINKER=$(CC)
|
|
||||||
|
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
include ../mod_spidermonkey/sm.mak
|
include ../mod_spidermonkey/sm.mak
|
||||||
LDFLAGS+=-lteletone
|
LDFLAGS+=$(BASE)/libs/libteletone/libteletone.la
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,18 +1,19 @@
|
||||||
LDFLAGS += -lcurl
|
CFLAGS += -I$(BASE)/libs/curl/include
|
||||||
|
LDFLAGS += $(BASE)/libs/curl/lib/libcurl.la
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install curl --prefix=$(PREFIX)
|
cd $(BASE)/libs/curl && $(MAKE)
|
||||||
|
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
|
@ -1,18 +1,23 @@
|
||||||
LDFLAGS += -lxmlrpc -lxmlrpc_abyss -lxmlrpc_server -lxmlrpc_server_abyss -lxmlrpc_xmlparse
|
#LDFLAGS += -lxmlrpc -lxmlrpc_abyss -lxmlrpc_server -lxmlrpc_server_abyss -lxmlrpc_xmlparse
|
||||||
|
LDFLAGS += $(BASE)/libs/xmlrpc-c/src/libxmlrpc.la $(BASE)/libs/xmlrpc-c/src/libxmlrpc_server.la
|
||||||
|
LDFLAGS += $(BASE)/libs/xmlrpc-c/src/libxmlrpc_server_abyss.la $(BASE)/libs/xmlrpc-c/lib/abyss/src/libxmlrpc_abyss.la
|
||||||
|
LDFLAGS += $(BASE)/libs/xmlrpc-c/lib/expat/xmlparse/libxmlrpc_xmlparse.la
|
||||||
|
|
||||||
|
CFLAGS += -I$(BASE)/libs/xmlrpc-c/include
|
||||||
|
|
||||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
depends:
|
depends:
|
||||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install xmlrpc-c --prefix=$(PREFIX) --disable-cplusplus --disable-wininet-client --disable-libwww-client
|
cd $(BASE)/libs/xmlrpc-c && $(MAKE)
|
||||||
|
|
||||||
|
|
||||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||||
|
|
Loading…
Reference in New Issue