view mgw/Makefile @ 126:815e4c59162e

mgw DTMF: tone definitions and sample array generation
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 01 Oct 2022 17:09:51 -0800
parents 3b3f07b112f3
children f062c32a5116
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROG=	themwi-mgw
OBJS=	crcx.o ctrl_prot.o ctrl_sock.o dlcx.o dtmf_init.o dtmf_table.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 -lm

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

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