]> git.meshlink.io Git - utcp/blobdiff - Makefile
Fix free_connection() moving the wrong memory.
[utcp] / Makefile
index c7232b9bbff76ddf78b27563c791ec22ae6fa38b..07308bee3fda82d634b287162287ac7591961887 100644 (file)
--- 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