1 CXXFLAGS = -ansi -pedantic -pedantic-errors -Wall -g3 -O2 -D_ANSI_SOURCE_
2 CXXFLAGS += -fno-common \
12 -Wmissing-declarations \
13 -Wmissing-format-attribute \
21 -Wunsafe-loop-optimizations \
22 -Wunused-but-set-variable \
24 -Wp,-D_FORTIFY_SOURCE=2 \
26 --param=ssp-buffer-size=4
28 CXXFLAGS += $(shell pkg-config --cflags opencv)
29 LDLIBS += $(shell pkg-config --libs opencv)
31 opencv_trail_effect: $(wildcard *.hpp)
34 # Some command lines to imitate different trail styles
36 blame_it_on_the_boogie: opencv_trail_effect
37 ./opencv_trail_effect -l 12 -s background -d fadeaccumulate
39 wtf: opencv_trail_effect
40 ./opencv_trail_effect -l -1 -s background -d copy
42 l_anima_vola: opencv_trail_effect
43 ./opencv_trail_effect -l 30 -s background -d copy -r
45 average: opencv_trail_effect
46 ./opencv_trail_effect -l 10 -s background -d average -B
49 rm -f opencv_trail_effect vgdump gtk.suppression
51 test: opencv_trail_effect
52 [ -f gtk.suppression ] || wget -nv https://people.gnome.org/~johan/gtk.suppression
53 G_DEBUG=gc-friendly G_SLICE=always-malloc \
54 valgrind --tool=memcheck --leak-check=full --leak-resolution=high \
55 --num-callers=20 --log-file=vgdump \
56 --suppressions=gtk.suppression ./opencv_trail_effect