FreeCalypso > hg > fc-pcsc-tools
annotate simtool/Makefile @ 109:8a27f45bc1e6
fc-simtool fplmn-dump: support output redirection
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 19 Feb 2021 06:53:14 +0000 |
parents | 9b2cb2b9c910 |
children | d0d1c0b35831 |
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 |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 PROG= fc-simtool |
103
9b2cb2b9c910
fc-simtool fplmn-* commands implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
87
diff
changeset
|
4 OBJS= a38.o chv.o chvext.o curfile.o dispatch.o dumpdir.o fplmn.o grcard1.o \ |
9b2cb2b9c910
fc-simtool fplmn-* commands implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
87
diff
changeset
|
5 grcard2.o hlread.o lndwrite.o main.o miscadm.o opldump.o pbcommon.o \ |
9b2cb2b9c910
fc-simtool fplmn-* commands implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
87
diff
changeset
|
6 pbdump.o pberase.o pbrestore.o pbupd_imm.o pbupd_immhex.o plmnsel.o \ |
9b2cb2b9c910
fc-simtool fplmn-* commands implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
87
diff
changeset
|
7 pnndump.o readcmd.o readops.o restorebin.o savebin.o script.o select.o \ |
9b2cb2b9c910
fc-simtool fplmn-* commands implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
87
diff
changeset
|
8 smserase.o smsp_common.o smsp_dump.o smsp_erase.o smsp_restore.o \ |
9b2cb2b9c910
fc-simtool fplmn-* commands implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
87
diff
changeset
|
9 smsp_set.o sstlist.o sysmo.o telsum.o usersum.o writecmd.o writeops.o |
1
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 LIBS= ../libcommon/libcommon.a |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 INSTBIN=/opt/freecalypso/bin |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 all: ${PROG} |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 ${PROG}: ${OBJS} ${LIBS} |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} -lpcsclite |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 install: |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 mkdir -p ${INSTBIN} |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 install -c ${PROG} ${INSTBIN} |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 clean: |
2071b28cd0c7
simtool: first refactored version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 rm -f ${PROG} *.o |