annotate ae-dec-dhf/Makefile @ 40:e38e8d0fba70

ae-dec-dhf: complete generation
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 14 May 2024 08:18:17 +0000
parents ab7c80f6f02d
children 4e031007e6dd
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
40
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
4 FILES= test-frames.gsmx testseq.gsmx decode.robe decode.ul
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
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
18 decode.robe: testseq.gsmx
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
19 amrefr-decode-r $< $@
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
20
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
21 decode.ul: decode.robe
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
22 pcm16-to-ulaw $< $@
e38e8d0fba70 ae-dec-dhf: complete generation
Mychaela Falconia <falcon@freecalypso.org>
parents: 39
diff changeset
23
39
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 clean:
ab7c80f6f02d ae-dec-dhf: initial generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 rm -f *.o ${PROG} *.robe *.ul *.gsmx