annotate ffstools/newcomp/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 cae22bec3cba
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
318
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
753
cae22bec3cba compile-fc-batt2 utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 746
diff changeset
3 PROGS= compile-fc-batt compile-fc-batt2 compile-fc-chg tiffs-mkfile
473
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 320
diff changeset
4
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 320
diff changeset
5 INSTALL_PREFIX= /opt/freecalypso
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 320
diff changeset
6
90d7c360a614 main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents: 320
diff changeset
7 INSTBIN=${INSTALL_PREFIX}/bin
318
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 all: ${PROGS}
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 compile-fc-batt: compile-fc-batt.c
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 ${CC} ${CFLAGS} -o $@ $@.c
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
753
cae22bec3cba compile-fc-batt2 utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 746
diff changeset
14 compile-fc-batt2: compile-fc-batt2.c
cae22bec3cba compile-fc-batt2 utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 746
diff changeset
15 ${CC} ${CFLAGS} -o $@ $@.c
cae22bec3cba compile-fc-batt2 utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 746
diff changeset
16
320
7572c35a768a compile-fc-chg tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 318
diff changeset
17 compile-fc-chg: compile-fc-chg.c
7572c35a768a compile-fc-chg tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 318
diff changeset
18 ${CC} ${CFLAGS} -o $@ $@.c
7572c35a768a compile-fc-chg tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 318
diff changeset
19
746
f19c347d0a80 tiffs-mkfile utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 473
diff changeset
20 tiffs-mkfile: tiffs-mkfile.c
f19c347d0a80 tiffs-mkfile utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 473
diff changeset
21 ${CC} ${CFLAGS} -o $@ $@.c
f19c347d0a80 tiffs-mkfile utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 473
diff changeset
22
318
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 install: ${PROGS}
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 mkdir -p ${INSTBIN}
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 install -c ${PROGS} ${INSTBIN}
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 clean:
182c3ae209f6 compile-fc-batt tool written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 rm -f ${PROGS}