FreeCalypso > hg > fc-sim-tools
annotate pcsc/Makefile @ 0:f4479a0d4cea
fc-pcsc-list ported over
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 14 Mar 2021 00:45:15 +0000 |
parents | |
children | f7a03e53bb2c |
rev | line source |
---|---|
0
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 -I/usr/include/PCSC |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 PROGS= fc-pcsc-list |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 INSTALL_PREFIX= /opt/freecalypso |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 INSTBIN=${INSTALL_PREFIX}/bin |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 LIST_OBJS= context.o rdlist.o |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 all: ${PROGS} |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 fc-pcsc-list: ${LIST_OBJS} |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 ${CC} ${CFLAGS} -o $@ ${LIST_OBJS} -lpcsclite |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 install: |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 mkdir -p ${INSTBIN} |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 install -c ${PROGS} ${INSTBIN} |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 clean: |
f4479a0d4cea
fc-pcsc-list ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 rm -f ${PROGS} *.o |