diff Makefile @ 249:d0a4c05d98dc

libserial hooked into the top level Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 21 Sep 2017 21:49:07 +0000
parents d13ee4ef86c7
children 556bb8c860fa
line wrap: on
line diff
--- a/Makefile	Thu Sep 21 21:43:34 2017 +0000
+++ b/Makefile	Thu Sep 21 21:49:07 2017 +0000
@@ -1,17 +1,24 @@
-SUBDIR=	ffstools loadtools miscutil ringtools rvinterf
+PROGDIR=ffstools loadtools miscutil ringtools rvinterf
+LIBDIR=	libserial
+SUBDIR=	${PROGDIR} ${LIBDIR}
 
 all:	${SUBDIR}
 
+loadtools:	libserial
+miscutil:	libserial
+rvinterf:	libserial
+
 ${SUBDIR}: FRC
 	cd $@; ${MAKE} ${MFLAGS}
 
 clean: FRC
 	rm -f a.out core errs
-	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
+	for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
+	for i in libserial-*; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
 
 install: FRC
 	mkdir -p /opt/freecalypso
-	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
+	for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
 	if [ -d target-bin ]; then \
 		mkdir -p /opt/freecalypso/target-bin; \
 		install -c -m 644 target-bin/* /opt/freecalypso/target-bin; \