annotate ae-dec-dhf/Makefile @ 50:0db059f4632d

efr-sid OS#6538: more sensible 2-bit errors
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 12 Aug 2024 02:49:28 +0000
parents 4e031007e6dd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 PROG= gen-test-frames
41
4e031007e6dd ae-dec-dhf: generate TCH UL input
Mychaela Falconia <falcon@freecalypso.org>
parents: 40
diff changeset
4 FILES= test-frames.gsmx testseq.gsmx testseq.tch decode.robe decode.ul
40
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
5 PREAMBLE=../ul-test/efr-uplink.gsmx
39
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 all: ${PROG} ${FILES}
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 ${PROG}: ${PROG}.c
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 ${CC} ${CFLAGS} -o $@ $@.c -lgsmefr -ltwamr
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 test-frames.gsmx: ${PROG}
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 ./${PROG} $@
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
40
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
15 testseq.gsmx: ${PREAMBLE} test-frames.gsmx
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
16 cat ${PREAMBLE} test-frames.gsmx > $@
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
17
41
4e031007e6dd ae-dec-dhf: generate TCH UL input
Mychaela Falconia <falcon@freecalypso.org>
parents: 40
diff changeset
18 testseq.tch: testseq.gsmx
4e031007e6dd ae-dec-dhf: generate TCH UL input
Mychaela Falconia <falcon@freecalypso.org>
parents: 40
diff changeset
19 fc-efr2tch $< $@
4e031007e6dd ae-dec-dhf: generate TCH UL input
Mychaela Falconia <falcon@freecalypso.org>
parents: 40
diff changeset
20
40
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
21 decode.robe: testseq.gsmx
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
22 amrefr-decode-r $< $@
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
23
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
24 decode.ul: decode.robe
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
25 pcm16-to-ulaw $< $@
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
26
39
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 clean:
41
4e031007e6dd ae-dec-dhf: generate TCH UL input
Mychaela Falconia <falcon@freecalypso.org>
parents: 40
diff changeset
28 rm -f *.o ${PROG} *.robe *.ul *.gsmx *.tch