git://git.jankratochvil.net
/
debugger.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed attaching to commands with invalid shared library symbols count.
[debugger.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
d8e6901
..
09d6610
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,12
+1,22
@@
CC=gcc -ggdb3 -Wall -Werror
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
all: debugger check
debugger: debugger.c debugger.h
- $(CC) -o $@ $<
+ $(CC) -o $@ $<
$(LIBS)
testsuite: testsuite.c debugger.c debugger.h
testsuite: testsuite.c debugger.c debugger.h
- $(CC) -o $@ $< -pthread
+ $(CC) -o $@ $< $(LIBS)
+
+threadtest: threadtest.c
+ $(CC) -o $@ $< $(LIBS)
+ ./$@ single
+ ./$@ multi
.PHONY: check
check: testsuite
.PHONY: check
check: testsuite
@@
-22,5
+32,5
@@
still:
.PHONY: clean
clean:
.PHONY: clean
clean:
- $(RM) debugger testsuite
+ $(RM) debugger testsuite
threadtest