FreeCalypso > hg > freecalypso-tools
annotate rvinterf/lowlevel/Makefile @ 924:d452188587b4
rvinterf: begin change to backslash escape output format
Right now throughout the rvinterf suite, any time we emit output that
is expected to be ASCII, but may contain non-printable garbage, we use
'cat -v' form of garbage character representation. Unfortunately, this
transformation is lossy (can't be reversed 100% reliably in the user's
wetware), hence we would like to migrate to C-style backslash escapes,
including doubling of any already-present backslashes - this escape
mechanism is lossless. Begin this change by converting the output
of RV and L1 traces in rvinterf and rvtdump.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 23 May 2023 03:10:50 +0000 |
parents | a1065c17429c |
children | 4e243402f453 |
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 |
253
6f078c4a5506
rvinterf and friends converted to use libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
49
diff
changeset
|
4 LIBS= ../../libserial/libserial.a ../libg23/libg23.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 \ |
899
a1065c17429c
rvinterf: implement TCH hiding mode and -v option for verbose
Mychaela Falconia <falcon@freecalypso.org>
parents:
581
diff
changeset
|
15 rvifmain.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} |