X-Git-Url: http://git.meshlink.io/?p=utcp;a=blobdiff_plain;f=Makefile;h=134ca516bf34d3605fa00cc5c1bb9dd67bc2f388;hp=9b18c51de4df8a52070e63e4dc6bc6a1b46931e8;hb=HEAD;hpb=cf2acb398293f1e7003abbf455951e0e2246cc2a diff --git a/Makefile b/Makefile index 9b18c51..134ca51 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -CFLAGS ?= -O0 -Wall -g -CFLAGS += -std=c99 +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