view utils/Makefile @ 12:1ebc312f4b69

add README
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Dec 2023 05:53:17 +0000
parents 3d6cfb615d90
children 78319ed870dc
line wrap: on
line source

INSTALL_PREFIX=	/opt/themwi

CC=	gcc
CFLAGS=	-O2 -I../build-inc
PROGS=	themwi-check-own themwi-dump-numdb themwi-short-dial themwi-update-numdb
LIBNUMDB=../libnumdb/libnumdb.a
LIBUTIL=../libnumutil/libnumutil.a
INSTBIN=${INSTALL_PREFIX}/bin

all:	${PROGS}

themwi-check-own:	themwi-check-own.o ${LIBNUMDB} ${LIBUTIL}
	${CC} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL}

themwi-dump-numdb:	themwi-dump-numdb.c
	${CC} ${CFLAGS} -o $@ $@.c

themwi-short-dial:	themwi-short-dial.o ${LIBNUMDB} ${LIBUTIL}
	${CC} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL}

themwi-update-numdb:	themwi-update-numdb.o ${LIBUTIL}
	${CC} -o $@ $@.o ${LIBUTIL}

install:
	mkdir -p ${INSTBIN}
	install -c -m 755 ${PROGS} ${INSTBIN}

clean:
	rm -f *.o ${PROGS} errs