diff tone-detect/Makefile @ 18:f7321b25195e default tip

new build system for ThemWi sw components
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 14 May 2024 18:08:35 -0800
parents 2cdbd574bba6
children
line wrap: on
line diff
--- a/tone-detect/Makefile	Mon May 13 22:31:24 2024 -0800
+++ b/tone-detect/Makefile	Tue May 14 18:08:35 2024 -0800
@@ -1,7 +1,6 @@
-CC=	gcc
-CFLAGS=	-O2
 PROG=	g711-tone-detect
-INSTBIN=/opt/themwi/bin
+
+include ../config.defs
 
 all:	${PROG}
 
@@ -9,7 +8,8 @@
 	${CC} ${CFLAGS} -o $@ $@.c -lspandsp -lm
 
 install:
-	install -c -m 755 ${PROG} ${INSTBIN}
+	mkdir -p ${DESTDIR}${bindir}
+	install -c -m 755 ${PROG} ${DESTDIR}${bindir}
 
 clean:
 	rm -f *.o ${PROG} errs