annotate misc/Makefile @ 30:84d1c31d0fad

first round of refactoring for selection among multiple readers
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Feb 2021 17:09:01 +0000
parents 4bd6275d7c79
children be9984600bf8
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
26
4bd6275d7c79 fc-pcsc-atr trivial program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 16
diff changeset
3 PROGS= fc-pcsc-atr
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
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 install:
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 mkdir -p ${INSTBIN}
26
4bd6275d7c79 fc-pcsc-atr trivial program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 16
diff changeset
14 install -c ${PROGS} ${INSTBIN}
1
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
2071b28cd0c7 simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 clean:
26
4bd6275d7c79 fc-pcsc-atr trivial program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 16
diff changeset
17 rm -f ${PROGS} *.o