annotate rvinterf/lowlevel/Makefile @ 1011:6d9b10633f10 default tip

etmsync Pirelli IMEI retrieval: fix poor use of printf() Bug reported by Vadim Yanitskiy <fixeria@osmocom.org>: the construct where a static-allocated string was passed to printf() without any format arguments causes newer compilers to report a security problem. Given that formatted output is not needed here, just fixed string output, change printf() to fputs(), and direct the error message to stderr while at it.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 23 May 2024 17:29:57 +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}