Commit a57f3c61 authored by Brendan Moran's avatar Brendan Moran
Browse files

Add quiet flags to makefile

parent 147c63d7
......@@ -27,26 +27,25 @@ ABS_OUT=$(abspath ${OUT})/
Q?=@
CBOR_LIB?=${ABS_OUT}source/bm_cbor.a
$(info ${CBOR_LIB})
.PHONY: all
all: lib
${ABS_OUT}:
mkdir -p ${ABS_OUT}
${Q}mkdir -p ${ABS_OUT}
.PHONY: lib
lib: ${ABS_OUT}
make -C source OUT=${ABS_OUT}source/ Q=${Q}
${Q}make -C source OUT=${ABS_OUT}source/ Q=${Q}
.PHONY: tests
tests: lib ${OUT}
make -C test OUT=${ABS_OUT}test/ Q=${Q} CBOR_LIB=${CBOR_LIB}
${Q}make -C test OUT=${ABS_OUT}test/ Q=${Q} CBOR_LIB=${CBOR_LIB}
.PHONY: test
test: lib ${ABS_OUT}
make -C test OUT=${ABS_OUT}test/ Q=${Q} CBOR_LIB=${CBOR_LIB} test
${Q}make -C test OUT=${ABS_OUT}test/ Q=${Q} CBOR_LIB=${CBOR_LIB} test
.PHONY: clean ${ABS_OUT}
clean:
......
......@@ -220,9 +220,9 @@ int pull_cbor_handle_pairs(
const uint8_t* end,
void *ctx,
const cbor_keyed_parse_elements_t *handlers,
size_t n_pairs
size_t n_elements
) {
n_pairs = n_pairs/2;
size_t n_pairs = n_elements/2;
// PD_PRINTF("Handling %zu pairs\n", n_pairs);
int rc = CBOR_ERR_NONE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment