📄 makefile
字号:
#************************************************************************************## Makefile for IIR Filter case study# See cookbook for more info.##************************************************************************************# Pass in TCS:TCS=TMSIM = ${TCS}/bin/tmsimTMCC = ${TCS}/bin/tmccTMPROF = ${TCS}/bin/tmprofTMDBG = ${TCS}/bin/tmdbgTMAR = $(TCS)/bin/tmarVEC_DIR =./#target nameHELP = iirFilterSRC1 = testMain.cSRC2 = convertCoeff.cSRC3 = iirFilter_1.c SRC4 = iirFilter_2.cSRC5 = iirFilter_3.cSRC6 = iirFilter_4.cSRC7 = iirFilter_5.cSRC8 = iirFilter_6.cSRC9 = iirFilter_7.cSRC10 = iirFilter_8.cSRC11 = iirFilter_9.cSRC12 = iirFilter_10.cSRCS = ${SRC1} ${SRC2} ${SRC3} ${SRC4} ${SRC5} ${SRC6}\ ${SRC7} ${SRC8} ${SRC9} ${SRC10} ${SRC11} ${SRC12}OBJECT = ${SRCS:.c=.o}OPT1 = -p -O3 ${INCL:%=-I%}OPT2 = -K -O3 ${INCL:%=-I%}OPT3 = -host Win95 -r -G ${INCL:%=-I%}OPT4 = -host Win95 ${INCL:%=-I%}IN1 = noiseMono.pcm#************************************************************************************# You have to add for each module a seperate section !!!!!!!!!!!!!!!!!#************************************************************************************ #************************************************************************************# generating report with ${TMPROF}#************************************************************************************${SRC1:.c=.prf}: ${SRC1:.c=.stat} @ echo @ echo "generating report" @ echo ${TMPROF} ${SRC1:.c=.stat} ${SRC1:.c=.out} -func -detail -scale 1.0 \ -threshold 0.0001 > ${SRC1:.c=.prf}#************************************************************************************# simulation with ${TMSIM}#************************************************************************************${SRC1:.c=.stat}: ${SRC1:.c=.out} @ echo @ echo "simulation of ${SRC1:.c=.out}" @ echo ${TMSIM} -el -statfile ${SRC1:.c=.stat} ${SRC1:.c=.out} ${IN1}#************************************************************************************# compilation with ${TMCC}#************************************************************************************${SRC1:.c=.out}: ${SRCS} @ echo @ echo "compilation to final target: ${SRC1:.c=.out}" @ echo ${TMCC} -el ${OPT2} -o ${SRC1:.c=.out} ${SRCS}#************************************************************************************# cleaning the directory from files produced by the compiler# and the simulator#************************************************************************************clean: @- rm ${SRC1:.c=.out} @- rm ${SRC1:.c=.prf} @- rm ${SRC1:.c=.stat} @- rm ${OBJECT} @- rm ${OBJECT:.o=.s} @- rm ${OBJECT:.o=.t} @- rm dtprof.out @- rm iirOut* @- rm out* @- rm ${HELP}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -