X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/3de7450f04f8d9cd241eb600da57cbe0539aa62c..82c7b420703e0fe842d38cc571a260a8494d7bc2:/test/Makefile?ds=sidebyside diff --git a/test/Makefile b/test/Makefile index 63018a6..9af1fed 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,14 +1,27 @@ -CXXFLAGS=-I.. -g -# Uncomment this if you have a fixed event_base_free(). -# See http://www.mail-archive.com/libevent-users@monkey.org/msg00112.html -#CXXFLAGS+=-DEVENT_BASE_FREE_FIX +CXXFLAGS=-I.. -g -Wall + +# Uncomment this if you have a libevent version previous to 1.3b. +#CXXFLAGS+=-DEVENTXX_NO_EVENT_BASE_FREE + LDFLAGS=-levent -targets=bench test-eof test-time test-weof +targets=bench test-eof test-time test-weof trivial c-way functor-way \ + wrapped-functor-way prio-test mixed-way all: $(targets) +test: all + @echo Running tests... + @echo + @for f in $(targets); do \ + echo -------------------------------------------------------; \ + echo runnig $$f; \ + echo -------------------------------------------------------; \ + ./$$f; \ + echo; \ + done + clean: $(RM) -fv *.o $(targets)