summaryrefslogtreecommitdiff
path: root/ham/freedv/fixbinconst.mk
blob: 92371cbb84d20792752268a00cdad09e12bba1ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $NetBSD: fixbinconst.mk,v 1.1 2015/01/27 08:19:22 dbj Exp $

# A hack to fix up single byte binary constants

SUBST_CLASSES+=	fixbinconst
SUBST_SED.fixbinconst+=	-e 's/0[bB]0000/0b0/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]0001/0b1/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]0010/0b2/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]0011/0b3/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]0100/0b4/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]0101/0b5/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]0110/0b6/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]0111/0b7/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]1000/0b8/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]1001/0b9/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]1010/0ba/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]1011/0bb/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]1100/0bc/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]1101/0bd/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]1110/0be/g'
SUBST_SED.fixbinconst+=	-e 's/0[bB]1111/0bf/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)0000/0x\10/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)0001/0x\11/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)0010/0x\12/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)0011/0x\13/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)0100/0x\14/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)0101/0x\15/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)0110/0x\16/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)0111/0x\17/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)1000/0x\18/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)1001/0x\19/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)1010/0x\1a/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)1011/0x\1b/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)1100/0x\1c/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)1101/0x\1d/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)1110/0x\1e/g'
SUBST_SED.fixbinconst+=	-e 's/0b\([0-9a-f]\)1111/0x\1f/g'
SUBST_MESSAGE.fixbinconst= Fixing unportable binary constants