Mercurial > hg > audiostuff
comparison intercom/g711/makefile.unx @ 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 # Unix makefile for compiling and testing the UGST G.711 implementation | |
3 # 01.May.94 - Implemented by <simao@cpqd.ansp.br> | |
4 # 01.Mar.95 - Updated for test procedure <simao@ctd.comsat.com> | |
5 # ----------------------------------------------------------------------------- | |
6 | |
7 # ------------------------------------------------ | |
8 # Choose an AWK; suggest use GNU version | |
9 # (available via anonymous ftp) | |
10 # ------------------------------------------------ | |
11 AWK = gawk | |
12 AWK_CMD = '$$6~/[0-9]+:[0-9][0-9]/ {print "sb -over",$$NF};END{print "exit"}' | |
13 | |
14 # ---------------------------------------------------------------------- | |
15 # Choose compiler. Sun: use cc. HP: gotta use gcc make ... CC=\$\(GCC\) | |
16 # ---------------------------------------------------------------------- | |
17 GCC = gcc -fno-builtin -Wall | |
18 CC_OPT = -I../utl | |
19 | |
20 # ------------------------------------------------ | |
21 # Choose an archiving utility: | |
22 # - public domain unzip, or [PC/Unix/VMS] | |
23 # - shareware pkunzip [PC only] | |
24 # ------------------------------------------------ | |
25 #UNZIP = -pkunzip | |
26 UNZIP = unzip -o | |
27 | |
28 # ------------------------------------------------ | |
29 # Choose a file comparison utility: | |
30 # ------------------------------------------------ | |
31 DIFF = cf -q | |
32 | |
33 # ------------------------------------------------ | |
34 # General purpose symbols | |
35 # ------------------------------------------------ | |
36 RM=rm -f | |
37 DEMO=./g711demo | |
38 REF_VECTORS= sweep-r.a sweep-r.a-a sweep-r.rea sweep-r.reu \ | |
39 sweep-r.u sweep-r.u-u sweep.src | |
40 TEST_VECTORS = sweep.a sweep.a-a sweep.rea sweep.reu sweep.u sweep.u-u | |
41 G711_OBJ = g711.o g711demo.o | |
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) $(REF_VECTORS) | |
61 | |
62 veryclean: clean cleantest | |
63 $(RM) g711demo.exe | |
64 | |
65 # ------------------------------------------------ | |
66 # Specific rules | |
67 # ------------------------------------------------ | |
68 g711demo: g711demo.o g711.o | |
69 $(CC) -o g711demo g711demo.o g711.o -lm | |
70 | |
71 shiftbit: shiftbit.c ugstdemo.h | |
72 $(CC) -o shiftbit shiftbit.c | |
73 | |
74 # ------------------------------------------------ | |
75 # Test portability | |
76 # Note: there are no compliance test vectors associated with the G711 module | |
77 # ------------------------------------------------ | |
78 test: proc comp | |
79 | |
80 proc: sweep.src | |
81 # sweep-r.* have been generated from sweep.src in a reference environment | |
82 # results of the comparisons shall yield 0 different samples! | |
83 $(DEMO) A lilo sweep.src sweep.a 256 1 256 | |
84 $(DEMO) u lilo sweep.src sweep.u 256 1 256 | |
85 $(DEMO) A lili sweep.src sweep.a-a 256 1 256 | |
86 $(DEMO) u lili sweep.src sweep.u-u 256 1 256 | |
87 $(DEMO) A loli sweep.a sweep.rea 256 1 256 | |
88 $(DEMO) u loli sweep.u sweep.reu 256 1 256 | |
89 | |
90 comp: sweep-r.u-u | |
91 $(DIFF) sweep.a sweep-r.a | |
92 $(DIFF) sweep.a-a sweep-r.a-a | |
93 $(DIFF) sweep.rea sweep-r.rea | |
94 $(DIFF) sweep.reu sweep-r.reu | |
95 $(DIFF) sweep.u sweep-r.u | |
96 $(DIFF) sweep.u-u sweep-r.u-u | |
97 | |
98 # ------------------------------------------------ | |
99 # Extract from archive, if necessary | |
100 # ------------------------------------------------ | |
101 sweep.src: tst-g711.zip | |
102 $(UNZIP) tst-g711.zip sweep.src | |
103 swapover -if little sweep.src | |
104 | |
105 sweep-r.u-u: tst-g711.zip | |
106 $(UNZIP) tst-g711.zip sweep-r.* | |
107 swapover -if little sweep-r.* | |
108 |