Mercurial > hg > audiostuff
comparison intercom/g711/makefile.djc @ 2:13be24d74cd2
import intercom-0.4.1
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Fri, 25 Jun 2010 09:57:52 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:9cadc470e3da | 2:13be24d74cd2 |
|---|---|
| 1 # ----------------------------------------------------------------------------- | |
| 2 # MSDOS gcc port makefile for compiling and testing the UGST G.711 | |
| 3 # implementation. | |
| 4 # Implemented by <simao@cpqd.ansp.br> -- 01.Feb.95 | |
| 5 # ----------------------------------------------------------------------------- | |
| 6 | |
| 7 # ------------------------------------------------ | |
| 8 # Choose a file comparison utility: | |
| 9 # ------------------------------------------------ | |
| 10 DIFF = cf -q | |
| 11 | |
| 12 # ------------------------------------------------ | |
| 13 # Choose an archiving utility: | |
| 14 # - public domain unzip, or [PC/Unix/VMS] | |
| 15 # - shareware pkunzip [PC only] | |
| 16 # ------------------------------------------------ | |
| 17 #UNZIP = pkunzip | |
| 18 UNZIP = unzip -o | |
| 19 | |
| 20 # ------------------------------------------------ | |
| 21 # Choose an AWK; suggest use GNU version | |
| 22 # (available via anonymous ftp) | |
| 23 # ------------------------------------------------ | |
| 24 AWK = gawk | |
| 25 AWK_CMD = '$$6~/[0-9]+:[0-9][0-9]/ {print "sb -over",$$NF};END{print "exit"}' | |
| 26 | |
| 27 # ------------------------------------------------ | |
| 28 # Choose compiler. Sun: use cc. HP: gotta use gcc | |
| 29 # ------------------------------------------------ | |
| 30 GCC = gcc -fno-builtin | |
| 31 CC_OPT = -g -I../utl -Wall | |
| 32 | |
| 33 # ------------------------------------------------ | |
| 34 # General purpose symbols | |
| 35 # ------------------------------------------------ | |
| 36 RM = -rm | |
| 37 REF_VECTORS= sweep-r.a sweep-r.a-a sweep-r.rea sweep-r.reu \ | |
| 38 sweep-r.u sweep-r.u-u sweep.src | |
| 39 TEST_VECTORS = sweep.a sweep.a-a sweep.rea sweep.reu sweep.u sweep.u-u | |
| 40 G711_OBJ = g711.o g711demo.o | |
| 41 G711DEMO = go32 g711demo | |
| 42 | |
| 43 # ------------------------------------------------ | |
| 44 # Generic rules | |
| 45 # ------------------------------------------------ | |
| 46 .c.o: | |
| 47 $(CC) $(CC_OPT) -c $< | |
| 48 | |
| 49 # ------------------------------------------------ | |
| 50 # Targets | |
| 51 # ------------------------------------------------ | |
| 52 all: g711demo | |
| 53 | |
| 54 anyway: clean g711demo | |
| 55 | |
| 56 clean: | |
| 57 $(RM) $(G711_OBJ) | |
| 58 | |
| 59 cleantest: | |
| 60 $(RM) $(TEST_VECTORS) | |
| 61 $(RM) $(REF_VECTORS) | |
| 62 | |
| 63 veryclean: clean cleantest | |
| 64 $(RM) g711demo g711demo.exe | |
| 65 | |
| 66 # ------------------------------------------------ | |
| 67 # Specific rules | |
| 68 # ------------------------------------------------ | |
| 69 g711demo: g711demo.o g711.o | |
| 70 $(CC) -o g711demo g711demo.o g711.o | |
| 71 | |
| 72 shiftbit: shiftbit.c | |
| 73 $(CC) -o shiftbit shiftbit.c | |
| 74 | |
| 75 # ------------------------------------------------ | |
| 76 # Test portability | |
| 77 # Note: there are no compliance test vectors associated with the G711 module | |
| 78 # ------------------------------------------------ | |
| 79 test: proc comp | |
| 80 | |
| 81 # sweep-r.* have been generated from sweep.src in a reference environment | |
| 82 # results of the comparisons shall yield 0 different samples! | |
| 83 proc: sweep.src | |
| 84 $(G711DEMO) A lilo sweep.src sweep.a 256 1 256 | |
| 85 $(G711DEMO) u lilo sweep.src sweep.u 256 1 256 | |
| 86 $(G711DEMO) A lili sweep.src sweep.a-a 256 1 256 | |
| 87 $(G711DEMO) u lili sweep.src sweep.u-u 256 1 256 | |
| 88 $(G711DEMO) A loli sweep.a sweep.rea 256 1 256 | |
| 89 $(G711DEMO) u loli sweep.u sweep.reu 256 1 256 | |
| 90 | |
| 91 comp: sweep-r.u-u | |
| 92 $(DIFF) sweep.a sweep-r.a | |
| 93 $(DIFF) sweep.a-a sweep-r.a-a | |
| 94 $(DIFF) sweep.rea sweep-r.rea | |
| 95 $(DIFF) sweep.reu sweep-r.reu | |
| 96 $(DIFF) sweep.u sweep-r.u | |
| 97 $(DIFF) sweep.u-u sweep-r.u-u | |
| 98 | |
| 99 # ------------------------------------------------- | |
| 100 # Extract AND byte-swap from archive, if necessary | |
| 101 # ------------------------------------------------- | |
| 102 sweep.src: tst-g711.zip | |
| 103 $(UNZIP) tst-g711.zip sweep.src | |
| 104 swapover sweep.src | |
| 105 | |
| 106 sweep-r.u-u: tst-g711.zip | |
| 107 $(UNZIP) tst-g711.zip $(REF_VECTORS) | |
| 108 swapover $(REF_VECTORS) |
