Implemented nptl_db testing.
[debugger.git] / Makefile
1 CC=gcc -ggdb3 -Wall -Werror
2 ELFUTILS=../elfutils-0.127
3 ifdef ELFUTILS
4 CC+=-I$(ELFUTILS)/include -L$(ELFUTILS)/lib
5 endif
6 LIBS=-lthread_db -ldw -lelf -lebl -ldl
7
8 all: debugger check
9
10 debugger: debugger.c debugger.h
11         $(CC) -o $@ $< $(LIBS)
12
13 testsuite: testsuite.c debugger.c debugger.h
14         $(CC) -o $@ $< $(LIBS)
15
16 threadtest: threadtest.c
17         $(CC) -o $@ $< $(LIBS)
18
19 .PHONY: check
20 check: testsuite
21         ./testsuite
22         @echo OK
23
24 .PHONY: still
25 still:
26         ls -l core* 2>/dev/null || true
27         date --iso=seconds
28         set -ex; ulimit -c unlimited; time ./testsuite -l
29
30
31 .PHONY: clean
32 clean:
33         $(RM) debugger testsuite
34