# HG changeset patch # User Mychaela Falconia # Date 1691201416 0 # Node ID 367dce9bf5a7232b1562259b5870938e77a9dcc5 # Parent a16b1b9728f649d2c4ab5113a13fe356ed770529 add top level Makefile diff -r a16b1b9728f6 -r 367dce9bf5a7 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Sat Aug 05 02:10:16 2023 +0000 @@ -0,0 +1,25 @@ +CC= gcc +CFLAGS= -O2 +PROGDIR=enc-text +LIBDIR= libcoding +SUBDIR= ${PROGDIR} ${LIBDIR} + +INSTALL_PREFIX= /opt/freecalypso + +all: ${SUBDIR} + +enc-text: libcoding + +${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: