core deps will now be configured along with the core configure, and will be static non-installed and linked only to the core.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4525 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-03-11 07:36:49 +00:00
parent 6ea009b5f9
commit 46f6981dc4
2 changed files with 40 additions and 21 deletions

View File

@ -75,21 +75,23 @@ CORE_CFLAGS += -I$(switch_srcdir)/libs/srtp/crypto/include
CORE_CFLAGS += -I$(switch_srcdir)/libs/libresample/include
CORE_CFLAGS += -I$(switch_srcdir)/libs/libteletone/src
CORE_LDFLAGS = $(shell $(switch_srcdir)/libs/apr/apr-1-config --link-ld --libs )
CORE_LDFLAGS += $(shell $(switch_srcdir)/libs/apr-util/apu-1-config --link-ld --libs )
CORE_LIBS = $(shell $(switch_srcdir)/libs/apr/apr-1-config --link-libtool )
CORE_LIBS += $(shell $(switch_srcdir)/libs/apr-util/apu-1-config --link-libtool )
CORE_LIBS += libs/sqlite/libsqlite3.la libs/pcre/libpcre.la
CORE_LIBS += libs/srtp/libsrtp.la libs/libresample/libresample.la
CORE_LIBS += libs/libteletone/libteletone.la
lib_LTLIBRARIES = libfreeswitch.la
libfreeswitch_la_CFLAGS = $(CORE_CFLAGS) $(AM_CFLAGS)
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(CORE_LDFLAGS) $(AM_LDFLAGS)
libfreeswitch_la_LIBADD = -lteletone -lresample -lsrtp -lsqlite3 -lpcre
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS)
libfreeswitch_la_LIBADD = $(CORE_LIBS)
nodist_libfreeswitch_la_SOURCES = src/include/switch_version.h
$(libfreeswitch_la_SOURCES): depends version
$(libfreeswitch_la_SOURCES): deps
MOD_LINK = $(BASE)/libfreeswitch.la
CLEANFILES = src/include/switch_version.h
BUILT_SOURCES = version depends
bin_PROGRAMS = freeswitch
freeswitch_SOURCES = src/switch.c\
@ -112,23 +114,32 @@ nodepends: .nodepends
yesdepends:
rm .nodepends
depends:
@echo making depends
@rm -f build/freeswitch.env
@./build/addenv.sh build/freeswitch.env PREFIX $(PREFIX)
@./build/addenv.sh build/freeswitch.env MAKE $(MAKE)
mkdir -p $(PREFIX)
./build/buildlib.sh . install sqlite --prefix=$(PREFIX) --disable-tcl --enable-threadsafe
./build/buildlib.sh . install apr --prefix=$(PREFIX)
./build/buildlib.sh . install apr-util --with-apr=../apr --prefix=$(PREFIX)
./build/buildlib.sh . install libresample --prefix=$(PREFIX)
./build/buildlib.sh . install libteletone --prefix=$(PREFIX)
./build/buildlib.sh . install srtp --prefix=$(PREFIX)
./build/buildlib.sh . install pcre --prefix=$(PREFIX)
rm build/freeswitch.env
sqlite:
cd libs/sqlite && $(MAKE)
apr:
cd libs/apr && $(MAKE)
modules: $(NAME)
apr-util:
cd libs/apr-util && $(MAKE)
pcre:
cd libs/pcre && $(MAKE)
srtp:
cd libs/srtp && $(MAKE)
resample:
cd libs/libresample && $(MAKE)
teletone:
cd libs/libteletone && $(MAKE)
deps: version sqlite apr apr-util pcre srtp resample teletone
core: deps libfreeswitch.la
modules: libfreeswitch.la
@if [ ! -f $(PWD)/modules.conf ] ; then cp $(PWD)/modules.conf.in $(PWD)/modules.conf ; fi
@echo making modules
@rm -f build/freeswitch.env

View File

@ -276,4 +276,12 @@ AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux])
AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])
AM_CONDITIONAL(IS64BITLINUX, [test `uname -m` = x86_64])
# Run configure in all the subdirs
AC_CONFIG_SUBDIRS(libs/srtp)
AC_CONFIG_SUBDIRS(libs/sqlite)
AC_CONFIG_SUBDIRS(libs/libresample)
AC_CONFIG_SUBDIRS(libs/libteletone)
AC_CONFIG_SUBDIRS(libs/pcre)
AC_CONFIG_SUBDIRS(libs/apr)
AC_CONFIG_SUBDIRS(libs/apr-util)
AC_OUTPUT([src/include/switch_version.h])