annotate utils/Makefile @ 24:47a491a16de3

utils/Makefile: use ${LIBUTIL} instead of ${LIBS}
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 15 Mar 2021 08:43:08 +0000
parents 372ecc4aa2c4
children 9c9f6adbaedb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 PROGS= sim-iccid-mkfull sws-email2db
24
47a491a16de3 utils/Makefile: use ${LIBUTIL} instead of ${LIBS}
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
4 LIBUTIL=../libutil/libutil.a
17
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 INSTALL_PREFIX= /opt/freecalypso
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 INSTBIN=${INSTALL_PREFIX}/bin
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 all: ${PROGS}
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
24
47a491a16de3 utils/Makefile: use ${LIBUTIL} instead of ${LIBS}
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
12 sim-iccid-mkfull: sim-iccid-mkfull.o ${LIBUTIL}
47a491a16de3 utils/Makefile: use ${LIBUTIL} instead of ${LIBS}
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
13 ${CC} ${CFLAGS} -o $@ $@.o ${LIBUTIL}
17
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 sws-email2db: sws-email2db.c
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 ${CC} ${CFLAGS} -o $@ $@.c
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 install:
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 mkdir -p ${INSTBIN}
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 install -c ${PROGS} ${INSTBIN}
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 clean:
372ecc4aa2c4 off-line utils ported over
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 rm -f ${PROGS} *.o