Handle channel closure during a receive callback when the ringbuffer wraps.
[utcp] / Makefile
1 CFLAGS ?= -Og -Wall -W -pedantic -g
2 CFLAGS += -std=c99 -DUTCP_DEBUG
3
4 BIN = selftest test
5
6 all: $(BIN)
7
8 utcp.o: utcp.c utcp.h utcp_priv.h
9
10 test: utcp.o test.c
11
12 stream: stream.c
13
14 selftest: utcp.o selftest.c
15
16 clean:
17         rm -f *.o $(BIN)
18
19 astyle:
20         @astyle --version | grep -q "Version 3" || (echo 'ERROR: astyle version 3 required!' 1>&2 && exit 1)
21         astyle --options=.astylerc -nQ *.c *.h
22
23 .PHONY: clean astyle