comparison sw/Makefile @ 4:1dacfe7d5b3d

sw: add top Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 11 Oct 2024 23:56:48 +0000
parents
children ee14dd81bba1
comparison
equal deleted inserted replaced
3:de85c3680d7e 4:1dacfe7d5b3d
1 CC= gcc
2 CFLAGS= -O2
3 PROGDIR=mcsi-rx
4 LIBDIR= libserial
5 SUBDIR= ${PROGDIR} ${LIBDIR}
6
7 INSTALL_PREFIX= /opt/freecalypso
8
9 all: ${SUBDIR}
10
11 mcsi-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
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
25 FRC: