Pilot nptl_db application.
[debugger.git] / Makefile
1 CC=gcc -ggdb3 -Wall -Werror
2
3 all: debugger check
4
5 debugger: debugger.c debugger.h
6         $(CC) -o $@ $<
7
8 testsuite: testsuite.c debugger.c debugger.h
9         $(CC) -o $@ $< -pthread
10
11 threadtest: threadtest.c
12         $(CC) -o $@ $< -lthread_db -ldw
13
14 .PHONY: check
15 check: testsuite
16         ./testsuite
17         @echo OK
18
19 .PHONY: still
20 still:
21         ls -l core* 2>/dev/null || true
22         date --iso=seconds
23         set -ex; ulimit -c unlimited; time ./testsuite -l
24
25
26 .PHONY: clean
27 clean:
28         $(RM) debugger testsuite
29