diff enc-text/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 a16b1b9728f6
children
line wrap: on
line diff
--- a/enc-text/Makefile	Sat Sep 02 19:45:47 2023 +0000
+++ b/enc-text/Makefile	Tue May 21 01:59:17 2024 +0000
@@ -1,12 +1,8 @@
-CC=	gcc
-CFLAGS=	-O2
 PROG=	sms-encode-text
 OBJS=	concat_refno.o gsm7.o main.o ucs2.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}