diff pcma2efr/Makefile @ 30:760bbae44c1f

pcma2efr: emit the set of computed frames
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 13 May 2024 05:40:56 +0000
parents fc4544e3687b
children dd9a9368009e
line wrap: on
line diff
--- a/pcma2efr/Makefile	Mon May 13 02:49:26 2024 +0000
+++ b/pcma2efr/Makefile	Mon May 13 05:40:56 2024 +0000
@@ -1,19 +1,33 @@
 CC=	gcc
 CFLAGS=	-O2
-PROGS=	comb-diff dhf-check
+PROGS=	comb-diff comb-out dhf-check
+FILES=	all-outputs.gsmx all-outputs.inc
 
 COMB_DIFF_OBJS=	alaw-expand.o comb-diff.o gen-amr-2fr.o gen-efr.o gen160.o \
 		seqsynca.o
+COMB_OUT_OBJS=	alaw-expand.o comb-out.o gen-amr-2fr.o gen-efr.o gen160.o \
+		seqsynca.o
 DHF_CHECK_OBJS=	alaw-expand.o dhf-check.o gen-amr-2fr.o gen-efr.o gen160.o \
 		seqsynca.o
 
-all:	${PROGS}
+all:	${PROGS} ${FILES}
 
 comb-diff:	${COMB_DIFF_OBJS}
 	${CC} ${CFLAGS} -o $@ ${COMB_DIFF_OBJS} -lgsmefr -ltwamr
 
+comb-out:	${COMB_OUT_OBJS}
+	${CC} ${CFLAGS} -o $@ ${COMB_OUT_OBJS} -lgsmefr -ltwamr
+
 dhf-check:	${DHF_CHECK_OBJS}
 	${CC} ${CFLAGS} -o $@ ${DHF_CHECK_OBJS} -lgsmefr -ltwamr
 
+# data outputs
+
+all-outputs.gsmx:	comb-out
+	./comb-out $@
+
+all-outputs.inc:	all-outputs.gsmx
+	../utils/gen-hex-c all-outputs.gsmx $@
+
 clean:
 	rm -f *.o ${PROGS} *.bin *.gsmx *.inc