FreeCalypso > hg > vband-misc
comparison dhf/Makefile @ 35:6bb1651f8c11
dhf: generate binary form of EFR DHF
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 14 May 2024 03:46:12 +0000 |
parents | 307fe06fabec |
children | e4c6fc4e30f4 |
comparison
equal
deleted
inserted
replaced
34:307fe06fabec | 35:6bb1651f8c11 |
---|---|
1 CC= gcc | 1 CC= gcc |
2 CFLAGS= -O2 | 2 CFLAGS= -O2 |
3 PROG= efr-dhf-hexout | 3 PROGS= efr-dhf-hexout emit-dhfbin-efr |
4 COUT= efr-dhf-bytes.c mr122-dhf-bytes.c | 4 COUT= efr-dhf-bytes.c mr122-dhf-bytes.c |
5 OUTF= ${COUT} efr-dhf.gsmx | |
5 | 6 |
6 all: ${PROG} ${COUT} | 7 all: ${PROGS} ${OUTF} |
7 | 8 |
8 ${PROG}: ${PROG}.c | 9 efr-dhf-hexout: efr-dhf-hexout.c |
9 ${CC} ${CFLAGS} -o $@ $@.c -lgsmefr -ltwamr | 10 ${CC} ${CFLAGS} -o $@ $@.c -lgsmefr -ltwamr |
10 | 11 |
11 ${COUT}: efr-dhf-hexout | 12 ${COUT}: efr-dhf-hexout |
12 ./efr-dhf-hexout efr-dhf-bytes.c mr122-dhf-bytes.c | 13 ./efr-dhf-hexout efr-dhf-bytes.c mr122-dhf-bytes.c |
13 | 14 |
15 emit-dhfbin-efr: emit-dhfbin-efr.o efr-dhf-bytes.o | |
16 ${CC} ${CFLAGS} -o $@ $^ | |
17 | |
18 efr-dhf.gsmx: emit-dhfbin-efr | |
19 ./emit-dhfbin-efr $@ | |
20 | |
14 clean: | 21 clean: |
15 rm -f *.o ${PROG} ${COUT} | 22 rm -f *.o ${PROGS} ${COUT} *.gsmx |