visomat-data-downloader: fix format strings
[visomat-utils.git] / src / Makefile
1 CFLAGS = -std=c99 -pedantic -pedantic-errors -Wall -g3 -O2 -D_ANSI_SOURCE_
2 CFLAGS += -fno-common \
3         -fvisibility=hidden \
4         -Wall \
5         -Wdeclaration-after-statement \
6         -Wextra \
7         -Wformat=2 \
8         -Winit-self \
9         -Winline \
10         -Wpacked \
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         -Wp,-D_FORTIFY_SOURCE=2 \
30         -fstack-protector \
31         --param=ssp-buffer-size=4
32
33 CFLAGS += $(shell pkg-config --cflags libusb-1.0)
34 LDLIBS := $(shell pkg-config --libs libusb-1.0)
35
36 visomat-data-downloader: visomat-data-downloader.o
37
38 clean:
39         rm -f *~ *.o visomat-data-downloader