comparison miscutil/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 7c50864deaff
comparison
equal deleted inserted replaced
459:b094bc07051a 460:cb1d1ea7f2c5
2 pcm16-wav2raw pcm8-to-pcm16 2 pcm16-wav2raw pcm8-to-pcm16
3 LIBEFR= ../libgsmefr/libgsmefr.a ../libgsmfr2/libgsmfr2.a 3 LIBEFR= ../libgsmefr/libgsmefr.a ../libgsmfr2/libgsmfr2.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 gsmrec-dump: gsmrec-dump.o ${LIBTEST} ${LIBEFR} 10 gsmrec-dump: gsmrec-dump.o ${LIBTEST} ${LIBEFR}
12 ${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR} 11 ${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR}
28 27
29 pcm8-to-pcm16: pcm8-to-pcm16.c 28 pcm8-to-pcm16: pcm8-to-pcm16.c
30 ${CC} ${CFLAGS} -o $@ $@.c 29 ${CC} ${CFLAGS} -o $@ $@.c
31 30
32 install: 31 install:
33 mkdir -p ${INSTBIN} 32 mkdir -p ${DESTDIR}${bindir}
34 install -c ${PROGS} ${INSTBIN} 33 install -c ${PROGS} ${DESTDIR}${bindir}
35 34
36 clean: 35 clean:
37 rm -f *.o *.out ${PROGS} 36 rm -f *.o *.out ${PROGS}