comparison 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
comparison
equal deleted inserted replaced
26:1794bf0fbcf7 27:2095f3c23dad
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= amrefr-out comb-diff comb-out dhf-check pcmu-input stdefr-diff \ 3 PROGS= amrefr-out comb-diff comb-out dhf-check pcmu-input stdefr-diff \
4 stdefr-out 4 stdefr-out
5 FILES= all-outputs.gsmx all-outputs.inc pcmu-input.bin
5 6
6 AMREFR_OBJS= amrefr-out.o gen-amrefr.o gen160.o seqsyncu.o ulaw-expand.o 7 AMREFR_OBJS= amrefr-out.o gen-amrefr.o gen160.o seqsyncu.o ulaw-expand.o
7 COMB_DIFF_OBJS= comb-diff.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \ 8 COMB_DIFF_OBJS= comb-diff.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \
8 ulaw-expand.o 9 ulaw-expand.o
9 COMB_OUT_OBJS= comb-out.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \ 10 COMB_OUT_OBJS= comb-out.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \
12 ulaw-expand.o 13 ulaw-expand.o
13 PCMU_IN_OBJS= pcmu-input.o seqsyncu.o 14 PCMU_IN_OBJS= pcmu-input.o seqsyncu.o
14 STDEFR_OBJS= gen-efr.o gen160.o seqsyncu.o stdefr-out.o ulaw-expand.o 15 STDEFR_OBJS= gen-efr.o gen160.o seqsyncu.o stdefr-out.o ulaw-expand.o
15 STDEFRD_OBJS= gen-efr.o gen160.o seqsyncu.o stdefr-diff.o ulaw-expand.o 16 STDEFRD_OBJS= gen-efr.o gen160.o seqsyncu.o stdefr-diff.o ulaw-expand.o
16 17
17 all: ${PROGS} 18 all: ${PROGS} ${FILES}
18 19
19 amrefr-out: ${AMREFR_OBJS} 20 amrefr-out: ${AMREFR_OBJS}
20 ${CC} ${CFLAGS} -o $@ ${AMREFR_OBJS} -lgsmefr -ltwamr 21 ${CC} ${CFLAGS} -o $@ ${AMREFR_OBJS} -lgsmefr -ltwamr
21 22
22 comb-diff: ${COMB_DIFF_OBJS} 23 comb-diff: ${COMB_DIFF_OBJS}
35 ${CC} ${CFLAGS} -o $@ ${STDEFRD_OBJS} -lgsmefr 36 ${CC} ${CFLAGS} -o $@ ${STDEFRD_OBJS} -lgsmefr
36 37
37 stdefr-out: ${STDEFR_OBJS} 38 stdefr-out: ${STDEFR_OBJS}
38 ${CC} ${CFLAGS} -o $@ ${STDEFR_OBJS} -lgsmefr 39 ${CC} ${CFLAGS} -o $@ ${STDEFR_OBJS} -lgsmefr
39 40
41 # data outputs
42
43 all-outputs.gsmx: comb-out
44 ./comb-out $@
45
46 all-outputs.inc: all-outputs.gsmx
47 ../utils/gen-hex-c all-outputs.gsmx $@
48
49 pcmu-input.bin: pcmu-input
50 ./pcmu-input $@
51
40 clean: 52 clean:
41 rm -f *.o ${PROGS} 53 rm -f *.o ${PROGS} *.bin *.gsmx *.inc