annotate rvinterf/lowlevel/Makefile @ 965:2969032bdfac

fcup-smsend[mult]: fix buglet in K&R C NULL pointer passing The only 100% safe way to pass a NULL pointer as a function argument in K&R C is to cast 0 to a pointer type; failing to do so may cause mysterious bugs (invalid stack frames or garbage in argument registers) on 64-bit machines. This issue has already been fixed in most of FC host tools, but I just found some missed spots: passing of NULL UDH to PDU encoding functions in fcup-smsend[mult] in the case of single (not concatenated) SMS.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 01 Sep 2023 07:33:51 +0000
parents fab04df64690
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 PROGS= rvtdump rvinterf tfc139
942
fab04df64690 rvinterf/lowlevel: replace libg23 with libprint
Mychaela Falconia <falcon@freecalypso.org>
parents: 932
diff changeset
4 LIBS= ../../libserial/libserial.a ../libprint/libprint.a
581
d43dc6dfb44c -P option added to rvinterf
Mychaela Falconia <falcon@freecalypso.org>
parents: 473
diff changeset
5 LIBPWON=../../libpwon/libpwon.a
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
473
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
7 INSTALL_PREFIX= /opt/freecalypso
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
8
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
9 INSTBIN=${INSTALL_PREFIX}/bin
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
10
253
6f078c4a5506 rvinterf and friends converted to use libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 49
diff changeset
11 RVTDUMP_OBJS= format.o format_fc.o output.o packetrx.o rvtdump.o
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 RVINTERF_OBJS= clientcmd.o format.o format_fc.o localsock.o logsent.o \
253
6f078c4a5506 rvinterf and friends converted to use libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 49
diff changeset
14 output.o packetrx.o packettx.o pktfwd.o rviflcd.o \
932
3d1abb9f05ef rvinterf proper: move TM logging to new module
Mychaela Falconia <falcon@freecalypso.org>
parents: 927
diff changeset
15 rvifmain.o rviftmode.o tchhide.o
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
253
6f078c4a5506 rvinterf and friends converted to use libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 49
diff changeset
17 TFC139_OBJS= format.o output.o packetrx.o packettx.o tfc139.o
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 all: ${PROGS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20
253
6f078c4a5506 rvinterf and friends converted to use libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 49
diff changeset
21 rvtdump: ${RVTDUMP_OBJS} ${LIBS}
6f078c4a5506 rvinterf and friends converted to use libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 49
diff changeset
22 ${CC} ${CFLAGS} -o $@ ${RVTDUMP_OBJS} ${LIBS}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23
581
d43dc6dfb44c -P option added to rvinterf
Mychaela Falconia <falcon@freecalypso.org>
parents: 473
diff changeset
24 rvinterf: ${RVINTERF_OBJS} ${LIBS} ${LIBPWON}
d43dc6dfb44c -P option added to rvinterf
Mychaela Falconia <falcon@freecalypso.org>
parents: 473
diff changeset
25 ${CC} ${CFLAGS} -o $@ ${RVINTERF_OBJS} ${LIBS} ${LIBPWON}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
253
6f078c4a5506 rvinterf and friends converted to use libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 49
diff changeset
27 tfc139: ${TFC139_OBJS} ${LIBS}
6f078c4a5506 rvinterf and friends converted to use libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 49
diff changeset
28 ${CC} ${CFLAGS} -o $@ ${TFC139_OBJS} ${LIBS}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 install: ${PROGS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 mkdir -p ${INSTBIN}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 install -c ${PROGS} ${INSTBIN}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 clean:
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 rm -f *.o *.out *errs ${PROGS}