From 032f5c4def19123a1c52d54691579dd6167543b9 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 9 Apr 2007 17:13:10 +0000 Subject: 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 --- third_party/build/speex/Makefile | 74 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 third_party/build/speex/Makefile (limited to 'third_party/build/speex/Makefile') 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; \ + + -- cgit v1.2.3