X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=Makefile;h=d10352e50d4a90bfd1e301322665ccc71eecc623;hb=1c136554d0e3c3fb89106c349e7613869d63ca2c;hp=c7232b9bbff76ddf78b27563c791ec22ae6fa38b;hpb=95d7d348316f1ed8d2ff3e37cb7f962abf4a7f84;p=utcp diff --git a/Makefile b/Makefile index c7232b9..d10352e 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,17 @@ -CFLAGS ?= -O0 -Wall -g -CFLAGS += -std=c99 +CFLAGS ?= -O2 -Wall -g +CFLAGS += -std=c99 -DUTCP_DEBUG -test: utcp.c test.c +BIN = selftest test -selftest: utcp.c selftest.c +all: $(BIN) + +utcp.o: utcp.c utcp.h utcp_priv.h + +test: utcp.o test.c + +selftest: utcp.o selftest.c clean: - rm -f *.o test selftest + rm -f *.o $(BIN) .PHONY: clean