CFLAGS = -Wall $(shell pkg-config --cflags libcbor cmocka)
LDLIBS = $(shell pkg-config --libs libcbor cmocka) -lm
SUPPORT = assertions.c test_allocator.c stream_expectations.c
EXCLUDE = unicode_test 
TESTS = $(filter-out $(EXCLUDE),$(patsubst %.c,%,$(wildcard *_test.c)))
all: $(TESTS)
$(TESTS): %: %.c $(SUPPORT)
	cc -v $(CFLAGS) -o $@ $< $(SUPPORT) $(LDLIBS)
