diff 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
line wrap: on
line diff
--- a/pcmu2efr/Makefile	Sun May 12 04:48:36 2024 +0000
+++ b/pcmu2efr/Makefile	Mon May 13 01:46:25 2024 +0000
@@ -2,6 +2,7 @@
 CFLAGS=	-O2
 PROGS=	amrefr-out comb-diff comb-out dhf-check pcmu-input stdefr-diff \
 	stdefr-out
+FILES=	all-outputs.gsmx all-outputs.inc pcmu-input.bin
 
 AMREFR_OBJS=	amrefr-out.o gen-amrefr.o gen160.o seqsyncu.o ulaw-expand.o
 COMB_DIFF_OBJS=	comb-diff.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \
@@ -14,7 +15,7 @@
 STDEFR_OBJS=	gen-efr.o gen160.o seqsyncu.o stdefr-out.o ulaw-expand.o
 STDEFRD_OBJS=	gen-efr.o gen160.o seqsyncu.o stdefr-diff.o ulaw-expand.o
 
-all:	${PROGS}
+all:	${PROGS} ${FILES}
 
 amrefr-out:	${AMREFR_OBJS}
 	${CC} ${CFLAGS} -o $@ ${AMREFR_OBJS} -lgsmefr -ltwamr
@@ -37,5 +38,16 @@
 stdefr-out:	${STDEFR_OBJS}
 	${CC} ${CFLAGS} -o $@ ${STDEFR_OBJS} -lgsmefr
 
+# data outputs
+
+all-outputs.gsmx:	comb-out
+	./comb-out $@
+
+all-outputs.inc:	all-outputs.gsmx
+	../utils/gen-hex-c all-outputs.gsmx $@
+
+pcmu-input.bin:	pcmu-input
+	./pcmu-input $@
+
 clean:
-	rm -f *.o ${PROGS}
+	rm -f *.o ${PROGS} *.bin *.gsmx *.inc