FreeCalypso > hg > fc-sim-sniff
annotate sw/sniff-rx/Makefile @ 32:fb9c03515832
sw/sniff-rx/Makefile: add install
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 29 Aug 2023 21:44:22 +0000 |
parents | b112c2df6c43 |
children | 7c9bf72d460f |
rev | line source |
---|---|
22
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 PROG= simtrace3-sniff-rx |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 OBJS= byteproc.o datetime.o initflush.o main.o mainloop.o |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 LIBS= ../libserial/libserial.a |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
32
fb9c03515832
sw/sniff-rx/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
22
diff
changeset
|
7 INSTALL_PREFIX= /opt/freecalypso |
fb9c03515832
sw/sniff-rx/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
22
diff
changeset
|
8 |
fb9c03515832
sw/sniff-rx/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
22
diff
changeset
|
9 INSTBIN=${INSTALL_PREFIX}/bin |
fb9c03515832
sw/sniff-rx/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
22
diff
changeset
|
10 |
22
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 all: ${PROG} |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 ${PROG}: ${OBJS} ${LIBS} |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 |
32
fb9c03515832
sw/sniff-rx/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
22
diff
changeset
|
16 install: |
fb9c03515832
sw/sniff-rx/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
22
diff
changeset
|
17 mkdir -p ${INSTBIN} |
fb9c03515832
sw/sniff-rx/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
22
diff
changeset
|
18 install -c ${PROG} ${INSTBIN} |
fb9c03515832
sw/sniff-rx/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
22
diff
changeset
|
19 |
22
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 clean: |
b112c2df6c43
sw: simtrace3-sniff-rx program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 rm -f *.o ${PROG} |