From e4673851c1469855c15aa508fcb13b38c1e6df23 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Sun, 10 Apr 2022 22:35:54 +0200 Subject: [PATCH] Add `DEBUG=1` --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 08891fb..cc9e50c 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,10 @@ endif USE_FFMPEG ?= $(shell pkg-config libavutil libavformat libavcodec && echo 1) USE_LIBCAMERA ?= $(shell pkg-config libcamera && echo 1) +ifeq (1,$(DEBUG)) +CFLAGS += -g +endif + ifeq (1,$(USE_FFMPEG)) CFLAGS += -DUSE_FFMPEG LDLIBS += -lavcodec -lavformat -lavutil