FreeCalypso > hg > vband-misc
annotate ae-dec-dhf/Makefile @ 41:4e031007e6dd
ae-dec-dhf: generate TCH UL input
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 14 May 2024 08:26:00 +0000 |
parents | e38e8d0fba70 |
children |
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 |