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

📄 makefile.djc

📁 Reference Implementation of G.711 standard and other voice codecs
💻 DJC
字号:
# -----------------------------------------------------------------------------# MSDOS gcc 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 = gawkAWK_CMD = '$$6~/[0-9]+:[0-9][0-9]/ {print "sb -over",$$NF};END{print "exit"}'# ------------------------------------------------# Choose compiler & options# ------------------------------------------------GCC = gcc -fno-builtinCC_OPT = -I../utl -Wall# ------------------------------------------------# General purpose symbols# ------------------------------------------------RM = rm -fSVP56 = go32 sv56demoACTLEV = go32 actlevP56_OBJ = sv-p56.o ugst-utl.o#------------------------------------------------------------------# Implicit rules#------------------------------------------------------------------.c.o:	$(CC) $(CC_OPT) -c $<#------------------------------------------------------------------# Targets and general rules#------------------------------------------------------------------all:: sv56demo actlevanyway: clean allclean:	$(RM) *.ocleantest:	$(RM) voice.nrm voice.ltl voice.prc voice.rms voice.srcveryclean: clean cleantest	$(RM) sv56demo actlev#------------------------------------------------------------------# Specific rules#------------------------------------------------------------------sv56demo: sv56demo.o $(P56_OBJ)	$(CC) $(CC_OPT) -o sv56demo sv56demo.o $(P56_OBJ) -lmactlev:	actlevel.o $(P56_OBJ)	$(CC) $(CC_OPT) -o actlev actlevel.o $(P56_OBJ) -lmugst-utl.o: ../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 and byte-swap 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 | $(AWK) $(AWK_CMD) | commandvoice.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 | $(AWK) $(AWK_CMD) | command

⌨️ 快捷键说明

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