view utils/Makefile @ 19:40e5097437fa

libutil: add grok_imsi_user_arg()
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 26 Jun 2022 22:38:42 -0800
parents 4e0a73be9e37
children 891ebfb55e6b
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	sip-udp-dump themwi-check-own themwi-dump-numdb themwi-short-dial \
	themwi-update-numdb
LIBNUMDB=../libnumdb/libnumdb.a
LIBUTIL=../libutil/libutil.a
INSTBIN=/usr/local/bin

all:	${PROGS}

sip-udp-dump:	sip-udp-dump.c
	${CC} ${CFLAGS} -o $@ $@.c

themwi-check-own:	themwi-check-own.o ${LIBNUMDB} ${LIBUTIL}
	${CC} ${CFLAGS} -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} ${CFLAGS} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL}

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