view fr-sid/Makefile @ 57:a64e5ed217c0 default tip

top Makefile: add fr-sid
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 22 Aug 2024 06:43:31 +0000
parents e95e145f4b32
children
line wrap: on
line source

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