diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-04-09 17:13:10 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-04-09 17:13:10 +0000 |
commit | 032f5c4def19123a1c52d54691579dd6167543b9 (patch) | |
tree | f1e07e9da3da02ba832e8e4b3fb846d1dcb3733c /third_party/build/speex | |
parent | 174c05e4ea8add3a5536d8818f3f78ddf7842d15 (diff) |
Initial Makefiles for the third_party components
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1180 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/build/speex')
-rw-r--r-- | third_party/build/speex/Makefile | 74 | ||||
-rw-r--r-- | third_party/build/speex/config.h | 6 | ||||
-rw-r--r-- | third_party/build/speex/speex/speex_config_types.h | 6 |
3 files changed, 85 insertions, 1 deletions
diff --git a/third_party/build/speex/Makefile b/third_party/build/speex/Makefile new file mode 100644 index 00000000..234e2b93 --- /dev/null +++ b/third_party/build/speex/Makefile @@ -0,0 +1,74 @@ +include ../../../build.mak +include ../../../build/common.mak + +export LIBDIR := ../../lib + +RULES_MAK := $(PJDIR)/build/rules.mak + +export SPEEX_LIB := ../../lib/libspeex-$(TARGET_NAME)$(LIBEXT) + +############################################################################### +# Gather all flags. +# +export _CFLAGS := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \ + $(CFLAGS) $(CC_INC). $(CC_INC)../../speex/include \ + $(CC_INC)../../speex/libspeex \ + $(CC_INC)../../../pjlib/include +export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ + $(HOST_CXXFLAGS) $(CXXFLAGS) +export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ + $(LDFLAGS) + +export SPEEX_SRCDIR = ../../speex/libspeex +export SPEEX_OBJS = bits.o cb_search.o exc_10_16_table.o \ + exc_10_32_table.o exc_20_32_table.o \ + exc_5_256_table.o exc_5_64_table.o \ + exc_8_128_table.o fftwrap.o filterbank.o \ + filters.o gain_table.o gain_table_lbr.o \ + hexc_10_32_table.o hexc_table.o \ + high_lsp_tables.o jitter.o \ + kiss_fft.o kiss_fftr.o lpc.o \ + lsp.o lsp_tables_nb.o ltp.o \ + math_approx.o mdf.o medfilter.o misc.o modes.o \ + nb_celp.o preprocess.o \ + quant_lsp.o resample.o sb_celp.o smallft.o \ + speex.o speex_callbacks.o speex_header.o \ + stereo.o vbr.o vq.o window.o + +export SPEEX_CFLAGS = -DHAVE_CONFIG_H $(_CFLAGS) + + +export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT +############################################################################### +# Main entry +# +# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. +# +TARGETS := libspeex + +all: $(TARGETS) + +doc: + cd .. && doxygen docs/doxygen.cfg + +dep: depend +distclean: realclean + +.PHONY: dep depend libspeex clean realclean distclean + +libspeex: + $(MAKE) -f $(RULES_MAK) APP=SPEEX app=libspeex $(SPEEX_LIB) + +clean print_lib: + $(MAKE) -f $(RULES_MAK) APP=SPEEX app=libspeex $@ + +realclean: + $(subst @@,$(subst /,$(HOST_PSEP),.ilbc-$(TARGET_NAME).depend),$(HOST_RMR)) + + $(MAKE) -f $(RULES_MAK) APP=SPEEX app=libspeex $@ + +depend: + $(MAKE) -f $(RULES_MAK) APP=SPEEX app=libspeex $@ + echo '$(SPEEX_LIB): .libspeex-$(TARGET_NAME).depend' >> .libspeex-$(TARGET_NAME).depend; \ + + diff --git a/third_party/build/speex/config.h b/third_party/build/speex/config.h index 7874c3f7..89fd3400 100644 --- a/third_party/build/speex/config.h +++ b/third_party/build/speex/config.h @@ -1,4 +1,4 @@ -#include <pj/config.h> +#include <pj/types.h> /* Check if we need to use the fixed point version */ #if !defined(PJ_HAS_FLOATING_POINT) || PJ_HAS_FLOATING_POINT==0 @@ -9,6 +9,10 @@ #if (defined(PJ_WIN32) && PJ_WIN32!=0) || \ (defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE != 0) # include "../../speex/win32/config.h" +#else +#define inline __inline +#define restrict +#include "misc.h" #endif #ifdef _MSC_VER diff --git a/third_party/build/speex/speex/speex_config_types.h b/third_party/build/speex/speex/speex_config_types.h new file mode 100644 index 00000000..b4054516 --- /dev/null +++ b/third_party/build/speex/speex/speex_config_types.h @@ -0,0 +1,6 @@ +#include <pj/types.h> +typedef pj_int16_t spx_int16_t; +typedef pj_uint16_t spx_uint16_t; +typedef pj_int32_t spx_int32_t; +typedef pj_uint32_t spx_uint32_t; + |