Support also td_ta_delete ().
[debugger.git] / Makefile
index 0b76bd4..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
 
@@ -9,7 +13,7 @@ testsuite: testsuite.c debugger.c debugger.h
        $(CC) -o $@ $< -pthread
 
 threadtest: threadtest.c
-       $(CC) -o $@ $< -lthread_db -ldw
+       $(CC) -o $@ $< -lthread_db -ldw -lelf -lebl -ldl
 
 .PHONY: check
 check: testsuite