X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=Makefile;h=09d6610db8686fb5d775b595239027e8794bbf3b;hb=c6050cb24f51e5673e2fc6b979c9815f8e34111f;hp=a2527aba95095ff4122edc328886ac1dfa2970c6;hpb=a2b8bbee9274f2436115c7fa071805e82ae487c9;p=debugger.git diff --git a/Makefile b/Makefile index a2527ab..09d6610 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,22 @@ 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) + ./$@ single + ./$@ multi .PHONY: check check: testsuite @@ -15,9 +25,12 @@ check: testsuite .PHONY: still still: - FIXME ./testsuite && false + ls -l core* 2>/dev/null || true + date --iso=seconds + set -ex; ulimit -c unlimited; time ./testsuite -l + .PHONY: clean clean: - $(RM) debugger testsuite + $(RM) debugger testsuite threadtest