mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Made -ggdb an optional flag. Enabled by commenting out lines in Makefile OR by running make DEBUG=1
This commit is contained in:
parent
226c45c969
commit
2196acea72
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue