diff libnumdb/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/libnumdb/Makefile	Wed Dec 13 06:07:40 2023 +0000
+++ b/libnumdb/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=	check_nanp.o check_short.o readbin.o refresh.o
 LIB=	libnumdb.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