view frtest/Makefile @ 397:9b699f30e6f3

libtwamr: integrate pre_proc.c
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 06 May 2024 19:02:44 +0000
parents e0d42e87da96
children e80632ccb745
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	gsmfr-cod2std gsmfr-decode gsmfr-decode-r gsmfr-decode-rb \
	gsmfr-dlcap-gsmx gsmfr-dlcap-parse gsmfr-encode gsmfr-encode-r \
	gsmfr-preproc
LIBFR2=	../libgsmfr2/libgsmfr2.a
LIBTEST=../libtest/libtest.a
INSTBIN=/opt/freecalypso/bin

all:	${PROGS}

gsmfr-cod2std:	cod2std.o ${LIBFR2}
	${CC} ${CFLAGS} -o $@ cod2std.o ${LIBFR2}

gsmfr-decode:	decode.o ${LIBTEST} ${LIBFR2}
	${CC} ${CFLAGS} -o $@ decode.o ${LIBTEST} ${LIBFR2}

gsmfr-decode-r:	decode-r.o ${LIBTEST} ${LIBFR2}
	${CC} ${CFLAGS} -o $@ decode-r.o ${LIBTEST} ${LIBFR2}

gsmfr-decode-rb:	decode-rb.o ${LIBTEST} ${LIBFR2}
	${CC} ${CFLAGS} -o $@ decode-rb.o ${LIBTEST} ${LIBFR2}

gsmfr-dlcap-gsmx:	dlcap-gsmx.o tidsp.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ dlcap-gsmx.o tidsp.o ${LIBTEST}

gsmfr-dlcap-parse:	dlcap-parse.o tidsp.o ${LIBTEST} ${LIBFR2}
	${CC} ${CFLAGS} -o $@ dlcap-parse.o tidsp.o ${LIBTEST} ${LIBFR2}

gsmfr-encode:	encode.o ${LIBTEST} ${LIBFR2}
	${CC} ${CFLAGS} -o $@ encode.o ${LIBTEST} ${LIBFR2}

gsmfr-encode-r:	encode-r.o ${LIBTEST} ${LIBFR2}
	${CC} ${CFLAGS} -o $@ encode-r.o ${LIBTEST} ${LIBFR2}

gsmfr-preproc:	preproc.o ${LIBTEST} ${LIBFR2}
	${CC} ${CFLAGS} -o $@ preproc.o ${LIBTEST} ${LIBFR2}

install:
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${INSTBIN}

clean:
	rm -f *.o *.out ${PROGS}