Implemented nptl_db testing.
[debugger.git] / Makefile
index a2527ab..8065c65 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,20 @@
 CC=gcc -ggdb3 -Wall -Werror
+ELFUTILS=../elfutils-0.127
+ifdef ELFUTILS
+CC+=-I$(ELFUTILS)/include -L$(ELFUTILS)/lib
+endif
+LIBS=-lthread_db -ldw -lelf -lebl -ldl
 
 all: debugger check
 
 debugger: debugger.c debugger.h
-       $(CC) -o $@ $<
+       $(CC) -o $@ $< $(LIBS)
 
 testsuite: testsuite.c debugger.c debugger.h
-       $(CC) -o $@ $< -pthread
+       $(CC) -o $@ $< $(LIBS)
+
+threadtest: threadtest.c
+       $(CC) -o $@ $< $(LIBS)
 
 .PHONY: check
 check: testsuite
@@ -15,7 +23,10 @@ check: testsuite
 
 .PHONY: still
 still:
-       FIXME ./testsuite && false
+       ls -l core* 2>/dev/null || true
+       date --iso=seconds
+       set -ex; ulimit -c unlimited; time ./testsuite -l
+
 
 .PHONY: clean
 clean: