makefile
来自「用于TM1300/PNX1300系列DSP(主要用于视频处理)的各种滤波器源码」· 代码 · 共 62 行
TXT
62 行
# examples/cookbook/dct Makefile 11/20/00# pass in TCS, or set this here:HOSTCC = accENDIAN=elcheck: -mkdir ref tmp make clean make fdct @for endian in el eb ; \ do \ echo Endian $${endian}, ... Compiling -- ; \ make TCS=$(TCS) ENDIAN=$${endian} compile ; \ for a in input.linear input.rand test2d.2 blksample.1 blksample.2 blksample.3 blksample.4 blksample.5 blksample.6 input.2 ; \ do \ echo -n ... Input $$a "..." ; \ $(TCS)/bin/tmsim dct.out <data/$$a >tmp/$$a ; \ fdct data/$$a >ref/$$a; \ echo `cmp -l ref/$$a tmp/$$a | wc -l` Differences;\ done ; \ doneprofile: compile $(TCS)/bin/tmsim -target tm1100 -statfile dct.stf dct.out <data/input.linear >tmp/input.linear $(TCS)/bin/tmprof dct.stf dct.out -nomm -scale 1 -fcs _dct8x8fixrun: dct.out $(TCS)/bin/tmsim -target tm1100 -statfile dct.stf dct.out <input.linear >output.linearcompile: main.c dctfix.c @$(TCS)/bin/tmcc -$(ENDIAN) -target tm1 -o dct.out dctfix.c main.c # -DONEPASSref : check input.linear input.rand dct.out $(TCS)/bin/tmsim dct.out -scale 8 input.linear >ref.linear $(TCS)/bin/tmsim dct.out -scale 8 input.rand >ref.rand echo "DCT Differences, input linear ::" -diff ref.linear output.linear echo "DCT Differences, input rand ::" -diff ref.rand output.randfdct: fdct.c $(HOSTCC) fdct.c -lm -o fdctone_d.out: one_d.c $(TCS)/bin/tmcc -$(ENDIAN) -target tm1 one_d.c -o one_d.outinput.rand input.linear: gen.c $(TCS)/bin/tmcc -$(ENDIAN) gen.c $(TCS)/bin/tmsim a.out -rand >input.rand $(TCS)/bin/tmsim a.out 10 >input.linearclean: @-rm dct.stf dct.out *.o *.out fdctclobber: clean @-rm input.rand input.linear output.rand output.linear ref.linear ref.randtar: -tar cvf /tmp/dct.tar ./*.[ch] ./data ./Makefile
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?