view utils/Makefile @ 15:a24f0794ab4d default tip

INSTALL: document the new way
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 21 May 2024 00:29:21 +0000
parents 78319ed870dc
children
line wrap: on
line source

CPPFLAGS=-I../build-inc
PROGS=	themwi-check-own themwi-dump-numdb themwi-short-dial themwi-update-numdb
LIBNUMDB=../libnumdb/libnumdb.a
LIBUTIL=../libnumutil/libnumutil.a

include ../config.defs

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} ${CPPFLAGS} -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 ${DESTDIR}${bindir}
	install -c -m 755 ${PROGS} ${DESTDIR}${bindir}

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