comparison efrtest/Makefile @ 436:e80632ccb745

simplify test program Makefiles
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 08 May 2024 05:32:27 +0000
parents 9f354d2aea13
children 19f1aa01ea10
comparison
equal deleted inserted replaced
435:9f354d2aea13 436:e80632ccb745
9 INSTBIN=/opt/freecalypso/bin 9 INSTBIN=/opt/freecalypso/bin
10 10
11 all: ${PROGS} 11 all: ${PROGS}
12 12
13 gsmefr-cod-parse: cod-parse.o etsi-bit-rd.o ${LIBEFR} 13 gsmefr-cod-parse: cod-parse.o etsi-bit-rd.o ${LIBEFR}
14 ${CC} ${CFLAGS} -o $@ cod-parse.o etsi-bit-rd.o ${LIBEFR} 14 ${CC} ${CFLAGS} -o $@ $^
15 15
16 gsmefr-cod2gsmx: cod2gsmx.o etsi-bit-rd.o 16 gsmefr-cod2gsmx: cod2gsmx.o etsi-bit-rd.o
17 ${CC} ${CFLAGS} -o $@ cod2gsmx.o etsi-bit-rd.o 17 ${CC} ${CFLAGS} -o $@ $^
18 18
19 gsmefr-dec-parse: dec-parse.o etsi-bit-rd.o ${LIBEFR} 19 gsmefr-dec-parse: dec-parse.o etsi-bit-rd.o ${LIBEFR}
20 ${CC} ${CFLAGS} -o $@ dec-parse.o etsi-bit-rd.o ${LIBEFR} 20 ${CC} ${CFLAGS} -o $@ $^
21 21
22 gsmefr-decode: decode.o ${LIBTEST} ${LIBEFR} 22 gsmefr-decode: decode.o ${LIBTEST} ${LIBEFR}
23 ${CC} ${CFLAGS} -o $@ decode.o ${LIBTEST} ${LIBEFR} 23 ${CC} ${CFLAGS} -o $@ $^
24 24
25 gsmefr-decode-r: decode-r.o ${LIBTEST} ${LIBEFR} 25 gsmefr-decode-r: decode-r.o ${LIBTEST} ${LIBEFR}
26 ${CC} ${CFLAGS} -o $@ decode-r.o ${LIBTEST} ${LIBEFR} 26 ${CC} ${CFLAGS} -o $@ $^
27 27
28 gsmefr-dlcap-dec: dlcap-dec.o tidsp.o ${LIBTEST} ${LIBEFR} 28 gsmefr-dlcap-dec: dlcap-dec.o tidsp.o ${LIBTEST} ${LIBEFR}
29 ${CC} ${CFLAGS} -o $@ dlcap-dec.o tidsp.o ${LIBTEST} ${LIBEFR} 29 ${CC} ${CFLAGS} -o $@ $^
30 30
31 gsmefr-dlcap-gsmx: dlcap-gsmx.o tidsp.o ${LIBTEST} 31 gsmefr-dlcap-gsmx: dlcap-gsmx.o tidsp.o ${LIBTEST}
32 ${CC} ${CFLAGS} -o $@ dlcap-gsmx.o tidsp.o ${LIBTEST} 32 ${CC} ${CFLAGS} -o $@ $^
33 33
34 gsmefr-dlcap-parse: dlcap-parse.o tidsp.o ${LIBTEST} ${LIBEFR} 34 gsmefr-dlcap-parse: dlcap-parse.o tidsp.o ${LIBTEST} ${LIBEFR}
35 ${CC} ${CFLAGS} -o $@ dlcap-parse.o tidsp.o ${LIBTEST} ${LIBEFR} 35 ${CC} ${CFLAGS} -o $@ $^
36 36
37 gsmefr-encode: encode.o ${LIBTEST} ${LIBEFR} 37 gsmefr-encode: encode.o ${LIBTEST} ${LIBEFR}
38 ${CC} ${CFLAGS} -o $@ encode.o ${LIBTEST} ${LIBEFR} 38 ${CC} ${CFLAGS} -o $@ $^
39 39
40 gsmefr-encode-r: encode-r.o ${LIBTEST} ${LIBEFR} 40 gsmefr-encode-r: encode-r.o ${LIBTEST} ${LIBEFR}
41 ${CC} ${CFLAGS} -o $@ encode-r.o ${LIBTEST} ${LIBEFR} 41 ${CC} ${CFLAGS} -o $@ $^
42 42
43 gsmefr-etsi-dec: etsi-dec.o etsi-bit-rd.o etsi-pcm-out.o ${LIBEFR} 43 gsmefr-etsi-dec: etsi-dec.o etsi-bit-rd.o etsi-pcm-out.o ${LIBEFR}
44 ${CC} ${CFLAGS} -o $@ etsi-dec.o etsi-bit-rd.o etsi-pcm-out.o ${LIBEFR} 44 ${CC} ${CFLAGS} -o $@ $^
45 45
46 gsmefr-etsi-enc: etsi-enc.o etsi-enc-common.o ${LIBEFR} 46 gsmefr-etsi-enc: etsi-enc.o etsi-enc-common.o ${LIBEFR}
47 ${CC} ${CFLAGS} -o $@ etsi-enc.o etsi-enc-common.o ${LIBEFR} 47 ${CC} ${CFLAGS} -o $@ $^
48 48
49 gsmefr-rec2etsi: rec2etsi.o ${LIBTEST} ${LIBEFR} 49 gsmefr-rec2etsi: rec2etsi.o ${LIBTEST} ${LIBEFR}
50 ${CC} ${CFLAGS} -o $@ rec2etsi.o ${LIBTEST} ${LIBEFR} 50 ${CC} ${CFLAGS} -o $@ $^
51 51
52 install: 52 install:
53 mkdir -p ${INSTBIN} 53 mkdir -p ${INSTBIN}
54 install -c ${PROGS} ${INSTBIN} 54 install -c ${PROGS} ${INSTBIN}
55 55