1 CFLAGS = -std=c99 -pedantic -pedantic-errors -Wall -g3 -O2 -D_ANSI_SOURCE_
2 CFLAGS += -fno-common \
4 -Wdeclaration-after-statement \
10 -Wp,-D_FORTIFY_SOURCE=2 \
13 -Wmissing-declarations \
14 -Wmissing-format-attribute \
16 -Wmissing-prototypes \
18 -Wold-style-definition \
26 -Wunsafe-loop-optimizations \
27 -Wunused-but-set-variable \
31 CFLAGS += -D_BSD_SOURCE
34 CFLAGS += -D_POSIX_C_SOURCE=199309L
36 LDLIBS += -lpthread -lrt
38 double-buffering: double-buffering.o
41 rm -rf *~ *.o *.jpg double-buffering
43 test: double-buffering
44 valgrind --leak-check=full --show-reachable=yes ./double-buffering