FreeCalypso > hg > vband-misc
annotate pcmu2efr/Makefile @ 27:2095f3c23dad
pcmu2efr: generate the data files here too
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 13 May 2024 01:46:25 +0000 |
parents | 1794bf0fbcf7 |
children |
rev | line source |
---|---|
15
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
26
1794bf0fbcf7
pcmu2efr: emit full PCMU input
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
3 PROGS= amrefr-out comb-diff comb-out dhf-check pcmu-input stdefr-diff \ |
1794bf0fbcf7
pcmu2efr: emit full PCMU input
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
4 stdefr-out |
27
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
5 FILES= all-outputs.gsmx all-outputs.inc pcmu-input.bin |
15
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
19
2bdcd2ed9a1c
pcmu2efr: generate AMR-EFR version
Mychaela Falconia <falcon@freecalypso.org>
parents:
17
diff
changeset
|
7 AMREFR_OBJS= amrefr-out.o gen-amrefr.o gen160.o seqsyncu.o ulaw-expand.o |
23
2628a34fe75b
pcmu2efr: encode 2nd frame for AMR-EFR offsets 120-159
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
8 COMB_DIFF_OBJS= comb-diff.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \ |
21
3eb407b08b4c
pcmu2efr: confirm that we got 280 distinct outputs so far
Mychaela Falconia <falcon@freecalypso.org>
parents:
20
diff
changeset
|
9 ulaw-expand.o |
24
c52fb8080faf
pcmu2efr: emit all 320 computed frames
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
10 COMB_OUT_OBJS= comb-out.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \ |
c52fb8080faf
pcmu2efr: emit all 320 computed frames
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
11 ulaw-expand.o |
23
2628a34fe75b
pcmu2efr: encode 2nd frame for AMR-EFR offsets 120-159
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
12 DHF_CHECK_OBJS= dhf-check.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \ |
20
f5f541bc9415
pcmu2efr: check all generated frames against DHF
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
13 ulaw-expand.o |
26
1794bf0fbcf7
pcmu2efr: emit full PCMU input
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
14 PCMU_IN_OBJS= pcmu-input.o seqsyncu.o |
15
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 STDEFR_OBJS= gen-efr.o gen160.o seqsyncu.o stdefr-out.o ulaw-expand.o |
17
39b3c24256ae
pcmu2efr: add stdefr-diff sanity check
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
16 STDEFRD_OBJS= gen-efr.o gen160.o seqsyncu.o stdefr-diff.o ulaw-expand.o |
15
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
27
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
18 all: ${PROGS} ${FILES} |
15
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
19
2bdcd2ed9a1c
pcmu2efr: generate AMR-EFR version
Mychaela Falconia <falcon@freecalypso.org>
parents:
17
diff
changeset
|
20 amrefr-out: ${AMREFR_OBJS} |
2bdcd2ed9a1c
pcmu2efr: generate AMR-EFR version
Mychaela Falconia <falcon@freecalypso.org>
parents:
17
diff
changeset
|
21 ${CC} ${CFLAGS} -o $@ ${AMREFR_OBJS} -lgsmefr -ltwamr |
2bdcd2ed9a1c
pcmu2efr: generate AMR-EFR version
Mychaela Falconia <falcon@freecalypso.org>
parents:
17
diff
changeset
|
22 |
21
3eb407b08b4c
pcmu2efr: confirm that we got 280 distinct outputs so far
Mychaela Falconia <falcon@freecalypso.org>
parents:
20
diff
changeset
|
23 comb-diff: ${COMB_DIFF_OBJS} |
3eb407b08b4c
pcmu2efr: confirm that we got 280 distinct outputs so far
Mychaela Falconia <falcon@freecalypso.org>
parents:
20
diff
changeset
|
24 ${CC} ${CFLAGS} -o $@ ${COMB_DIFF_OBJS} -lgsmefr -ltwamr |
3eb407b08b4c
pcmu2efr: confirm that we got 280 distinct outputs so far
Mychaela Falconia <falcon@freecalypso.org>
parents:
20
diff
changeset
|
25 |
24
c52fb8080faf
pcmu2efr: emit all 320 computed frames
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
26 comb-out: ${COMB_OUT_OBJS} |
c52fb8080faf
pcmu2efr: emit all 320 computed frames
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
27 ${CC} ${CFLAGS} -o $@ ${COMB_OUT_OBJS} -lgsmefr -ltwamr |
c52fb8080faf
pcmu2efr: emit all 320 computed frames
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
28 |
20
f5f541bc9415
pcmu2efr: check all generated frames against DHF
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
29 dhf-check: ${DHF_CHECK_OBJS} |
f5f541bc9415
pcmu2efr: check all generated frames against DHF
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
30 ${CC} ${CFLAGS} -o $@ ${DHF_CHECK_OBJS} -lgsmefr -ltwamr |
f5f541bc9415
pcmu2efr: check all generated frames against DHF
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
31 |
26
1794bf0fbcf7
pcmu2efr: emit full PCMU input
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
32 pcmu-input: ${PCMU_IN_OBJS} |
1794bf0fbcf7
pcmu2efr: emit full PCMU input
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
33 ${CC} ${CFLAGS} -o $@ ${PCMU_IN_OBJS} |
1794bf0fbcf7
pcmu2efr: emit full PCMU input
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
34 |
17
39b3c24256ae
pcmu2efr: add stdefr-diff sanity check
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
35 stdefr-diff: ${STDEFRD_OBJS} |
39b3c24256ae
pcmu2efr: add stdefr-diff sanity check
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
36 ${CC} ${CFLAGS} -o $@ ${STDEFRD_OBJS} -lgsmefr |
39b3c24256ae
pcmu2efr: add stdefr-diff sanity check
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
37 |
15
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 stdefr-out: ${STDEFR_OBJS} |
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 ${CC} ${CFLAGS} -o $@ ${STDEFR_OBJS} -lgsmefr |
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 |
27
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
41 # data outputs |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
42 |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
43 all-outputs.gsmx: comb-out |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
44 ./comb-out $@ |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
45 |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
46 all-outputs.inc: all-outputs.gsmx |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
47 ../utils/gen-hex-c all-outputs.gsmx $@ |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
48 |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
49 pcmu-input.bin: pcmu-input |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
50 ./pcmu-input $@ |
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
51 |
15
528eef871e23
pcmu2efr project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 clean: |
27
2095f3c23dad
pcmu2efr: generate the data files here too
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
53 rm -f *.o ${PROGS} *.bin *.gsmx *.inc |