view utils/Makefile @ 12:6560915b0d27

top Makefile: add libnumdb
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 26 Jun 2022 13:52:29 -0800
parents 030143a95fb5
children 26b98505684e
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	themwi-dump-numdb themwi-update-numdb
LIBUTIL=../libutil/libutil.a
INSTBIN=/usr/local/bin

all:	${PROGS}

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

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

install:
	install -c -o bin -g bin -m 755 ${PROGS} ${INSTBIN}

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