annotate tchtools/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 94890123a74f
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
906
94890123a74f tchtools: new program fc-efr2tch
Mychaela Falconia <falcon@freecalypso.org>
parents: 905
diff changeset
3 PROGS= fc-efr2tch fc-fr2tch fc-gsm2vm fc-tch2fr fc-vm2gsmx fc-vm2hex
473
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 412
diff changeset
4
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 412
diff changeset
5 INSTALL_PREFIX= /opt/freecalypso
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 412
diff changeset
6
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 412
diff changeset
7 INSTBIN=${INSTALL_PREFIX}/bin
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 all: ${PROGS}
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
906
94890123a74f tchtools: new program fc-efr2tch
Mychaela Falconia <falcon@freecalypso.org>
parents: 905
diff changeset
11 EFR2TCH_OBJS= fc-efr2tch.o efr2dsp.o
5
7eaa3307e5df fc-fr2tch utility written, added under miscutil
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
12 FR2TCH_OBJS= fc-fr2tch.o gsm0610.o
171
f736f3ce8310 fc-gsm2vm utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 170
diff changeset
13 GSM2VM_OBJS= fc-gsm2vm.o gsm0610.o
6
d57f68d0568d fc-tch2fr utility written, added under miscutil
Mychaela Falconia <falcon@freecalypso.org>
parents: 5
diff changeset
14 TCH2FR_OBJS= fc-tch2fr.o gsm0610.o
905
546bf873ccc8 tchtools: new program fc-vm2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 902
diff changeset
15 VM2GSMX_OBJS= fc-vm2gsmx.o gsm0610.o
758
b8cb116a7dc7 arfcn2ti utility added to miscutil
Mychaela Falconia <falcon@freecalypso.org>
parents: 744
diff changeset
16
906
94890123a74f tchtools: new program fc-efr2tch
Mychaela Falconia <falcon@freecalypso.org>
parents: 905
diff changeset
17 fc-efr2tch: ${EFR2TCH_OBJS}
94890123a74f tchtools: new program fc-efr2tch
Mychaela Falconia <falcon@freecalypso.org>
parents: 905
diff changeset
18 ${CC} ${CFLAGS} -o $@ ${EFR2TCH_OBJS}
94890123a74f tchtools: new program fc-efr2tch
Mychaela Falconia <falcon@freecalypso.org>
parents: 905
diff changeset
19
5
7eaa3307e5df fc-fr2tch utility written, added under miscutil
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
20 fc-fr2tch: ${FR2TCH_OBJS}
7eaa3307e5df fc-fr2tch utility written, added under miscutil
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
21 ${CC} ${CFLAGS} -o $@ ${FR2TCH_OBJS}
7eaa3307e5df fc-fr2tch utility written, added under miscutil
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
22
171
f736f3ce8310 fc-gsm2vm utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 170
diff changeset
23 fc-gsm2vm: ${GSM2VM_OBJS}
f736f3ce8310 fc-gsm2vm utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 170
diff changeset
24 ${CC} ${CFLAGS} -o $@ ${GSM2VM_OBJS}
f736f3ce8310 fc-gsm2vm utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 170
diff changeset
25
6
d57f68d0568d fc-tch2fr utility written, added under miscutil
Mychaela Falconia <falcon@freecalypso.org>
parents: 5
diff changeset
26 fc-tch2fr: ${TCH2FR_OBJS}
d57f68d0568d fc-tch2fr utility written, added under miscutil
Mychaela Falconia <falcon@freecalypso.org>
parents: 5
diff changeset
27 ${CC} ${CFLAGS} -o $@ ${TCH2FR_OBJS}
d57f68d0568d fc-tch2fr utility written, added under miscutil
Mychaela Falconia <falcon@freecalypso.org>
parents: 5
diff changeset
28
905
546bf873ccc8 tchtools: new program fc-vm2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 902
diff changeset
29 fc-vm2gsmx: ${VM2GSMX_OBJS}
546bf873ccc8 tchtools: new program fc-vm2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 902
diff changeset
30 ${CC} ${CFLAGS} -o $@ ${VM2GSMX_OBJS}
546bf873ccc8 tchtools: new program fc-vm2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 902
diff changeset
31
170
a72bbc3ace09 fc-vm2hex utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 59
diff changeset
32 fc-vm2hex: fc-vm2hex.c
a72bbc3ace09 fc-vm2hex utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 59
diff changeset
33 ${CC} ${CFLAGS} -o $@ $@.c
a72bbc3ace09 fc-vm2hex utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 59
diff changeset
34
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 install:
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 mkdir -p ${INSTBIN}
902
8ddb16a37273 tree org: move TCH and VM utils from miscutil to tchtools
Mychaela Falconia <falcon@freecalypso.org>
parents: 759
diff changeset
37 install -c ${PROGS} ${INSTBIN}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 clean:
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 rm -f ${PROGS} *.o *errs *.out