view libnumdb/Makefile @ 13:c0bfd300b6e5

add INSTALL
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Dec 2023 06:07:40 +0000
parents 3d6cfb615d90
children 78319ed870dc
line wrap: on
line source

INSTALL_PREFIX=	/opt/themwi

CC=	gcc
CFLAGS=	-O2 -I../build-inc
OBJS=	check_nanp.o check_short.o readbin.o refresh.o
LIB=	libnumdb.a
INSTDIR=${INSTALL_PREFIX}/lib

all:	${LIB}

${LIB}:	${OBJS}
	ar rcu $@ ${OBJS}
	ranlib $@

install:
	mkdir -p ${INSTDIR}
	install -c -m 644 ${LIB} ${INSTDIR}

clean:
	rm -f *.[oa] errs