Skip to content

Commit

Permalink
fix DEBUG flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixailz committed Mar 31, 2024
1 parent 70ac463 commit 657b94a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mk/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ endif
.RECIPEPREFIX = >

## DEBUG
CFLAGS += -DDEBUG_FD=420

ifeq ($(shell [ -z $(DEBUG) ] && printf 1 || printf 0),1)
DEBUG := 0
endif
CFLAGS += -DDEBUG=$(DEBUG) -DDEBUG_FD=420

ifeq ($(shell [ -z $(DEBUG_MAKE) ] && printf 1 || printf 0),1)
DEBUG_MAKE := 0
Expand All @@ -47,7 +46,7 @@ ifeq ($(DEBUG),0)
CFLAGS += -Werror
else
ifeq ($(shell [ $(DEBUG) -ge 1 ] && printf 1 || printf 0),1)
CFLAGS += -g3 -DDEBUG='"$(DEBUG)"'
CFLAGS += -g3
endif
ifeq ($(shell [ $(DEBUG) -ge 2 ] && printf 1 || printf 0),1)
.SHELLFLAGS += -x
Expand Down

0 comments on commit 657b94a

Please sign in to comment.