diff fr-sid/Makefile @ 56:e95e145f4b32

fr-sid: generate test sequence
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 22 Aug 2024 06:39:12 +0000
parents efr-sid/Makefile@fd498c6898a8
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fr-sid/Makefile	Thu Aug 22 06:39:12 2024 +0000
@@ -0,0 +1,26 @@
+CC=	gcc
+CFLAGS=	-O2
+PROG=	mk-sid-test
+INPUT=	goodsp-frame41.gsmx
+
+OUT_NATIVE=	fr1-sid-test.gsmx
+OUT_HEX=	fr1-sid-test.hex
+OUT_TCH=	fr1-sid-test.tch
+OUTPUTS=	${OUT_NATIVE} ${OUT_HEX} ${OUT_TCH}
+
+all:	${PROG} ${OUTPUTS}
+
+${PROG}:	${PROG}.c
+	${CC} ${CFLAGS} -o $@ $@.c
+
+${OUT_NATIVE}:	${PROG} ${INPUT}
+	./${PROG} ${INPUT} $@
+
+${OUT_HEX}:	${OUT_NATIVE}
+	../utils/gen-hex-lines ${OUT_NATIVE} $@ 33
+
+${OUT_TCH}:	${OUT_NATIVE}
+	fc-fr2tch ${OUT_NATIVE} $@
+
+clean:
+	rm -f ${PROG} *.o ${OUT_NATIVE} *.hex *.tch