From a8b9b15b4f02ce3c6c7eac0d9393c44cb3fc668d Mon Sep 17 00:00:00 2001 From: ZoRo Date: Mon, 15 Jan 2018 19:25:03 +0000 Subject: Initial commit --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ff53f43 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CC=gcc +CFLAGS=-g3 + +make: + $(CC) -c buf.c + $(CC) $(CFLAGS) -fPIC -lc -ldl buf.c -shared -o libbuf.so + +test: buf.c + $(CC) $(CFLAGS) buf.o test.c -o test + +leak: + valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./test + +clean: + rm -rf *.so *.o + + -- cgit v1.2.3