Mercurial > hg > audiostuff
view intercom/g711/makefile.djc @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 15:50:58 +0200 |
parents | 13be24d74cd2 |
children |
line wrap: on
line source
# ----------------------------------------------------------------------------- # MSDOS gcc port makefile for compiling and testing the UGST G.711 # implementation. # Implemented by <simao@cpqd.ansp.br> -- 01.Feb.95 # ----------------------------------------------------------------------------- # ------------------------------------------------ # Choose a file comparison utility: # ------------------------------------------------ DIFF = cf -q # ------------------------------------------------ # Choose an archiving utility: # - public domain unzip, or [PC/Unix/VMS] # - shareware pkunzip [PC only] # ------------------------------------------------ #UNZIP = pkunzip UNZIP = 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"}' # ------------------------------------------------ # Choose compiler. Sun: use cc. HP: gotta use gcc # ------------------------------------------------ GCC = gcc -fno-builtin CC_OPT = -g -I../utl -Wall # ------------------------------------------------ # General purpose symbols # ------------------------------------------------ RM = -rm REF_VECTORS= sweep-r.a sweep-r.a-a sweep-r.rea sweep-r.reu \ sweep-r.u sweep-r.u-u sweep.src TEST_VECTORS = sweep.a sweep.a-a sweep.rea sweep.reu sweep.u sweep.u-u G711_OBJ = g711.o g711demo.o G711DEMO = go32 g711demo # ------------------------------------------------ # Generic rules # ------------------------------------------------ .c.o: $(CC) $(CC_OPT) -c $< # ------------------------------------------------ # Targets # ------------------------------------------------ all: g711demo anyway: clean g711demo clean: $(RM) $(G711_OBJ) cleantest: $(RM) $(TEST_VECTORS) $(RM) $(REF_VECTORS) veryclean: clean cleantest $(RM) g711demo g711demo.exe # ------------------------------------------------ # Specific rules # ------------------------------------------------ g711demo: g711demo.o g711.o $(CC) -o g711demo g711demo.o g711.o shiftbit: shiftbit.c $(CC) -o shiftbit shiftbit.c # ------------------------------------------------ # Test portability # Note: there are no compliance test vectors associated with the G711 module # ------------------------------------------------ test: proc comp # sweep-r.* have been generated from sweep.src in a reference environment # results of the comparisons shall yield 0 different samples! proc: sweep.src $(G711DEMO) A lilo sweep.src sweep.a 256 1 256 $(G711DEMO) u lilo sweep.src sweep.u 256 1 256 $(G711DEMO) A lili sweep.src sweep.a-a 256 1 256 $(G711DEMO) u lili sweep.src sweep.u-u 256 1 256 $(G711DEMO) A loli sweep.a sweep.rea 256 1 256 $(G711DEMO) u loli sweep.u sweep.reu 256 1 256 comp: sweep-r.u-u $(DIFF) sweep.a sweep-r.a $(DIFF) sweep.a-a sweep-r.a-a $(DIFF) sweep.rea sweep-r.rea $(DIFF) sweep.reu sweep-r.reu $(DIFF) sweep.u sweep-r.u $(DIFF) sweep.u-u sweep-r.u-u # ------------------------------------------------- # Extract AND byte-swap from archive, if necessary # ------------------------------------------------- sweep.src: tst-g711.zip $(UNZIP) tst-g711.zip sweep.src swapover sweep.src sweep-r.u-u: tst-g711.zip $(UNZIP) tst-g711.zip $(REF_VECTORS) swapover $(REF_VECTORS)