X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=Makefile;h=8065c6599ce681683bf3f257e7f9c993a99fddc7;hb=c4d096db0ca0a93738cb3d3faa3db51d977c93be;hp=6bd6dfad3ee206aec3b6c1eacc44630c5966d977;hpb=cc10f96697d64510f56cc00b5af00502ef2237e2;p=debugger.git diff --git a/Makefile b/Makefile index 6bd6dfa..8065c65 100644 --- 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,9 @@ check: testsuite .PHONY: still still: - ls -l core* 2>/dev/null; set -ex; ulimit -c unlimited; time ./testsuite -l + ls -l core* 2>/dev/null || true + date --iso=seconds + set -ex; ulimit -c unlimited; time ./testsuite -l .PHONY: clean