X-Git-Url: http://git.meshlink.io/?p=utcp;a=blobdiff_plain;f=Makefile;h=134ca516bf34d3605fa00cc5c1bb9dd67bc2f388;hp=c2429e5f9c256dfb01b8d02151cf293e4c4df2c0;hb=HEAD;hpb=f795503080bc1e7a812d58da62513219d2b5db74 diff --git a/Makefile b/Makefile index c2429e5..134ca51 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS ?= -Og -Wall -g +CFLAGS ?= -Og -Wall -W -pedantic -g CFLAGS += -std=c99 -DUTCP_DEBUG BIN = selftest test @@ -9,9 +9,15 @@ utcp.o: utcp.c utcp.h utcp_priv.h test: utcp.o test.c +stream: stream.c + selftest: utcp.o selftest.c clean: rm -f *.o $(BIN) -.PHONY: clean +astyle: + @astyle --version | grep -q "Version 3" || (echo 'ERROR: astyle version 3 required!' 1>&2 && exit 1) + astyle --options=.astylerc -nQ *.c *.h + +.PHONY: clean astyle