X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=Makefile;h=6cb1bc9ab5e8bd1716d5e2932e49666ac0c881e8;hb=275129c9d08b2d29529b2f9d039198168aeb52a7;hp=f62279859a3ace0308963ab2d3575ad7b08b6094;hpb=53730e6f2e6d2625e935bd91c8639642f6d1519b;p=utcp diff --git a/Makefile b/Makefile index f622798..6cb1bc9 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,21 @@ -CFLAGS ?= -O0 -Wall -g -CFLAGS += -std=c99 +CFLAGS ?= -Og -Wall -W -pedantic -g +CFLAGS += -std=c99 -DUTCP_DEBUG BIN = selftest test all: $(BIN) -test: utcp.c test.c +utcp.o: utcp.c utcp.h utcp_priv.h -selftest: utcp.c selftest.c +test: utcp.o test.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