comparison amrtest/Makefile @ 460:cb1d1ea7f2c5

new build system: accept more directory options
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 10 May 2024 23:04:44 +0000
parents 19f1aa01ea10
children
comparison
equal deleted inserted replaced
459:b094bc07051a 460:cb1d1ea7f2c5
2 twamr-tseq-enc 2 twamr-tseq-enc
3 LIBAMR= ../libtwamr/libtwamr.a 3 LIBAMR= ../libtwamr/libtwamr.a
4 LIBTEST=../libtest/libtest.a 4 LIBTEST=../libtest/libtest.a
5 5
6 include ../config.defs 6 include ../config.defs
7 INSTBIN=${DESTDIR}${PREFIX}/bin
8 7
9 all: ${PROGS} 8 all: ${PROGS}
10 9
11 twamr-decode: decode.o ${LIBAMR} ${LIBTEST} 10 twamr-decode: decode.o ${LIBAMR} ${LIBTEST}
12 ${CC} ${CFLAGS} -o $@ $^ 11 ${CC} ${CFLAGS} -o $@ $^
25 24
26 twamr-tseq-enc: mode_file.o mode_kw.o tseq-enc.o ${LIBAMR} 25 twamr-tseq-enc: mode_file.o mode_kw.o tseq-enc.o ${LIBAMR}
27 ${CC} ${CFLAGS} -o $@ $^ 26 ${CC} ${CFLAGS} -o $@ $^
28 27
29 install: 28 install:
30 mkdir -p ${INSTBIN} 29 mkdir -p ${DESTDIR}${bindir}
31 install -c ${PROGS} ${INSTBIN} 30 install -c ${PROGS} ${DESTDIR}${bindir}
32 31
33 clean: 32 clean:
34 rm -f *.o *.out ${PROGS} 33 rm -f *.o *.out ${PROGS}