Support also td_ta_delete ().
[debugger.git] / Makefile
index 6bd6dfa..43c9ea2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,8 @@
 CC=gcc -ggdb3 -Wall -Werror
+ELFUTILS=../elfutils-0.127
+ifdef ELFUTILS
+CC+=-I$(ELFUTILS)/include -L$(ELFUTILS)/lib
+endif
 
 all: debugger check
 
@@ -8,6 +12,9 @@ debugger: debugger.c debugger.h
 testsuite: testsuite.c debugger.c debugger.h
        $(CC) -o $@ $< -pthread
 
+threadtest: threadtest.c
+       $(CC) -o $@ $< -lthread_db -ldw -lelf -lebl -ldl
+
 .PHONY: check
 check: testsuite
        ./testsuite
@@ -15,7 +22,9 @@ check: testsuite
 
 .PHONY: still
 still:
-       ls -l core* 2>/dev/null; set -ex; ulimit -c unlimited; time ./testsuite -l
+       ls -l core* 2>/dev/null || true
+       date --iso=seconds
+       set -ex; ulimit -c unlimited; time ./testsuite -l
 
 
 .PHONY: clean