X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=Makefile;h=07308bee3fda82d634b287162287ac7591961887;hb=f4c52312544ee99bcce46ebcfc0c8e6ac6356fd5;hp=c7232b9bbff76ddf78b27563c791ec22ae6fa38b;hpb=95d7d348316f1ed8d2ff3e37cb7f962abf4a7f84;p=utcp diff --git a/Makefile b/Makefile index c7232b9..07308be 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,17 @@ CFLAGS ?= -O0 -Wall -g -CFLAGS += -std=c99 +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