Made -ggdb an optional flag. Enabled by commenting out lines in Makefile OR by running make DEBUG=1

This commit is contained in:
zsuper 2025-04-03 20:23:19 -07:00
parent 226c45c969
commit 2196acea72

View file

@ -6,7 +6,15 @@ name = proxytunnel
version = $(shell awk 'BEGIN { FS="\"" } /^\#define VERSION / { print $$2 }' config.h)
CC ?= cc
CFLAGS ?= -Wall -O2 -ggdb
CFLAGS ?= -Wall -O2
# Run `make DEBUG=1` or uncomment the next 2 lines to enable debug compile flags
define (DEBUG)
endef
ifdef DEBUG
CFLAGS += -ggdb
endif
# Comment on non-gnu systems
OPTFLAGS += -DHAVE_GETOPT_LONG