FreeCalypso > hg > fc-sim-sniff
comparison sw/Makefile @ 33:28ffdfa193f3
sw/Makefile: add install
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 29 Aug 2023 21:47:17 +0000 |
parents | abb72a74f27a |
children | 6bef393a700e |
comparison
equal
deleted
inserted
replaced
32:fb9c03515832 | 33:28ffdfa193f3 |
---|---|
1 CC= gcc | 1 CC= gcc |
2 CFLAGS= -O2 | 2 CFLAGS= -O2 |
3 PROGDIR=sniff-rx | 3 PROGDIR=sniff-rx |
4 LIBDIR= libserial | 4 LIBDIR= libserial |
5 SUBDIR= ${PROGDIR} ${LIBDIR} | 5 SUBDIR= ${PROGDIR} ${LIBDIR} |
6 | |
7 INSTALL_PREFIX= /opt/freecalypso | |
6 | 8 |
7 all: ${SUBDIR} | 9 all: ${SUBDIR} |
8 | 10 |
9 sniff-rx: libserial | 11 sniff-rx: libserial |
10 | 12 |
13 | 15 |
14 clean: FRC | 16 clean: FRC |
15 rm -f a.out core errs | 17 rm -f a.out core errs |
16 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | 18 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
17 | 19 |
20 install: FRC | |
21 mkdir -p ${INSTALL_PREFIX} | |
22 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ | |
23 INSTALL_PREFIX=${INSTALL_PREFIX} install); done | |
24 | |
18 FRC: | 25 FRC: |