changeset 3:367dce9bf5a7

add top level Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 05 Aug 2023 02:10:16 +0000
parents a16b1b9728f6
children d88c5ab03447
files 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/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: