annotate sw/Makefile @ 36:f1c3dd2173d3

doc/Sniffing-hw-setup: document written
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 30 Aug 2023 02:22:44 +0000
parents 28ffdfa193f3
children 6bef393a700e
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
abb72a74f27a sw/Makefile: add
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 PROGDIR=sniff-rx
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: