diff libnumutil/Makefile @ 14:78319ed870dc

convert to new ThemWi configure and build system
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 21 May 2024 00:15:24 +0000
parents 3d6cfb615d90
children
line wrap: on
line diff
--- a/libnumutil/Makefile	Wed Dec 13 06:07:40 2023 +0000
+++ b/libnumutil/Makefile	Tue May 21 00:15:24 2024 +0000
@@ -1,10 +1,8 @@
-INSTALL_PREFIX=	/opt/themwi
-
-CC=	gcc
-CFLAGS=	-O2 -I../build-inc
+CPPFLAGS=-I../build-inc
 OBJS=	digit_groups.o nanp_valid.o numstring.o
 LIB=	libnumutil.a
-INSTDIR=${INSTALL_PREFIX}/lib
+
+include ../config.defs
 
 all:	${LIB}
 
@@ -13,8 +11,8 @@
 	ranlib $@
 
 install:
-	mkdir -p ${INSTDIR}
-	install -c -m 644 ${LIB} ${INSTDIR}
+	mkdir -p ${DESTDIR}${libdir}
+	install -c -m 644 ${LIB} ${DESTDIR}${libdir}
 
 clean:
 	rm -f *.[oa] errs