diff gen-pdu/Makefile @ 25:2a19b44c272e

convert to new ThemWi configure and build system
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 21 May 2024 01:59:17 +0000
parents 003660a57f99
children
line wrap: on
line diff
--- a/gen-pdu/Makefile	Sat Sep 02 19:45:47 2023 +0000
+++ b/gen-pdu/Makefile	Tue May 21 01:59:17 2024 +0000
@@ -1,12 +1,8 @@
-CC=	gcc
-CFLAGS=	-O2
 PROG=	sms-gen-tpdu
 OBJS=	auto_scts.o input.o main.o message.o settings.o
 LIBS=	../libcoding/libcoding.a
 
-INSTALL_PREFIX=	/opt/freecalypso
-
-INSTBIN=${INSTALL_PREFIX}/bin
+include ../config.defs
 
 all:	${PROG}
 
@@ -14,8 +10,8 @@
 	${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
 
 install:	${PROG}
-	mkdir -p ${INSTBIN}
-	install -c ${PROG} ${INSTBIN}
+	mkdir -p ${DESTDIR}${bindir}
+	install -c ${PROG} ${DESTDIR}${bindir}
 
 clean:
 	rm -f *.o *.out *errs ${PROG}