FreeCalypso > hg > fc-sim-sniff
annotate sw/Makefile @ 43:6bef393a700e
sw/Makefile: add sniff-dec
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 31 Aug 2023 08:47:50 +0000 |
parents | 28ffdfa193f3 |
children |
rev | line source |
---|---|
23 | 1 CC= gcc |
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 | 4 LIBDIR= libserial |
5 SUBDIR= ${PROGDIR} ${LIBDIR} | |
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 | 9 all: ${SUBDIR} |
10 | |
11 sniff-rx: libserial | |
12 | |
13 ${SUBDIR}: FRC | |
14 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" | |
15 | |
16 clean: FRC | |
17 rm -f a.out core errs | |
18 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | |
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 | 25 FRC: |