FreeCalypso > hg > freecalypso-tools
annotate ffstools/tiaud/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 | 90d7c360a614 |
children |
rev | line source |
---|---|
163
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
241
1f3b28d66d53
tiaud-mkvol program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
240
diff
changeset
|
3 PROGS= compile decomp mkvol |
473
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
241
diff
changeset
|
4 |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
241
diff
changeset
|
5 INSTALL_PREFIX= /opt/freecalypso |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
241
diff
changeset
|
6 |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
241
diff
changeset
|
7 INSTBIN=${INSTALL_PREFIX}/bin |
163
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 all: ${PROGS} |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
240
2568a2a8a453
tiaud-compile program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
164
diff
changeset
|
11 compile: compile.c |
2568a2a8a453
tiaud-compile program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
164
diff
changeset
|
12 ${CC} ${CFLAGS} -o $@ $@.c |
2568a2a8a453
tiaud-compile program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
164
diff
changeset
|
13 |
163
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 decomp: decomp.c |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 ${CC} ${CFLAGS} -o $@ $@.c |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
241
1f3b28d66d53
tiaud-mkvol program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
240
diff
changeset
|
17 mkvol: mkvol.c |
1f3b28d66d53
tiaud-mkvol program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
240
diff
changeset
|
18 ${CC} ${CFLAGS} -o $@ $@.c |
1f3b28d66d53
tiaud-mkvol program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
240
diff
changeset
|
19 |
164
959ff9f59568
make install added for tiaud-decomp
Mychaela Falconia <falcon@freecalypso.org>
parents:
163
diff
changeset
|
20 install: ${PROGS} |
959ff9f59568
make install added for tiaud-decomp
Mychaela Falconia <falcon@freecalypso.org>
parents:
163
diff
changeset
|
21 mkdir -p ${INSTBIN} |
240
2568a2a8a453
tiaud-compile program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
164
diff
changeset
|
22 install -c compile ${INSTBIN}/tiaud-compile |
164
959ff9f59568
make install added for tiaud-decomp
Mychaela Falconia <falcon@freecalypso.org>
parents:
163
diff
changeset
|
23 install -c decomp ${INSTBIN}/tiaud-decomp |
241
1f3b28d66d53
tiaud-mkvol program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
240
diff
changeset
|
24 install -c mkvol ${INSTBIN}/tiaud-mkvol |
164
959ff9f59568
make install added for tiaud-decomp
Mychaela Falconia <falcon@freecalypso.org>
parents:
163
diff
changeset
|
25 |
163
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 clean: |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 rm -f ${PROGS} |