annotate sw/Makefile @ 58:95ed46b5f8f1 default tip

doc/Sniffing-hw-setup: mv-sniffer is here
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Oct 2023 05:55:09 +0000
parents 6bef393a700e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
43
6bef393a700e sw/Makefile: add sniff-dec
Mychaela Falconia <falcon@freecalypso.org>
parents: 33
diff changeset
3 PROGDIR=sniff-dec sniff-rx
23
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 LIBDIR= libserial
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 SUBDIR= ${PROGDIR} ${LIBDIR}
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
33
28ffdfa193f3 sw/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
7 INSTALL_PREFIX= /opt/freecalypso
28ffdfa193f3 sw/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
8
23
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 all: ${SUBDIR}
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 sniff-rx: libserial
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 ${SUBDIR}: FRC
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 clean: FRC
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 rm -f a.out core errs
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19
33
28ffdfa193f3 sw/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
20 install: FRC
28ffdfa193f3 sw/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
21 mkdir -p ${INSTALL_PREFIX}
28ffdfa193f3 sw/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
22 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
28ffdfa193f3 sw/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
23 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
28ffdfa193f3 sw/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
24
23
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 FRC: