]> git.meshlink.io Git - utcp/blobdiff - Makefile
Fix all compiler warnings found using -Wall -W -pedantic.
[utcp] / Makefile
index 07308bee3fda82d634b287162287ac7591961887..faa2f66a3b8e191e36340f3c6d64c466393baae6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS ?= -O0 -Wall -g
+CFLAGS ?= -Og -Wall -W -pedantic -g
 CFLAGS += -std=c99 -DUTCP_DEBUG
 
 BIN = selftest test
@@ -14,4 +14,7 @@ selftest: utcp.o selftest.c
 clean:
        rm -f *.o $(BIN)
 
-.PHONY: clean
+astyle:
+       astyle --options=.astylerc -nQ *.c *.h
+
+.PHONY: clean astyle