comparison intercom/g711/makefile.cl @ 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 # MS Visual C makefile for compiling & testing the UGST G.711 module
3 # 31.Jan.2000 - Implemented by <simao.campos@labs.comsat.com>
4 # -----------------------------------------------------------------------------
5
6 # ------------------------------------------------
7 # Choose an AWK; suggest use GNU version
8 # (available via anonymous ftp)
9 # ------------------------------------------------
10 AWK = gawk
11 AWK_CMD = '$$6~/[0-9]+:[0-9][0-9]/ {print "sb -over",$$NF};END{print "exit"}'
12
13 # ----------------------------------------------------------------------
14 # Choose compiler.
15 # ----------------------------------------------------------------------
16 CC=cl
17 CC_OPT = -I../utl
18
19 # ------------------------------------------------
20 # Choose an archiving utility:
21 # - public domain unzip, or [PC/MS Visual C/VMS]
22 # - shareware pkunzip [PC only]
23 # ------------------------------------------------
24 #UNZIP = -pkunzip
25 UNZIP = unzip -o
26
27 # ------------------------------------------------
28 # Choose a file comparison utility:
29 # ------------------------------------------------
30 DIFF = cf -q
31
32 # ------------------------------------------------
33 # General purpose symbols
34 # ------------------------------------------------
35 RM=rm -f
36 REF_VECTORS= sweep-r.a sweep-r.a-a sweep-r.rea sweep-r.reu \
37 sweep-r.u sweep-r.u-u sweep.src
38 TEST_VECTORS = sweep.a sweep.a-a sweep.rea sweep.reu sweep.u sweep.u-u
39 G711_OBJ = g711.obj g711demo.obj
40
41 # ------------------------------------------------
42 # Generic rules
43 # ------------------------------------------------
44 .c.obj:
45 $(CC) $(CC_OPT) -c $<
46
47 # ------------------------------------------------
48 # Targets
49 # ------------------------------------------------
50 all:: g711demo
51
52 anyway: clean g711demo
53
54 clean:
55 $(RM) $(G711_OBJ)
56
57 cleantest:
58 $(RM) $(TEST_VECTORS) $(REF_VECTORS)
59
60 veryclean: clean cleantest
61 $(RM) g711demo.exe
62
63 # ------------------------------------------------
64 # Specific rules
65 # ------------------------------------------------
66 g711demo: g711demo.exe
67 g711demo.exe: g711demo.obj g711.obj
68 $(CC) -o g711demo g711demo.obj g711.obj
69
70 shiftbit: shiftbit.exe
71 shiftbit.exe: 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 FIR 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 g711demo A lilo sweep.src sweep.a 256 1 256
84 g711demo u lilo sweep.src sweep.u 256 1 256
85 g711demo A lili sweep.src sweep.a-a 256 1 256
86 g711demo u lili sweep.src sweep.u-u 256 1 256
87 g711demo A loli sweep.a sweep.rea 256 1 256
88 g711demo 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 sweep.src
104
105 sweep-r.u-u: tst-g711.zip
106 $(UNZIP) tst-g711.zip sweep-r.*
107 swapover sweep-r.*

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.