FreeCalypso > hg > fc-pcm-if
changeset 4:1dacfe7d5b3d
sw: add top Makefile
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 11 Oct 2024 23:56:48 +0000 |
parents | de85c3680d7e |
children | 3ae4a6ca5639 |
files | sw/Makefile |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sw/Makefile Fri Oct 11 23:56:48 2024 +0000 @@ -0,0 +1,25 @@ +CC= gcc +CFLAGS= -O2 +PROGDIR=mcsi-rx +LIBDIR= libserial +SUBDIR= ${PROGDIR} ${LIBDIR} + +INSTALL_PREFIX= /opt/freecalypso + +all: ${SUBDIR} + +mcsi-rx: libserial + +${SUBDIR}: FRC + cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" + +clean: FRC + rm -f a.out core errs + for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done + +install: FRC + mkdir -p ${INSTALL_PREFIX} + for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ + INSTALL_PREFIX=${INSTALL_PREFIX} install); done + +FRC: