view utils/Makefile @ 170:a6eb2de277f6

mgw: massive simplification for continuous RTP stream from BTS
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 01:58:47 -0800
parents 5c7109183c8c
children 857d78c58f56
line wrap: on
line source

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

all:	${PROGS}

sip-out-test:	sip-out-test.c
	${CC} ${CFLAGS} -o $@ $@.c

sip-rx-test:	sip-rx-test.o ${LIBSIP}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBSIP}

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}

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

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

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