X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=Makefile;h=6cb1bc9ab5e8bd1716d5e2932e49666ac0c881e8;hb=cb9223d3b895f1edb35bf7a6fd3aa9305de3f1db;hp=c2429e5f9c256dfb01b8d02151cf293e4c4df2c0;hpb=f795503080bc1e7a812d58da62513219d2b5db74;p=utcp diff --git a/Makefile b/Makefile index c2429e5..6cb1bc9 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 @@ -14,4 +14,8 @@ 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