⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.tcc

📁 Reference Implementation of G.711 standard and other voice codecs
💻 TCC
字号:
# -----------------------------------------------------------------------------# Borland [tb]cc makefile for compiling and testing the # UGST P.56 speech voltmeter.# Executable must be defined by SVP56 and ACTLEV below.## Implemented by <simao@ctd.comsat.com> -- 01.Dec.94# -----------------------------------------------------------------------------# ------------------------------------------------# Choose a file comparison utility: # ------------------------------------------------DIFF = cf -q# ------------------------------------------------# Choose an archiving utility: #	- public domain unzip, or [PC/Unix/VMS]#	- shareware pkunzip [PC only]# ------------------------------------------------#UNZIP = -pkunzipUNZIP = unzip -o# ------------------------------------------------# Choose an AWK; suggest use GNU version #                (available via anonymous ftp) # ------------------------------------------------AWK = gawk###AWK_CMD = '$$6~/[0-9]+:[0-9][0-9]/ {print "sb -over",$$NF};END{print "exit"}'AWK_CMD = '$6~/[0-9]+:[0-9][0-9]/{{print "sb -over",$NF;print "touch",$NF}}'# ------------------------------------------------# Choose compiler & options# ------------------------------------------------CC = tccCC_OPT = -I../utl# ------------------------------------------------# General purpose symbols# ------------------------------------------------RM = rm -fSVP56 = sv56demo.exeACTLEV = actlev.exeP56_OBJ = sv-p56.obj ugst-utl.obj#------------------------------------------------------------------# Implicit rules#------------------------------------------------------------------.c.obj:	$(CC) $(CC_OPT) -c $<#------------------------------------------------------------------# Targets and general rules#------------------------------------------------------------------all:: sv56demo actlevanyway: clean allclean:	$(RM) *.objcleantest:	$(RM) voice.nrm voice.ltl voice.prc voice.rms voice.srcveryclean: clean cleantest	$(RM) $(SVP56) $(ACTLEV)#------------------------------------------------------------------# Specific rules#------------------------------------------------------------------sv56demo: 	sv56demo.exesv56demo.exe:	sv56demo.obj $(P56_OBJ)	$(CC) $(CC_OPT) -esv56demo sv56demo.obj $(P56_OBJ) actlev:		actlev.exeactlev.exe:	actlevel.obj $(P56_OBJ)	$(CC) $(CC_OPT) -eactlev actlevel.obj $(P56_OBJ) ugst-utl.obj: ../utl/ugst-utl.c	$(CC) $(CC_OPT) -c ../utl/ugst-utl.c#------------------------------------------------------------------# Test the implementation# Note: there are no compliance test vectors associated with this module#------------------------------------------------------------------test:	proc compproc:   voice.src voice.nrm# Process by the speech voltmeter, use active speech level	$(SVP56) -q voice.src voice.prc 256 1 0 -30# Process by the speech voltmeter, use RMS, long-term speech level	$(SVP56) -q -rms voice.src voice.rms 256 1 0 -30# Measure the new file	$(ACTLEV) -q voice.src voice.nrm voice.prc voice.ltl voice.rmscomp:# Compare with reference - no differences should be found.	$(DIFF) voice.nrm voice.prc	$(DIFF) voice.ltl voice.rms#------------------------------------# Unpack if necessary for testing#------------------------------------voice.nrm:	sv56-tst.zip	$(UNZIP) sv56-tst.zip voice.nrm voice.ltl	swapover voice.nrm voice.ltl#	$(UNZIP) -v sv56-tst.zip voice.nrm voice.ltl > x#	$(AWK) $(AWK_CMD) x > y.bat#	y#	$(RM) x y.batvoice.src: ../is54/bin/is54-tst.zip	$(UNZIP) ../is54/bin/is54-tst.zip voice.src	swapover voice.src#	$(UNZIP) -v ../is54/bin/is54-tst.zip voice.src > x#	$(AWK) $(AWK_CMD) x > y.bat#	y#	$(RM) x y.bat

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -