3 -Wstrict-overflow=5 -fstack-protector-all \
14 -Wmissing-declarations \
15 -Wmissing-field-initializers \
16 -Wmissing-format-attribute \
17 -Wmissing-include-dirs \
19 -Wmissing-prototypes \
22 -Wold-style-definition \
23 -Woverlength-strings \
34 -Wunsafe-loop-optimizations \
35 -Wvolatile-register-var \
39 LAUNCHER_LDLIBS=$(shell pkg-config --libs pkg-config xcb xcb-randr 2>/dev/null)
40 LAUNCHER_CFLAGS=$(shell pkg-config --cflags pkg-config xcb xcb-randr 2>/dev/null)
41 USER_DEFS="-DAUTORANDR_PATH=\"$(shell which autorandr 2>/dev/null)\""
42 #------------------------------------------------------------------------------
45 #------------------------------------------------------------------------------
46 all : autorandr-launcher
48 autorandr-launcher: autorandr_launcher.c
49 $(CC) $(CFLAGS) $(LAUNCHER_CFLAGS) $(USER_DEFS) -o $@ $+ $(LAUNCHER_LDLIBS)
51 #------------------------------------------------------------------------------
53 $(RM) autorandr-launcher *.o