-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 --options=.astylerc -nQ *.c *.h
+
+.PHONY: clean astyle