view utils/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 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