Fix typos and improve wording in a comment
[experiments/double-buffering.git] / Makefile
1 CFLAGS = -std=c99 -pedantic -pedantic-errors -Wall -g3 -O2 -D_ANSI_SOURCE_
2 CFLAGS += -fno-common \
3           -Wall \
4           -Wdeclaration-after-statement \
5           -Wextra \
6           -Wformat=2 \
7           -Winit-self \
8           -Winline \
9           -Wpacked \
10           -Wp,-D_FORTIFY_SOURCE=2 \
11           -Wpointer-arith \
12           -Wlarger-than-65500 \
13           -Wmissing-declarations \
14           -Wmissing-format-attribute \
15           -Wmissing-noreturn \
16           -Wmissing-prototypes \
17           -Wnested-externs \
18           -Wold-style-definition \
19           -Wredundant-decls \
20           -Wsign-compare \
21           -Wstrict-aliasing=2 \
22           -Wstrict-prototypes \
23           -Wswitch-enum \
24           -Wundef \
25           -Wunreachable-code \
26           -Wunsafe-loop-optimizations \
27           -Wunused-but-set-variable \
28           -Wwrite-strings
29
30 # for usleep()
31 CFLAGS += -D_BSD_SOURCE
32
33 # for clock_gettime()
34 CFLAGS += -D_POSIX_C_SOURCE=199309L
35
36 LDLIBS += -lpthread -lrt
37
38 double-buffering: double-buffering.o
39
40 clean:
41         rm -rf *~ *.o *.jpg double-buffering
42
43 test: double-buffering
44         valgrind --leak-check=full --show-reachable=yes ./double-buffering