diff options
author | ZoRo <dos21h@gmail.com> | 2018-01-15 19:25:03 +0000 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2018-01-15 19:25:03 +0000 |
commit | a8b9b15b4f02ce3c6c7eac0d9393c44cb3fc668d (patch) | |
tree | 5ff9a31d852e26185075156923dc86d5a3205682 /Makefile | |
download | libbuf-a8b9b15b4f02ce3c6c7eac0d9393c44cb3fc668d.tar.gz libbuf-a8b9b15b4f02ce3c6c7eac0d9393c44cb3fc668d.zip |
Initial commit
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 + + |