comparison frtest/Makefile @ 17:68a7e86c9868

frtest/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 04:23:35 +0000
parents 69ed7af28473
children 7960744ba19c
comparison
equal deleted inserted replaced
16:b9a842775f40 17:68a7e86c9868
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= gsmfr-decode gsmfr-encode 3 PROGS= gsmfr-decode gsmfr-encode
4 LIBPP= ../libgsmfrp/libgsmfrp.a 4 LIBPP= ../libgsmfrp/libgsmfrp.a
5 LIBTEST=../libtest/libtest.a 5 LIBTEST=../libtest/libtest.a
6 LIBDEC= ${LIBTEST} ${LIBPP} 6 LIBDEC= ${LIBTEST} ${LIBPP}
7 INSTBIN=/opt/freecalypso/bin
7 8
8 all: ${PROGS} 9 all: ${PROGS}
9 10
10 gsmfr-decode: decode.o ${LIBDEC} 11 gsmfr-decode: decode.o ${LIBDEC}
11 ${CC} ${CFLAGS} -o $@ decode.o ${LIBDEC} -lgsm 12 ${CC} ${CFLAGS} -o $@ decode.o ${LIBDEC} -lgsm
12 13
13 gsmfr-encode: encode.o ${LIBTEST} 14 gsmfr-encode: encode.o ${LIBTEST}
14 ${CC} ${CFLAGS} -o $@ encode.o ${LIBTEST} -lgsm 15 ${CC} ${CFLAGS} -o $@ encode.o ${LIBTEST} -lgsm
15 16
17 install:
18 mkdir -p ${INSTBIN}
19 install -c ${PROGS} ${INSTBIN}
20
16 clean: 21 clean:
17 rm -f *.o *.out ${PROGS} 22 rm -f *.o *.out ${PROGS}