📄 makefile.unx
字号:
# -----------------------------------------------------------------------------# Unix makefile for compiling and testing the UGST MNRU # implementation# Implemented by <simao@ctd.comsat.com> -- 31.Jul.95# -----------------------------------------------------------------------------# ------------------------------------------------# Choose compiler.# ------------------------------------------------GCC = gccCC_OPT = -g -I../utl -WallPROGRAMS = mnrudemoMNRU_EXE = ./mnrudemo -q# ------------------------------------------------# Choose an archiving utility: # - public domain unzip, or [PC/Unix/VMS]# - shareware pkunzip [PC only]# ------------------------------------------------#UNZIP = pkunzipUNZIP = unzip -o# ------------------------------------------------# Choose a file comparison utility: # - cf compares, # - sub shows the difference of the different samples# Default is cf.# ------------------------------------------------DIFF = cf -q#DIFF = sub#DIFF_OPT = 256 1 30# ------------------------------------------------# List of files (source and object)# ------------------------------------------------SOURCES = mnru.c mnrudemo.c ugst-utl.c OBJECTS = mnru.o mnrudemo.o ugst-utl.o # ------------------------------------------------# Generic rules# ------------------------------------------------.c.o: $(CC) $(CC_OPT) -c $<# ------------------------------------------------# Targets# ------------------------------------------------all: $(PROGRAMS) clean: $(RM) $(OBJECTS)cleantest: $(RM) sine*.unx *.q?? sine.srcveryclean: clean cleantest $(RM) mnrudemo# ------------------------------------------------# Object & executable code# ------------------------------------------------mnru.o: mnru.c $(CC) $(CC_OPT) -c mnru.cmnrudemo: mnrudemo.o mnru.o ugst-utl.o $(CC) $(CC_OPT) -o mnrudemo mnrudemo.o mnru.o ugst-utl.o -lm ugst-utl.o: ../utl/ugst-utl.c $(CC) $(CC_OPT) -c ../utl/ugst-utl.ccalc-snr.o: calc-snr.c snr.csnr: calc-snr.o $(CC) $(CC_OPT) -o snr calc-snr.o -lm# ------------------------------------------------# Testing portability# Note: there are no compliance test vectors associated with this module# ------------------------------------------------sine-q99.unx: sine-ref.zip $(UNZIP) sine-ref.zip s\*.unx swapover -if little s*.unx# touch s*.unxsine.src: sine-ref.zip $(UNZIP) sine-ref.zip sine.src swapover -if little sine.src# touch sine.srctest: proc compproc: sine.src $(MNRU_EXE) sine.src sine.q00 256 1 20 00 $(MNRU_EXE) sine.src sine.q05 256 1 20 05 $(MNRU_EXE) sine.src sine.q10 256 1 20 10 $(MNRU_EXE) sine.src sine.q15 256 1 20 15 $(MNRU_EXE) sine.src sine.q20 256 1 20 20 $(MNRU_EXE) sine.src sine.q25 256 1 20 25 $(MNRU_EXE) sine.src sine.q30 256 1 20 30 $(MNRU_EXE) sine.src sine.q35 256 1 20 35 $(MNRU_EXE) sine.src sine.q40 256 1 20 40 $(MNRU_EXE) sine.src sine.q45 256 1 20 45 $(MNRU_EXE) sine.src sine.q50 256 1 20 50 $(MNRU_EXE) sine.src sine.q99 256 1 20 150comp: sine-q99.unx $(DIFF) sine-q00.unx sine.q00 $(DIFF) sine-q05.unx sine.q05 $(DIFF) sine-q10.unx sine.q10 $(DIFF) sine-q15.unx sine.q15 $(DIFF) sine-q20.unx sine.q20 $(DIFF) sine-q25.unx sine.q25 $(DIFF) sine-q30.unx sine.q30 $(DIFF) sine-q35.unx sine.q35 $(DIFF) sine-q40.unx sine.q40 $(DIFF) sine-q45.unx sine.q45 $(DIFF) sine-q50.unx sine.q50 $(DIFF) sine-q99.unx sine.q99run: proc calc-snrcalc-snr: sine.qinf snr -q sine.qinf sine.q00 snr -q sine.qinf sine.q05 snr -q sine.qinf sine.q10 snr -q sine.qinf sine.q15 snr -q sine.qinf sine.q20 snr -q sine.qinf sine.q25 snr -q sine.qinf sine.q30 snr -q sine.qinf sine.q35 snr -q sine.qinf sine.q40 snr -q sine.qinf sine.q45 snr -q sine.qinf sine.q50 sine.qinf: sine.src $(MNRU_EXE) -Q 150 sine.src sine.qinf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -