view mgw/Makefile @ 117:c93c339271a7

sip-in CDR syslog: put a safety limit on string length
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 28 Sep 2022 23:07:46 -0800
parents 3b3f07b112f3
children 815e4c59162e
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROG=	themwi-mgw
OBJS=	crcx.o ctrl_prot.o ctrl_sock.o dlcx.o g711_decode.o g711_encode.o \
	gsm2pstn.o main.o mdcx.o pstn2gsm.o readconf.o udpsink.o
LIBS=	../libutil/libutil.a
INSTBIN=/usr/local/bin

all:	${PROG}

${PROG}: ${OBJS} ${LIBS}
	${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} -lgsm

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

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