]> git.llucax.com Git - software/eventxx.git/blob - test/Makefile
Avoid a weird gcc warning when compiling with optimizations.
[software/eventxx.git] / test / Makefile
1
2 CXXFLAGS=-I.. -g -Wall
3
4 # Uncomment this if you have a libevent version previous to 1.3b.
5 #CXXFLAGS+=-DEVENTXX_NO_EVENT_BASE_FREE
6
7 LDFLAGS=-levent
8
9 targets=bench test-eof test-time test-weof trivial c-way functor-way \
10         wrapped-functor-way prio-test mixed-way
11
12 all: $(targets)
13
14 test: all
15         @echo Running tests...
16         @echo
17         @for f in $(targets); do \
18                 echo -------------------------------------------------------; \
19                 echo runnig $$f; \
20                 echo -------------------------------------------------------; \
21                 ./$$f; \
22                 echo; \
23         done
24
25 clean:
26         $(RM) -fv *.o $(targets)
27
28 .PHONY: clean all
29