annotate ringtools/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 b8ecdf54a957
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
874
f442156d31ad ringtools: fc-ringlist-comp program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 867
diff changeset
3 PROGS= fc-e1decode fc-e1gen fc-pwt-comp fc-ringlist-comp
888
b8ecdf54a957 fc-imyplay script
Mychaela Falconia <falcon@freecalypso.org>
parents: 883
diff changeset
4 SCRIPTS=fc-imyplay fc-meltest-e1 fc-meltest-pwt
883
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
5 SUBDIR= imy
473
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 176
diff changeset
6
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 176
diff changeset
7 INSTALL_PREFIX= /opt/freecalypso
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 176
diff changeset
8
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 176
diff changeset
9 INSTBIN=${INSTALL_PREFIX}/bin
33
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
883
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
11 all: ${PROGS} ${SUBDIR}
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
12
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
13 ${SUBDIR}: FRC
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
14 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
33
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
176
2b38691076b9 fc-e1decode utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 48
diff changeset
16 fc-e1decode: fc-e1decode.c
2b38691076b9 fc-e1decode utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 48
diff changeset
17 ${CC} ${CFLAGS} -o $@ $@.c
2b38691076b9 fc-e1decode utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 48
diff changeset
18
33
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 fc-e1gen: fc-e1gen.c
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 ${CC} ${CFLAGS} -o $@ $@.c
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
867
dfd98dd46068 ringtools: fc-pwt-comp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 473
diff changeset
22 fc-pwt-comp: fc-pwt-comp.c
dfd98dd46068 ringtools: fc-pwt-comp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 473
diff changeset
23 ${CC} ${CFLAGS} -o $@ $@.c
dfd98dd46068 ringtools: fc-pwt-comp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 473
diff changeset
24
874
f442156d31ad ringtools: fc-ringlist-comp program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 867
diff changeset
25 fc-ringlist-comp: fc-ringlist-comp.c
f442156d31ad ringtools: fc-ringlist-comp program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 867
diff changeset
26 ${CC} ${CFLAGS} -o $@ $@.c
f442156d31ad ringtools: fc-ringlist-comp program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 867
diff changeset
27
33
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 install:
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 mkdir -p ${INSTBIN}
878
f80e3ec41998 ringtools/Makefile: install fc-meltest-{e1,pwt}
Mychaela Falconia <falcon@freecalypso.org>
parents: 874
diff changeset
30 install -c ${PROGS} ${SCRIPTS} ${INSTBIN}
883
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
31 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
32 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
33
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 clean:
cefdc6623322 fc-e1gen utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 rm -f ${PROGS} *.o *errs *.out
883
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
36 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
37
34f0b7eb4b75 ringtools/Makefile: add fc-imy2pwt
Mychaela Falconia <falcon@freecalypso.org>
parents: 878
diff changeset
38 FRC: