]> git.llucax.com Git - software/eventxx.git/blobdiff - test/Makefile
Avoid a weird gcc warning when compiling with optimizations.
[software/eventxx.git] / test / Makefile
index f582ca4a942c7a7fd9165a50353f396cf9d28ca5..9af1fed60c22f86ab263538df85e44252ab01e6d 100644 (file)
@@ -1,14 +1,27 @@
 
 CXXFLAGS=-I.. -g -Wall
 
 CXXFLAGS=-I.. -g -Wall
-# 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
+
+# Uncomment this if you have a libevent version previous to 1.3b.
+#CXXFLAGS+=-DEVENTXX_NO_EVENT_BASE_FREE
+
 LDFLAGS=-levent
 
 LDFLAGS=-levent
 
-targets=bench test-eof test-time test-weof trivial c-way
+targets=bench test-eof test-time test-weof trivial c-way functor-way \
+       wrapped-functor-way prio-test mixed-way
 
 all: $(targets)
 
 
 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)
 
 clean:
        $(RM) -fv *.o $(targets)