FreeCalypso > hg > gsm-codec-lib
view frtest/Makefile @ 436:e80632ccb745
simplify test program Makefiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 08 May 2024 05:32:27 +0000 |
parents | e0d42e87da96 |
children | 19f1aa01ea10 |
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 $@ $^ gsmfr-decode: decode.o ${LIBTEST} ${LIBFR2} ${CC} ${CFLAGS} -o $@ $^ gsmfr-decode-r: decode-r.o ${LIBTEST} ${LIBFR2} ${CC} ${CFLAGS} -o $@ $^ gsmfr-decode-rb: decode-rb.o ${LIBTEST} ${LIBFR2} ${CC} ${CFLAGS} -o $@ $^ gsmfr-dlcap-gsmx: dlcap-gsmx.o tidsp.o ${LIBTEST} ${CC} ${CFLAGS} -o $@ $^ gsmfr-dlcap-parse: dlcap-parse.o tidsp.o ${LIBTEST} ${LIBFR2} ${CC} ${CFLAGS} -o $@ $^ gsmfr-encode: encode.o ${LIBTEST} ${LIBFR2} ${CC} ${CFLAGS} -o $@ $^ gsmfr-encode-r: encode-r.o ${LIBTEST} ${LIBFR2} ${CC} ${CFLAGS} -o $@ $^ gsmfr-preproc: preproc.o ${LIBTEST} ${LIBFR2} ${CC} ${CFLAGS} -o $@ $^ install: mkdir -p ${INSTBIN} install -c ${PROGS} ${INSTBIN} clean: rm -f *.o *.out ${PROGS}