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