diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
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 + + |