changeset 883:34f0b7eb4b75

ringtools/Makefile: add fc-imy2pwt
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 03 Apr 2022 03:44:23 +0000
parents fd4c9bc7835d
children 8eb1f60f6676
files ringtools/Makefile
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ringtools/Makefile	Sun Apr 03 03:30:27 2022 +0000
+++ b/ringtools/Makefile	Sun Apr 03 03:44:23 2022 +0000
@@ -2,12 +2,16 @@
 CFLAGS=	-O2
 PROGS=	fc-e1decode fc-e1gen fc-pwt-comp fc-ringlist-comp
 SCRIPTS=fc-meltest-e1 fc-meltest-pwt
+SUBDIR=	imy
 
 INSTALL_PREFIX=	/opt/freecalypso
 
 INSTBIN=${INSTALL_PREFIX}/bin
 
-all:	${PROGS}
+all:	${PROGS} ${SUBDIR}
+
+${SUBDIR}: FRC
+	cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
 
 fc-e1decode:	fc-e1decode.c
 	${CC} ${CFLAGS} -o $@ $@.c
@@ -24,6 +28,11 @@
 install:
 	mkdir -p ${INSTBIN}
 	install -c ${PROGS} ${SCRIPTS} ${INSTBIN}
+	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
+		INSTALL_PREFIX=${INSTALL_PREFIX} install); done
 
 clean:
 	rm -f ${PROGS} *.o *errs *.out
+	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
+
+FRC: