]> git.meshlink.io Git - utcp/blob - Makefile
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 selftest: utcp.o selftest.c
13
14 clean:
15         rm -f *.o $(BIN)
16
17 astyle:
18         @astyle --version | grep -q "Version 3" || (echo 'ERROR: astyle version 3 required!' 1>&2 && exit 1)
19         astyle --options=.astylerc -nQ *.c *.h
20
21 .PHONY: clean astyle