FreeCalypso > hg > themwi-system-sw
changeset 5:9f1ce81522ea
add top Makefile
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 26 Jun 2022 11:40:47 -0800 |
parents | 4ad5deafaa87 |
children | 030143a95fb5 |
files | Makefile |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Sun Jun 26 11:40:47 2022 -0800 @@ -0,0 +1,22 @@ +CC= gcc +CFLAGS= -O2 + +PROGDIR=utils +LIBDIR= libutil +SUBDIR= ${PROGDIR} ${LIBDIR} + +all: ${SUBDIR} + +utils: libutil + +${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 + for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done + +FRC: