diff test/Makefile @ 10:2c022e0334c4

convert to new ThemWi configure and build system
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 21 May 2024 01:03:40 +0000
parents c2de42994e57
children
line wrap: on
line diff
--- a/test/Makefile	Mon Feb 22 02:19:43 2021 +0000
+++ b/test/Makefile	Tue May 21 01:03:40 2024 +0000
@@ -1,8 +1,7 @@
-CC=	gcc
-CFLAGS=	-O2
 PROGS=	ota-smspp-envelope
 LIBS=	../libutil/libutil.a
-INSTBIN=/opt/freecalypso/bin
+
+include ../config.defs
 
 all:	${PROGS}
 
@@ -10,8 +9,8 @@
 	${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
 
 install:
-	mkdir -p ${INSTBIN}
-	install -c ${PROGS} ${INSTBIN}
+	mkdir -p ${DESTDIR}${bindir}
+	install -c ${PROGS} ${DESTDIR}${bindir}
 
 clean:
 	rm -f ${PROGS} *.o