X-Git-Url: https://git.ao2.it/visomat-utils.git/blobdiff_plain/a1f11bc57001c6e52b19ac6b025bc738e3e6d4cd..HEAD:/src/Makefile?ds=inline diff --git a/src/Makefile b/src/Makefile index c39f955..79105ea 100644 --- a/src/Makefile +++ b/src/Makefile @@ -32,6 +32,13 @@ ifneq ($(CC),clang) CFLAGS += -Wunsafe-loop-optimizations -Wunused-but-set-variable endif +ifeq ($(DEBUG),1) + CFLAGS += -DDEBUG +endif + +# for getopt +CFLAGS += -D_POSIX_C_SOURCE=2 + CFLAGS += $(shell pkg-config --cflags libusb-1.0) LDLIBS := $(shell pkg-config --libs libusb-1.0)