annotate mgw/Makefile @ 104:ce3b1db7d1d7

sip-in: force-pcma-codec config option to use PCMA when both are offered
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 27 Sep 2022 21:52:07 -0800
parents 3b3f07b112f3
children 815e4c59162e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 PROG= themwi-mgw
101
ca21fbf9d2ea mgw: implement G.711 encoding
Mychaela Falconia <falcon@freecalypso.org>
parents: 95
diff changeset
4 OBJS= crcx.o ctrl_prot.o ctrl_sock.o dlcx.o g711_decode.o g711_encode.o \
103
3b3f07b112f3 mgw: implement GSM to PSTN forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents: 101
diff changeset
5 gsm2pstn.o main.o mdcx.o pstn2gsm.o readconf.o udpsink.o
32
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 LIBS= ../libutil/libutil.a
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 INSTBIN=/usr/local/bin
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 all: ${PROG}
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 ${PROG}: ${OBJS} ${LIBS}
95
f280328e7e2e themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents: 32
diff changeset
12 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} -lgsm
32
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 install:
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 install -c -o bin -g bin -m 755 ${PROG} ${INSTBIN}
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 clean:
b3f74df7b808 beginning of themwi-mgw
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 rm -f *.o ${PROG} errs