view pcma2efr/Makefile @ 32:baf74dff5368

dhf: generate hex forms of EFR DHF
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 13 May 2024 06:26:22 +0000
parents dd9a9368009e
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	comb-diff comb-out dhf-check pcma-input
FILES=	all-outputs.gsmx all-outputs.inc pcma-input.bin

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
PCMA_IN_OBJS=	pcma-input.o seqsynca.o

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

pcma-input:	${PCMA_IN_OBJS}
	${CC} ${CFLAGS} -o $@ ${PCMA_IN_OBJS}

# data outputs

all-outputs.gsmx:	comb-out
	./comb-out $@

all-outputs.inc:	all-outputs.gsmx
	../utils/gen-hex-c all-outputs.gsmx $@

pcma-input.bin:	pcma-input
	./pcma-input $@

clean:
	rm -f *.o ${PROGS} *.bin *.gsmx *.inc