FreeCalypso > hg > fc-sim-tools
annotate simtool/Makefile @ 16:53f8a1146a56
{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 14 Mar 2021 07:43:51 +0000 |
parents | b7ee2e85686b |
children | 25530c262137 |
rev | line source |
---|---|
10
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 CPPFLAGS=-I../libcommon |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 PROG= fc-simtool |
14
b7ee2e85686b
command dispatch and scripting factored out into libcommon
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
5 OBJS= a38.o bfsearch.o chv.o chvext.o cmdtab.o curfile.o dumpdir.o \ |
10
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 erasefile.o fplmn.o getresp.o grcard1.o grcard2.o hlread.o \ |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 inval_rehab.o lndwrite.o main.o miscadm.o opldump.o oplprog.o \ |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 pbcommon.o pbdump.o pberase.o pbrestore.o pbupd_imm.o pbupd_immhex.o \ |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 plmnsel.o pnndump.o pnnprog.o readcmd.o readef.o readops.o restorebin.o\ |
14
b7ee2e85686b
command dispatch and scripting factored out into libcommon
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
10 savebin.o select.o sjs1_hacks.o smserase.o smsp_common.o smsp_dump.o \ |
b7ee2e85686b
command dispatch and scripting factored out into libcommon
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
11 smsp_erase.o smsp_restore.o smsp_set.o sstlist.o sstprog.o stktest.o \ |
b7ee2e85686b
command dispatch and scripting factored out into libcommon
Mychaela Falconia <falcon@freecalypso.org>
parents:
10
diff
changeset
|
12 telsum.o usersum.o writecmd.o writeops.o |
10
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 LIBS= ../libcommon/libcommon.a ../libutil/libutil.a |
16
53f8a1146a56
{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
14 |
53f8a1146a56
{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
15 INSTALL_PREFIX= /opt/freecalypso |
53f8a1146a56
{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
16 |
53f8a1146a56
{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
17 INSTBIN=${INSTALL_PREFIX}/bin |
10
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 all: ${PROG} |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 ${PROG}: ${OBJS} ${LIBS} |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 install: |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 mkdir -p ${INSTBIN} |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 install -c ${PROG} ${INSTBIN} |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 clean: |
ddd767f6e15b
fc-simtool ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 rm -f ${PROG} *.o |