FreeCalypso > hg > fc-sim-tools
annotate Makefile @ 93:6041c601304d
fcsim1-mkprov: revert OTA key addition
It appears that GrcardSIM2 cards (which is what we got for FCSIM1)
do not support OTA after all, contrary to what we were previously
led to believe by some tech support emails from Grcard - apparently
those support emails and OTA descriptions referred to some other
card model(s).
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 21 Apr 2021 05:38:39 +0000 |
parents | 0bc89d61fc59 |
children |
rev | line source |
---|---|
19
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 CFLAGS_PCSC= -O2 -I/usr/include/PCSC |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
44
0bc89d61fc59
top Makefile: add serial
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
5 PROGDIR=calypso serial simtool uicc utils |
19
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 PCSC= pcsc |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 LIBDIR= libcommon libutil |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 SUBDIR= ${PROGDIR} ${PCSC} ${LIBDIR} |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 INSTALL_PREFIX= /opt/freecalypso |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 all: ${SUBDIR} |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 simtool: libcommon libutil |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 uicc: libcommon libutil |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 utils: libutil |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 ${PROGDIR} ${LIBDIR}: FRC |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 pcsc: FRC |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS_PCSC}" |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 clean: FRC |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 rm -f a.out core errs |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 install: FRC |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 mkdir -p ${INSTALL_PREFIX} |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 for i in ${PROGDIR} ${PCSC}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 INSTALL_PREFIX=${INSTALL_PREFIX} install); done |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 mkdir -p ${INSTALL_PREFIX}/sim-data |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 mkdir -p ${INSTALL_PREFIX}/sim-scripts |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 install -c -m 644 scripts/* ${INSTALL_PREFIX}/sim-scripts |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 |
9ff94f80fcb5
top Makefile ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 FRC: |