annotate misc/Makefile @ 74:8562d8508cf2

grcard2-set-{adm,super}-hex commands implemented It appears that GrcardSIM2 cards allow arbitrary 64-bit keys for ADM and SUPER ADM, not necessarily consisting of ASCII digits like the specs require for standard PIN and PUK, and pySim-prog.py in fact sets the ADM key to 4444444444444444 in hex by default, which is not an ASCII digit string. If the cards allow such keys, we need to support them too.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 16 Feb 2021 04:10:36 +0000
parents be9984600bf8
children f064dbcc5f41
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2 -I/usr/include/PCSC -I../libcommon
31
be9984600bf8 fc-pcsc-list utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
3 PROGS= fc-pcsc-atr fc-pcsc-list
1
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 LIBS= ../libcommon/libcommon.a
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 INSTBIN=/opt/freecalypso/bin
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
26
4bd6275d7c79 fc-pcsc-atr trivial program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 16
diff changeset
7 all: ${PROGS}
1
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
26
4bd6275d7c79 fc-pcsc-atr trivial program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 16
diff changeset
9 fc-pcsc-atr: fc-pcsc-atr.o ${LIBS}
4bd6275d7c79 fc-pcsc-atr trivial program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 16
diff changeset
10 ${CC} ${CFLAGS} -o $@ $@.o ${LIBS} -lpcsclite
1
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
31
be9984600bf8 fc-pcsc-list utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
12 fc-pcsc-list: fc-pcsc-list.o ${LIBS}
be9984600bf8 fc-pcsc-list utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
13 ${CC} ${CFLAGS} -o $@ $@.o ${LIBS} -lpcsclite
be9984600bf8 fc-pcsc-list utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
14
1
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 install:
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 mkdir -p ${INSTBIN}
26
4bd6275d7c79 fc-pcsc-atr trivial program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 16
diff changeset
17 install -c ${PROGS} ${INSTBIN}
1
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 clean:
26
4bd6275d7c79 fc-pcsc-atr trivial program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 16
diff changeset
20 rm -f ${PROGS} *.o