FreeCalypso > hg > fc-sim-tools
annotate uicc/Makefile @ 61:97646b363eaa
fc-uicc-tool: sws-lookup and sws-auth-* commands ported over
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 23 Mar 2021 06:07:06 +0000 |
parents | 53f8a1146a56 |
children | db131929ee96 |
rev | line source |
---|---|
15
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 CPPFLAGS=-I../libcommon |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 PROG= fc-uicc-tool |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 OBJS= bfsearch.o cmdtab.o createfile.o dumpdir.o getresp.o hlread.o main.o \ |
61
97646b363eaa
fc-uicc-tool: sws-lookup and sws-auth-* commands ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
16
diff
changeset
|
6 pins.o readcmd.o readops.o select.o sws.o writecmd.o writeops.o |
15
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 LIBS= ../libcommon/libcommon.a ../libutil/libutil.a |
16
53f8a1146a56
{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
8 |
53f8a1146a56
{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
9 INSTALL_PREFIX= /opt/freecalypso |
53f8a1146a56
{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
10 |
53f8a1146a56
{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
11 INSTBIN=${INSTALL_PREFIX}/bin |
15
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 all: ${PROG} |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 ${PROG}: ${OBJS} ${LIBS} |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 install: |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 mkdir -p ${INSTBIN} |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 install -c ${PROG} ${INSTBIN} |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 clean: |
b70d35f5476f
fc-uicc-tool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 rm -f ${PROG} *.o |