]> git.meshlink.io Git - utcp/blobdiff - Makefile
Add a script to generate graphs of the data recorded by the benchmark script.
[utcp] / Makefile
index 9b18c51de4df8a52070e63e4dc6bc6a1b46931e8..6cb1bc9ab5e8bd1716d5e2932e49666ac0c881e8 100644 (file)
--- 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
 
@@ -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