Add missing Makefile to directory and .gitignore
authorDavid Goulet <dgoulet@efficios.com>
Fri, 14 Jun 2013 20:19:09 +0000 (16:19 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 5 Jul 2013 20:06:09 +0000 (16:06 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
.gitignore
memleak/Makefile [new file with mode: 0644]

index 120d93658e36e2db8781d09febde905be8a97d99..96a1ab140c43aa9745d77e1800c2c763a10a6723 100644 (file)
@@ -48,6 +48,8 @@ extras/bindings/swig/python/lttng_wrap.c
 
 .checkpatch.conf
 
+!memleak/Makefile
+
 # Tests
 tests/unit/test_kernel_data
 tests/unit/test_session
diff --git a/memleak/Makefile b/memleak/Makefile
new file mode 100644 (file)
index 0000000..5212216
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright (C) 2013  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+#
+# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
+# OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
+#
+# Permission is hereby granted to use or copy this program for any
+# purpose, provided the above notices are retained on all copies.
+# Permission to modify the code and to distribute modified code is
+# granted, provided the above notices are retained, and a notice that
+# the code was modified is included with the above copyright notice.
+
+# This Makefile is not using automake so that users may see how to build
+# a program with tracepoint provider probes as stand-alone shared objects.
+
+CC = gcc
+LDFLAGS=-ldl
+CFLAGS=-g -Wall
+
+all: lttng-memleak-finder.so lttng-malloc-stats.so
+
+lttng-memleak-finder.o: lttng-memleak-finder.c jhash.h
+       $(CC) $(CPPFLAGS) $(CFLAGS) -fpic -c -o $@ $<
+
+lttng-memleak-finder.so: lttng-memleak-finder.o
+       $(CC) -shared -o $@ $(LDFLAGS) $^
+
+lttng-malloc-stats.o: lttng-malloc-stats.c
+       $(CC) $(CPPFLAGS) $(CFLAGS) -fpic -c -o $@ $<
+
+lttng-malloc-stats.so: lttng-malloc-stats.o
+       $(CC) -shared -o $@ $(LDFLAGS) $^
+
+.PHONY: clean
+clean:
+       rm -f *.o *.so
This page took 0.026442 seconds and 4 git commands to generate.