diff dhf/Makefile @ 34:307fe06fabec

dhf: generate EFR hex DHF in C form
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 14 May 2024 03:36:31 +0000
parents baf74dff5368
children 6bb1651f8c11
line wrap: on
line diff
--- a/dhf/Makefile	Mon May 13 22:49:21 2024 +0000
+++ b/dhf/Makefile	Tue May 14 03:36:31 2024 +0000
@@ -1,15 +1,15 @@
 CC=	gcc
 CFLAGS=	-O2
 PROG=	efr-dhf-hexout
-OUTFILE=efr-dhf-hex.txt
+COUT=	efr-dhf-bytes.c mr122-dhf-bytes.c
 
-all:	${PROG} ${OUTFILE}
+all:	${PROG} ${COUT}
 
 ${PROG}:	${PROG}.c
 	${CC} ${CFLAGS} -o $@ $@.c -lgsmefr -ltwamr
 
-${OUTFILE}:	${PROG}
-	./${PROG} > $@
+${COUT}:	efr-dhf-hexout
+	./efr-dhf-hexout efr-dhf-bytes.c mr122-dhf-bytes.c
 
 clean:
-	rm -f *.o ${PROG} *.txt
+	rm -f *.o ${PROG} ${COUT}