📄 make_enc_fx
字号:
#####################################################################
#===================================================================
# MAKEFILE: make_enc
#-------------------------------------------------------------------
# PURPOSE: Compile the preliminary SMV (Selectable Mode Vocoder)
# on the Sun OS
#===================================================================
#####################################################################
##############################################
# Mandatory flags, SHOULD ALWAYS BE DEFINED! #
##############################################
# ENC_CMP : Compile the encoder functions.
# DEC_CMP : Compile the decoder functions.
MF = \
-DENC_CMP
##################
# Optional flags #
##################
# VERBOSE : Enables program print-out.
# WMOPS_FX : Enables the count of WMOPS for the evaluation
# of the complexity of fixed point code.
# DRAM_ROM_TEST : Estimation of the DRAM and SPRAM.
# DIAG_SMV_FX : Enables the output of algorithm parameters for
# diagnostic purposes.
# VAD_A : Compile using the VAD option A.
# VAD_B : Compile using the VAD option B.
# NS_A : Compile using the NS option A.
# NS_B : Compile using the NS option B.
# DATA : Compile the TTY/TTD code (data or speech + data
# transmission).
OF = \
# -DVAD_A\
# -DNS_A\
# -DDATA\
# -DVAD_B \
# -DNS_B \
# -DDATA\
# -DDIAG_SMV_FX \
# -DVERBOSE\
# -DDRAM_ROM_TEST_FX\
# -DWMOPS_FX \
##################
# Platform flags #
##################
# BYTE_SWAP_INPUT : Enables byte-wapping of the input.
# BYTE_SWAP_OUTPUT: Enables byte-wapping of the output.
PF = \
# -DBYTE_SWAP_INPUT \
# -DBYTE_SWAP_OUTPUT
OBJ = ../../obj/sun_fx/
SRC_FX = ../../src_fx/
DSP_FX = ../../dsp_fx/
TTYDIR = ../../tty
DTMFDIR = ../../dtmf
EXE = ../../exe/sun/
TAB_FX = ../../tab_fx/
CC = gcc
ADD_DIR = -I ${DSP_FX} -I ${TAB_FX} -I ${SRC_FX} -I${TTYDIR} -I${DTMFDIR}
CFLAGS = -Wall -O3 -static -ffloat-store $(MF) $(OF) $(PF) $(ADD_DIR)
#CFLAGS = -Wall -g -static -ffloat-store $(MF) $(OF) $(PF) $(ADD_DIR)
DIAG = ${OBJ}lib_dia_fx.o
WMPS = ${OBJ}lib_wmp_fx.o
COD_LIB_FX = \
${OBJ}lib_swb_fx.o \
${OBJ}gputil_fx.o ${OBJ}mcutil_fx.o \
${OBJ}lib_lpc_fx.o ${OBJ}lib_mus_fx.o \
${OBJ}lib_sns_fx.o ${OBJ}lib_flt_fx.o \
${OBJ}lib_ini_fx.o ${OBJ}lib_pwf_fx.o \
${OBJ}lib_gcb_fx.o ${OBJ}lib_fcs_fx.o \
${OBJ}lib_geq_fx.o ${OBJ}lib_pit_fx.o \
${OBJ}lib_ltp_fx.o ${OBJ}lib_ppp_fx.o \
${OBJ}lib_cla_fx.o ${OBJ}lib_qlsf_fx.o \
${OBJ}lib_ppr_fx.o ${OBJ}lib_prc_fx.o \
${OBJ}lib_smo_fx.o ${OBJ}lib_snr_fx.o \
${OBJ}lib_evad_fx.o ${OBJ}lib_vad_fx.o\
${OBJ}lib_bit_fx.o ${OBJ}lib_cpr_fx.o \
${OBJ}lib_io_fx.o \
${OBJ}uvgq_fx.o ${OBJ}nelp_fx.o \
${OBJ}r_fft_fx.o
MATH_LIB_FX = ${OBJ}basic_op.o ${OBJ}basic_op40.o \
${OBJ}math_ext32.o ${OBJ}math_ext40.o \
${OBJ}math_adv.o ${OBJ}math_adv40.o
ENCODE = ${OBJ}main_enc_fx.o ${OBJ}encoder_fx.o
LIBDIR= -L$(TTYDIR) -L$(DTMFDIR)
LIBFILES=$(TTYDIR)/libtty.a $(DTMFDIR)/libdtmf.a
LIBS = -ldtmf -ltty -lm
all: ${EXE}encoder_fx
${EXE}encoder_fx: $(ENCODE) ${WMPS} ${DIAG} ${COD_LIB_FX} ${MATH_LIB_FX} ${LIBFILES}
$(CC) $(CFLAGS) $(ENCODE) ${WMPS} ${DIAG} ${COD_LIB_FX} ${MATH_LIB_FX} ${LIBDIR} $(LIBS) -o ${EXE}encoder_fx
${EXE}decoder_fx: $(DECODE) ${WMPS} ${DIAG} ${COD_LIB_FX} ${MATH_LIB_FX} ${LIBFILES}
$(CC) $(CFLAGS) $(DECODE) ${WMPS} ${DIAG} ${COD_LIB_FX} ${MATH_LIB_FX} ${LIBDIR} $(LIBS) -o ${EXE}decoder_fx
$(OBJ)%.o:$(DSP_FX)%.c
$(CC) $(CFLAGS) -c $< -o $@
$(OBJ)%.o:$(SRC_FX)%.c
$(CC) $(CFLAGS) -c $< -o $@
$(ENCODE): ${SRC_FX}encoder_fx.h \
${SRC_FX}const_fx.h ${SRC_FX}main_fx.h \
${SRC_FX}lib_cpr_fx.h ${SRC_FX}lib_io_fx.h \
${SRC_FX}lib_swb_fx.h ${SRC_FX}lib_bit_fx.h \
${SRC_FX}lib_dia_fx.h \
\
${SRC_FX}ext_var_fx.h ${SRC_FX}glb_var_fx.h \
${SRC_FX}gputil_fx.h ${SRC_FX}mcutil_fx.h ${SRC_FX}typedef_fx.h \
${SRC_FX}lib_ini_fx.h \
${SRC_FX}lib_lpc_fx.h ${SRC_FX}lib_sns_fx.h ${SRC_FX}lib_flt_fx.h \
${SRC_FX}lib_gcb_fx.h ${SRC_FX}lib_fcs_fx.h ${SRC_FX}lib_geq_fx.h \
${SRC_FX}lib_pit_fx.h ${SRC_FX}lib_ltp_fx.h ${SRC_FX}lib_cla_fx.h \
${SRC_FX}lib_ppp_fx.h ${SRC_FX}lib_ppr_fx.h ${SRC_FX}lib_prc_fx.h \
${SRC_FX}lib_smo_fx.h ${SRC_FX}lib_snr_fx.h ${SRC_FX}lib_mus_fx.h \
${SRC_FX}lib_evad_fx.h ${SRC_FX}lib_vad_fx.h \
${SRC_FX}nelp_fx.h ${SRC_FX}uvgq_fx.h \
\
${DSP_FX}basic_op.h ${DSP_FX}basic_op40.h \
${DSP_FX}math_ext32.h ${DSP_FX}math_ext40.h \
${DSP_FX}math_adv.h ${DSP_FX}math_adv40.h ${DSP_FX}lib_wmp_fx.h\
\
${TAB_FX}lib_qlsf_fx.tab ${TAB_FX}lib_geq_fx.tab \
${TAB_FX}lib_gcb_fx.tab \
${TAB_FX}lib_lpc_fx.tab ${TAB_FX}lib_fcs_fx.tab \
${TAB_FX}lib_bit_fx.tab\
${TAB_FX}lib_ppr_fx.tab ${TAB_FX}lib_ltp_fx.tab \
${TAB_FX}lib_smo_fx.tab ${TAB_FX}lib_cla_fx.tab \
${TAB_FX}lib_evad_fx.tab\
${TAB_FX}lib_sns_fx.tab
clean:
rm -rf ${OBJ}*.o ${EXE}encoder_fx
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -